Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can NinjaScript detect the end of an optimisation sequence?

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

    Can NinjaScript detect the end of an optimisation sequence?

    Hi,

    Is there a way in which NT7 B14 can signal to a strategy that the end of an optimisation sequence has been reached? For example; when the final bar of the final instrument in a instrument 'basket' is processed can an indication of the end of the process be issued back to the strategy code?

    The reason I ask is that I have a 'static' variable in a strategy which I would like to reset on completion of the optimisation sequence. The consequence of not being able to reset this variable is; if I set up and begin a subsequent optimisation in quick succession then the static variable carries its value associated with the prior optimisation sequence into the new sequence.

    I cannot reset this variable OnTermination() because it is necessary that its value persists across multiple instruments and threads. OnTermination() will reset it at the end of each parameter set.

    Thanks

    Riskybiz

    #2
    Risky,

    Thank you for your forum post.

    I can not think of any method in NinjaTrader itself that would do this, however I will check with our more advanced NinjaScript experts.

    Thank you for your patience.
    BrettNinjaTrader Product Management

    Comment


      #3
      I have checked with our Advanced NinjaScript Expert and Unfortunately this is not supported.
      BrettNinjaTrader Product Management

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      647 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X