Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Effect of change of source code on "enabled" strategy?

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

    Effect of change of source code on "enabled" strategy?

    Hello,

    Can someone tell the effect (or absence thereof) of changing the source code of an 'enabled' strategy?

    For instance, would the change be effective upon
    - recompile (I would doubt so, but felt I had to ask anyway)?
    - de-enabling and re-enabling the strategy? or
    - removing the strategy from the list in the 'Strategy' tab and re-creating it (not my preferred outcome since I have a couple dozens of instances of each strategy)?
    Thank you.

    #2
    Hello CyclingTrader,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    Changing the code does not effect a currently running instance of the Strategy, even after compiling.
    The only way to change the current instance is to disable and then re-enable the strategy on the Strategies tab of the NinjaTrader Control Center or on a chart to press the F5 key on your keyboard to reload NinjaScript.

    Please let me know if I may be of further assistance.

    Comment


      #3
      At least I don't have to remove/add back in the strategies list, which was what I feared!

      Thanks Patrick.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 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