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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      117 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      166 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      85 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      130 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      88 views
      0 likes
      Last Post PaulMohn  
      Working...
      X