In my data loaded i have this where i load indicator and it works fine
fvgIndicator = FVGICT(Close, false, FVGPeriodTypes.Minute, 2, 50, true, 1.1, 10, 2, true,
FVGFillType.CLOSE_THROUGH, false, false,
false,new TimeSpan(2, 14, 18),60,
false,new TimeSpan(2, 14, 18),60,
false,new TimeSpan(2, 14, 18),60,
Brushes.LimeGreen, Brushes.LimeGreen, Brushes.Green, Brushes.Crimson, Brushes.Crimson, Brushes.DarkRed, 13, 20, true,
NinjaTrader.NinjaScript.DrawingTools.TextPosition. TopRight, new SimpleFont("Verdana", 12) { Bold = false, Italic = false },
Brushes.WhiteSmoke, Brushes.DimGray, Brushes.Blue, 50);
However when i switch to true to use multi timeframe for Minute 5 - fvgIndicator = FVGICT(Close, true, FVGPeriodTypes.Minute, 5, 50, true, 1.1, 10, 2, true,...
i get error
tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state. Attempted to load NQ 12-23 Globex: 5 Minute
my question is how do I load indicator on barsinprogress 2? Whatever i did below is not working
else if (BarsInProgress == 2 )
if (CurrentBars[0] < 20 || CurrentBars[2] < 6 )
return;
fvgIndicator = FVGICT(Close, true, FVGPeriodTypes.Minute, 5, 50, true, 1.1, 10, 2, true,
FVGFillType.CLOSE_THROUGH, false, false,
false,new TimeSpan(2, 14, 18),60,
false,new TimeSpan(2, 14, 18),60,
false,new TimeSpan(2, 14, 18),60,
Brushes.LimeGreen, Brushes.LimeGreen, Brushes.Green, Brushes.Crimson, Brushes.Crimson, Brushes.DarkRed, 13, 20, true,
NinjaTrader.NinjaScript.DrawingTools.TextPosition. TopRight, new SimpleFont("Verdana", 12) { Bold = false, Italic = false },
Brushes.WhiteSmoke, Brushes.DimGray, Brushes.Blue, 50);
Thank you

Comment