Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot enable strategy v8.1.2.1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cannot enable strategy v8.1.2.1

    Every time I try to enable a strategy NT8 crashes, I fought with this all day today and cannot sort it out. Doesn't matter what strategy, every one has the same problem. Here are two ends of trace files where you can see this is happening on more than just one strategy. It's doing this on any strategy I try to enable.

    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?​
    Last edited by Conceptzx; 02-16-2024, 06:40 PM.

    #2
    I found an older backup I made of my nt8 installation and restored it, had to build things from there. Still no idea what was causing this behavior.

    Comment


      #3
      Hello Conceptzx,

      Thanks for posting.


      This appears to occur after a data request. On the chart you're applying the strategy to, what interval and chart style is in use? Are any custom add-on's applied to this chart?

      When you mention that multiple strategies were tested, did you also test the native Sample strategies included in the software in simulation, such as the SampleMACrossover strategy?

      Should this same behavior occur again, I'd like to review your log and trace files for this item, which should not be posted publicly on the forum. You can send me your log and trace files by going to the Control Center-> Help-> Email Support. Please ensure 'Log and Trace Files' is checked to include these files. This is checked by default.

      Please include a link to this forum thread and reference the following ticket number in the body of the email: 04246657 ATTN: Drew​
      Drew O.NinjaTrader Customer Service

      Comment


        #4
        The data was loaded on the chart, it occurred with both live and playback data. I did not try the sample strategies, honestly I was trying to get something work and missed a whole day of trading trying to diagnose and resolve the issue. Will make a point to save the broken configuration with log and trace files if I experience anything like that again.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rhyminkevin, Today, 04:58 PM
        3 responses
        47 views
        0 likes
        Last Post Anfedport  
        Started by iceman2018, Today, 05:07 PM
        0 responses
        5 views
        0 likes
        Last Post iceman2018  
        Started by lightsun47, Today, 03:51 PM
        0 responses
        7 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        14 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        50 views
        0 likes
        Last Post futtrader  
        Working...
        X