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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          71 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          143 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          76 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          47 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          51 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X