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 bortz, 11-06-2023, 08:04 AM
      47 responses
      1,607 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      9 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      19 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      6 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      16 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X