MicroTrendsLtd / NinjaTrader8

NinjaTrader8 Components Strategies and Trading tools
MIT License
74 stars 20 forks source link

Moved 'InstrumentFullName=' to OSC() SetDefaults #1

Closed jmscraig closed 3 years ago

jmscraig commented 3 years ago

Executing Strategy Analyzer - Optimization on the 'ATSSampleMACrossOver' sample produced the following exception in the Log. Moving 'InstrumentFullName = this.Instrument.FullName;' to OSC() State.DataLoaded cleared the exception.

Exception in the Log: 'OnStateChange System.NullReferenceException: Object reference not set to an instance of an object. at NinjaTrader.NinjaScript.Strategies.ATSQuadroStrategyBase.OnStateChange()'