Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reloading strategies after updating code

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

    Reloading strategies after updating code

    After making changes to a strategies code and compiling it do I need to completely remove any active iterations of it and add it again or will restarting Ninja Trader update all of the active versions of it?

    #2
    Hello rodriguesdanny,

    Welcome to the NinjaTrader forums!

    After compiling, right-click the chart and select Reload NinjaScript. This will reload the script and run the modified code.

    If you have made changes to State.SetDefaults, it will be necessary to remove the script instance from the chart and add a new instance to pull the new defaults.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Will restarting Ninja trader update the new defaults?

      Comment


        #4
        Hello rodriguesdanny,

        For a script saved in a workspace, no restarting NinjaTrader will not pull the new defaults.

        The defaults are only pulled when adding a new instance of the script.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you for the information

          Comment

          Latest Posts

          Collapse

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