Reference Sample:
Error Message:
2019-07-27 10:22:33:527|3|4|Error on getting/setting property 'MyListValues' for NinjaScript 'Test1': Object of type 'System.Collections.ObjectModel.Collection`1[NinjaTrader.NinjaScript.Strategies.PercentWrapper]' cannot be converted to type 'System.Collections.ObjectModel.Collection`1[NinjaTrader.NinjaScript.Strategies.PercentWrapper]'. 2019-07-27 10:22:33:658|3|4|Unable to create instance of NinjaScript 'Test1'. Most likely either the implementation no longer exists, there is no default constructor defined, the default constructor does not work correctly, or the 'OnStateChange' implementation for State=SetDefaults is flawed: System.InvalidOperationException: 'BarsRequiredToTrade' cannot be set from this state. Please see the Help Guide article on 'BarsRequiredToTrade' for more information. at NinjaTrader.NinjaScript.StrategyBase.set_BarsRequiredToTrade(Int32 value) at NinjaTrader.NinjaScript.StrategyBase.CopyTo(NinjaScript ninjaScript) at NinjaTrader.Gui.NinjaScript.StrategyRenderBase.CopyTo(NinjaScript ninjaScript) at NinjaTrader.NinjaScript.Strategies.Test1.CopyTo(NinjaScript ninjaScript) in c:\Users\Tyler\Documents\NinjaTrader 8\bin\Custom\Strategies\Test1.cs:line 133 at NinjaTrader.NinjaScript.NinjaScript.Clone() 2019-07-27 10:22:33:658|3|16|Failed to restore Strategy 'NinjaTrader.NinjaScript.Strategies.Test1'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Strategy no longer is there.
Comment