• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, Today, 01:30 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by GARZONJ, Today, 12:25 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by RandanAL, Today, 11:53 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by yeshujbp, 07-21-2019, 02:40 PM
    2 responses
    35 views
    0 likes
    Last Post omololu
    by omololu
     
    Started by seagraph, Yesterday, 03:27 PM
    1 response
    28 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X