I have uploaded an example indicator and strategy that you can use to reproduce this error.
The indicator is a copy of NT standard ADX indicator how I have changed it slightly to operator on a secondary DataSeries but plot on the primary DataSeries.
The strategy uses AddChartIndicator to display the indicator in the context of a strategy.
Picture “DrawOnPanel_WorksCorrectly Indicator.GIF” shows the plot of the indicator on a chart.
Picture “DrawOnPanel_Fail Strategy.GIF” show the plot of the Strategy using StrategyAnalyzer.
When the indicator is loaded onto a chart it plots Draw.ArrowDown correctly onto the result panel.
When the indicator is added to a chart using AddChartIndicator via a strategy it plots Draw.ArrowDown incorrectly on the chart and NOT on the panel.
Can you pls reproduce this at your end and let me know if I need to define the strategy or indicator differently to so it will also work using AddChartIndicator via strategy, or if this is an issue / bug.
Thank you
Comment