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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          88 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          135 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          119 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          69 views
          0 likes
          Last Post PaulMohn  
          Working...
          X