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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      52 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      142 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X