I had originally run the 2 variations of the strategy on 8.0.4.0 and saved off the results. I upgraded to 8.0.6.1 today, and I am running the same 2 strategies from 1/20/2014 to 5/19/2017 on my desktop.
It was definitely random...unless running 2 strategies at the same time could cause this.
Using multiple contracts...
Definitely something still a miss inside the NT code for the strategies grid.
2017-06-04 10:35:56:768 InstallDir='C:\Program Files (x86)\NinjaTrader 8\'
2017-06-04 10:35:56:768 UserDataDir='S:\mydocs2016\NinjaTrader 8\'
2017-06-04 10:35:56:768 MachineID='xxxx'
2017-06-04 10:35:56:768 OS='Microsoft Windows NT 6.1.7601 Service Pack 1'/'Win32NT'
2017-06-04 10:35:56:768 OSLanguage='en-US'
2017-06-04 10:35:56:768 OSEnvironment='64bit'
2017-06-04 10:35:56:778 Processors=12
2017-06-04 10:35:57:811 ProcessorSpeed=2.9 GHz
2017-06-04 10:35:57:812 PhysicalMemory=49152 MB
2017-06-04 10:35:57:827 DisplayAdapters=2/ASUS Mirror Driver|NVIDIA GeForce GTX 780 Ti
2017-06-04 10:35:57:827 Monitors=3/2560x1600|2560x1440|1920x1080
2017-06-04 10:35:57:827 .NET/CLR Version='4.0.30319.42000'/64bit
2017-06-04 10:35:57:827 SqlCeVersion='4.0.8482.1'1
2017-06-04 17:38:55:022 (Playback Connection) Cbi.Account.PositionUpdateCallback: instrument='ES ##-##' account='Playback101' avgPrice=0 quantity=0 marketPosition=Flat operation=Remove
2017-06-04 17:38:55:022 (Playback Connection) NinjaScript.StrategyBase.Process.PositionEventArgs .Filtered: instrument='ES ##-##' account='Playback101' avgPrice=0 quantity=0 marketPosition=Flat operation=Remove
2017-06-04 17:38:55:024 *************** unhandled exception trapped ***************
2017-06-04 17:38:55:024 Exception has been thrown by the target of an invocation.
2017-06-04 17:38:55:027 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.Generic.List`1.CopyTo(T[] array, Int32 arrayIndex)
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at NinjaTrader.Gui.NinjaScript.StrategiesGrid.Calcula teRealizedProfit(StrategyBase strategy, Instrument instrument)
at NinjaTrader.Gui.NinjaScript.StrategiesGrid.<OnPositionUpdate>b__69_0(PositionE ventArgs e)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeIn ternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Previously happened 2/2/2017:
http://ninjatrader.com/support/forum...tination+array
Comment