Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy settings for work 24/7

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

    Strategy settings for work 24/7

    Hello!
    I plan to place a strategy on the VPS in Chicago. However, I was confronted with the fact that at the end of the session the strategy is turned off. In the code I use:

    IsExitOnSessionCloseStrategy = true;
    ExitOnSessionCloseSeconds = 1800;

    I understand it is necessary to put "false".

    But I need 30 minutes before the closing of the session, all orders were closed / deleted, but the strategy itself was not turned off and was waiting for a new trading session.
    How correctly to make such?
    Thank you.

    #2
    Hello,

    Thank you for the post.

    I believe this is related to your other post. If the connection is disconnected, the strategy should be disabled and would be expected. If you wanted to exit at the session close, you would need to use IsExitOnSessionCloseStrategy = true and this should leave the script enabled and simply exit. I believe this is related to you being disconnected as you mentioned in the other post. So long as the connection remains active, the strategy should remain enabled as well.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 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