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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 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