When running a strategy on a chart you may find the need to plot values onto a chart. If these values are internal strategy calculations that are difficult to migrate to an indicator, you can use the following technique to achieve a plot.
The technique involves the use of a custom indicator, StrategyPlot(), that is included in the import.
This technique has limited functionality. It will NOT work for charts in the Strategy Analyzer during backtesting, but it will work on real-time charts.
Key concepts in this example:
Important related documentation