Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Shutting down a strategy

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

    Shutting down a strategy

    Hi, I have a weird request. In certain situations, I'd like to shut down a strategy.

    It's easy to just tell Ninja Trader to not trade a stock for the rest of the day, but I'd also like to disable the strategy so it's easy for me to know that this strategy isn't trading this stock, so I can remove the strategy and add another one with a different symbol.

    I have two workaround solutions:
    1. Send a message to the output window announcing that the strategy won't trade for the remainder of the day so I can manually disable the strategy.
    2. Issue an illegal transaction, like placing a short limit one dollar above the current price or reference an array item outside the array bounds. This (or something like this) will upset NT so much that it will shut down, but I'd like to do something a little more graceful.

    Any ideas?

    #2
    Try Disable():

    Comment


      #3
      Awesome! That's exactly what I was looking for. Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      61 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      39 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X