"...OnUnhandledThreadException
************exception trapped ************
'BarsArray' property can't be accessed from within 'Initialize' method.
at NinjaTrader.Indicator.IndicatorBase.get_BarsArray( )
This exception was thrown when the following was executed:
(DTN-IQ) Data.Bars.GetBarsNow: instrument = 'YM 12-12' from (all the stuff it normally asks for; it's on a different computer so I'm not going to type it all out).
All this was done on an optimization run.
Now, this is something I'm aware of - I do not, in fact, attempt to access the "BarsArray" property anywhere in my code on Initialize().
I do access the following, and have been doing so without error for weeks now:
PeriodType
BarsPeriod
That's it.
So, if somebody has an idea why I would get the "BarsArray" exception, please let me know -

Comment