• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 nailz420, Yesterday, 08:38 AM
      2 responses
      11 views
      0 likes
      Last Post nailz420  
      Started by bouncetherubble, Today, 06:56 PM
      0 responses
      2 views
      0 likes
      Last Post bouncetherubble  
      Started by James108, Today, 06:09 PM
      0 responses
      5 views
      0 likes
      Last Post James108  
      Started by RandanAL, Today, 05:13 PM
      0 responses
      5 views
      0 likes
      Last Post RandanAL  
      Started by timko, Today, 05:06 PM
      0 responses
      6 views
      0 likes
      Last Post timko
      by timko
       
      Working...
      X