Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimization Error while displaying values

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

    #16
    Originally posted by NinjaTrader_ChelseaB View Post
    Hello Waxavi,

    When using IsInstantiatedOnEachOptimization as false, may I confirm that all variables are being instantiated / reset in State.DataLoaded?
    Hello ChelseaB,

    It seems it disappears when doing so.

    Regards,

    Comment


      #17
      NinjaTrader_ChelseaB says
      Not all C# is valid logic.

      Try adding the following to a script:

      while (true) Print("Hello");

      In one line you will have broken NinjaTrader. There would nothing the developers can do to stop bad logic from being coded into a script.​
      Of course, you are correct in that particular case. But that is not the type of case being highlighted. In the case under discussion, clearly there are results and the analysis terminates; but the results are not correctly summarised. That would argue in favour of a platform issue, not a strategy code issue, since the analysis seems to terminate as it should.

      With the additional information about IsInstantiatedOnEachOptimization, it may also prove to be useful for understanding how the platform is handling the analysis summaries so that summaries are fixed to be correct.

      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #18
        Hello jeronymite,

        I will need to know the exact lines of code causing the behavior.

        Testing on my end with IsInstantiatedOnEachOptimization false on my end with a modified SampleMACrossover and instantiating variables in State.DataLoaded, I am not able to reproduce.

        The summary is being populated without issue.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Just in case there's a possible NT8 issue I can't share the code but I'll try to isolate it with an example and share it with you ChelseaB, it may take me a while to do so.

          Thanks for your support

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          81 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          64 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          66 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X