Block Builder is a tool that, in an easy and practical way, allows the parameterization of strategies. It presents itself as a new way to program, avoiding possible syntax errors, such as an incorrectly written function, missing information in the code, or information out of the right place.
There are five types of strategies. These are:
- Indicator Strategies
- Coloring Rules
- Execution Strategies
- Alarm Strategies
- Screening Strategies
To open the Block Builder, access the Language menu:
At first, set up 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, set the parameters for the Cotation (Volume, Quantity, Open, Close, High and Low), specific Indicators, customizable values, or even the shifting:
Below, we set the condition to return the High quote value, in shift 1, so that the data from the previous period is used:
Click + to add new conditions, having previously set AND or OR, so that the strategy behaves as expected:
It is important to mention that all added conditions will return the same defined result. In other words, in the case of a coloring rule, for example, the same color will be plotted in condition 1 and condition 2.
To set the result, use the Result tab and drag the function to the corresponding field:
To add a new condition, that returns a different result, click Add to strategy and follow the same process.
When you are done, click to Create Strategy and define a name for it:
In the strategy above, a simple coloring rule has been created, where; if the close of the current candle is higher than the max of the previous candle, the current candle will be colored brown.
To apply the Coloring Strategy to the chart, right-click on the bottom of the chart window, and select Insert Paint Bar, searching for the strategy name as defined in its creation.
Was this content helpful?
Please rate us down below.
Article is closed for comments.