DrawLine("tag1",10, ChannelPoints[2].Price, 1, ChannelPoints[0].Price, Color.DarkTurquoise);
I get the following error when trying to use the DrawLine command in my NinjaScript Strategy:
DrawLine: startBarsAgo out of valid range 0 through 6, was 10. source = NinjaTrader.Core
The problem is that I have over 30 bars in my chart, so trying to go too far back is not the problem. The result of the CurrentBar statement just before the DrawLine command returns 32.
Comment