The Block Builder is a tool that, in an easy and practical way, allows the parametrization of strategies. It presents itself as a new way of programming, avoiding possible syntax errors, such as an incorrectly written function, missing information in the code, or information placed in the wrong location.
Click here to accessthe NTSL documentaion.
There are five types of strategies. They are:
- Indicator Strategies
- Coloring Rules
- Execution Strategies
- Alarm Strategies
- Selection Strategies (Screening)
To open Block Builder, go to the Strategies menu:
Configure the condition parameters by dragging the rules directly from the Rule tab on the left side of the tool.
By clicking on the Pencil icon next to the selected rules, define the parameters related to the Quotation (Volume, Quantity, Open, Close, High, and Low), specific Indicators, customizable values, or even the shift.
Below, we configure the condition to return the High value of the quotation, with a shift of 1, so that the data from the previous period will be used:
Click on + to add new conditions, having first defined AND or OR, so that the strategy behaves as expected.
To add a new condition that returns a different result, click on Add to Strategy and follow the same process. When finished, click Create Strategy and define a name for it.
To apply the Coloring Strategy to the chart, right-click on the background of the chart window and select Insert Coloring Rule, then search for the name of the strategy as defined during its creation.
]
Was this content helpful?
Please rate us down below.