2024-02-17 00:48:40:614 Cbi.Instrument.RequestBars (to Provider): instrument='MGC 02-24' from='11/28/2023 12:00:00 AM' to='1/26/2024 12:00:00 AM' period='1 Minute'
2024-02-17 00:48:43:820 Cbi.Instrument.RequestBars (to Provider): instrument='MGC 04-24' from='2/12/2024 12:00:00 AM' to='2/12/2024 12:00:00 AM' period='1 Minute'
2024-02-17 00:50:03:898 Cbi.Instrument.RequestBars (to Provider): instrument='MNQ 03-24' from='2/12/2024 12:00:00 AM' to='2/12/2024 12:00:00 AM' period='1 Minute'
2024-02-17 00:50:06:397 Cbi.Instrument.RequestBars (to Provider): instrument='MNQ 03-24' from='2/12/2024 12:00:00 AM' to='2/12/2024 12:00:00 AM' period='1 Minute'
2024-02-17 00:50:41:269 ERROR: Strategy 'TG1f': Error on calling 'OnStateChange' method: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2024-02-17 00:50:41:269 Core.Instrumentation.LogActivity: activityType=NinjaScript errorCode=Panic errorMessage=''
2024-02-17 00:50:41:301 *************** unhandled exception trapped ***************
2024-02-17 00:50:41:301 Object reference not set to an instance of an object.
2024-02-17 00:50:41:301 System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(S tate state)
at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.Se tState(State state)
at NinjaTrader.NinjaScript.NinjaScriptBase.Finalize()
2024-02-16 19:32:13:925 Core.Instrumentation.LogActivity: activityType=ChartPerformance errorCode=NoError errorMessage=''
2024-02-16 19:32:14:022 Core.Instrumentation.LogActivity: activityType=ChartPerformance errorCode=NoError errorMessage=''
2024-02-16 19:32:14:200 Core.Instrumentation.LogActivity: activityType=ChartPerformance errorCode=NoError errorMessage=''
2024-02-16 19:32:16:538 Core.Instrumentation.LogActivity: activityType=NinjaScript errorCode=Panic errorMessage=''
2024-02-16 19:32:16:538 ERROR: Strategy 'MeganRatioStrategy3': Error on calling 'OnStateChange' method: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2024-02-16 19:32:16:553 ERROR: Strategy 'MeganRatioStrategy4': Error on calling 'OnStateChange' method: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2024-02-16 19:32:16:555 ERROR: Strategy 'MeganRatioStrategy5': Error on calling 'OnStateChange' method: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2024-02-16 19:32:16:557 ERROR: Strategy 'MeganRatioStrategy3': Error on calling 'OnStateChange' method: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2024-02-16 19:32:16:558 ERROR: Strategy 'MeganRatioStrategy4': Error on calling 'OnStateChange' method: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2024-02-16 19:32:16:559 ERROR: Strategy 'MeganRatioStrategy5': Error on calling 'OnStateChange' method: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2024-02-16 19:32:16:574 Core.Instrumentation.LogActivity: activityType=Application errorCode=Panic errorMessage=''
2024-02-16 19:32:16:574 *************** unhandled exception trapped ***************
2024-02-16 19:32:16:574 Object reference not set to an instance of an object.
2024-02-16 19:32:16:574 System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(S tate state)
at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.Se tState(State state)
at NinjaTrader.NinjaScript.NinjaScriptBase.Finalize()
My code compiles, I have debug mode and show warnings enabled, no warnings are displayed right now. only the following when I try to check things in Visual Studio:
Warning MC1000
Unknown build error, 'Could not find assembly 'InfragisticsWPF4.v15.1, Version=15.1.20151.2055, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'. Either explicitly load this assembly using a method such as LoadFromAssemblyPath() or use a MetadataAssemblyResolver that returns a valid assembly.' NinjaTrader.Custom
C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk.Wi ndowsDesktop\targets
C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk.Wi ndowsDesktop\targets\Microsoft.WinFX.targets 211 Build MarkupCompilePass1
Warning MSB3270
There was a mismatch between the processor architecture of the project being built "AMD64" and the processor architecture of the reference "PresentationCore", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
NinjaTrader.Custom
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\M icrosoft.Common.CurrentVersion.targets 2389 Build ResolveAssemblyReference
Any suggestions?
Comment