Coloring strategies, or Coloring Rules, have the function PaintBar(), and can be applied to charts or even specific indicators.
Additionally, there is the function SetPlotColor() which does not define the strategy as a Coloring Strategy but instead defines that the line of your Indicator Strategy, defined in the Plot corresponding to the Plot parameter, will be colored with the color specified by the Color parameter.
How to Create
To create a coloring rule, access the Strategy Editor from the Strategies menu:
In the following example, if the close of the current candle is greater than the high of the previous candle, the current candle will be painted Yellow.
The rule can also be created through the Block Builder.
To apply the Coloring Strategy, right-click on the background of the chart and select Insert PaintBar, searching for the strategy name as defined during its creation.
Note that when applied to the chart, the rule colored candles in yellow as expected:
The execution of these rules, when in the Open Market, occurs in real time as the asset's quotation updates.
Click here to check out a compiled list of functions and usability instructions.
Was this content helpful?
Please rate us down below.