Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Method to set a time for all strategies selected to exit and turn off...

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

    Method to set a time for all strategies selected to exit and turn off...

    Hi,

    Looking for a method to set a time for all strategies selected to exit and turn off selected strategies on the fly. I am not looking to put it in the code but something we can add to the platform or some kind of add on so we can select all strategies to we want to apply to exit and turn off by X time EST for example.

    Say we manually have the strategies turned on at 9 am est. Let's say I had 15 strategies running. Of the 15, I might want to have a select 10 of those exit and turn off the strategies at say 11 pm est on the fly.

    What are the best ways and approaches to be able to do that and make decisions on the fly when I want them on or off as it will not be static all the time so putting in the code would be cumbersome to then change the times in the code all the time.

    Let me know what options I have?



    Greg

    #2
    Hello, thanks for writing in. Unfortunately, there is no way to externally control a strategy programmatically, all the code must be within the strategy itself. We have an example here that shows how to set up a time filter to limit the trading hours in the strategy:


    Also see CloseStrategy()

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X