Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compiling Strategies - When are changes implemented?

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

    Compiling Strategies - When are changes implemented?

    Hi-

    This is an order of operations question; when making a code change to a strategy that is already running, when/how do those changes take effect?

    If I shut down a strategy but leave it on the strategies tab, will changes made to the strategy (save/compile) take effect the next time I enable that strategy, or must I restart NT for any of these changes to take effect?

    #2
    Hi cgeorgan,

    The best practice is to...
    1. Disable and remove the strategy.
    2. Make your changes and compile.
    3. Re-add the strategy and enable.

    This will ensure there is no question that your changes will take effect.
    TimNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Tim View Post
      Hi cgeorgan,

      The best practice is to...
      1. Disable and remove the strategy.
      2. Make your changes and compile.
      3. Re-add the strategy and enable.

      This will ensure there is no question that your changes will take effect.
      Gotcha - this will 'ensure' that changes take effect.

      Still, according to procedure and how NT is actually designed, when are code changes intended to take effect?

      Furthermore, will disabling strategies and restarting NT achieve the same goals? It seems counterproductive to remove strategies, given that NT has not implemented an easy way to add back entire sets of strategies efficiently-

      Comment


        #4
        Hi cgeorgan,

        You will need to create a new instance each time by removing and re-adding the strategy.

        NinjaTrader is not designed to have persistence unless a new instance is created.

        Shutting down NinjaTrader would disable a strategy, however, the best practice there is to disable manually.
        TimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        82 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        43 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
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        56 views
        0 likes
        Last Post CarlTrading  
        Working...
        X