Indicator Strategies use the Plot() function and its variants (Plot2, Plot3, Plot4).
It is through the plotting functions that we can draw multiple indicators.
How to Create
To create a new indicator, go to Strategy Editor inside of the Strategies menu:
In the example below, after declaring the x variable as the moving average of the closing of the last 9 periods plus 5%, we used the Plot() function to present the indicator on the chart.
The rule can also be created through the BlockBuilder.
The execution of these rules, when in the open market, occurs in real time as the asset's price updates.
Check the NTSL documentation in this link.
Was this content helpful?
Please rate us down below.