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 NullPointStrategies, Today, 05:17 AM
          0 responses
          46 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          66 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X