Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Controlling the State of all strategies from an Addon

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

    Controlling the State of all strategies from an Addon

    Hi

    Whats the appropriate way of disabling/enabling all running strategies?

    #2
    Hello tolisss,

    No such method for disabling all running strategy is supported however, you could accomplish this through an addon.

    The attached file includes an Addon with several buttons. The button StopStrategyToBeStoppedByAdd on the Addon, when pressed will loop through running strategies looking for the strategy “StrategyToBeStoppedByAddon” which is also included in the attachment. I suggest importing the file, run strategy StrategyToBeStoppedByAddon on 2 second chart, then open the Addon under control center file> ButtonsWithFunctions, then open the output window. You’ll see the prints change when you click the button.

    The strategy remains running however a bool is set to true which causes the strategy to keep returning.

    Note, this is just a sample to demonstrate how you could do this.

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      thnks for the sample its very useful to learn how to control NT further.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      52 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      70 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      43 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      48 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X