Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Does 'Auto Close Position' also Disable Strategies?

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

    Does 'Auto Close Position' also Disable Strategies?

    I want all my (MES) positions closed to avoid paying the holding fee or forced liquidation fee; so I told NT Options=>Trading =>Auto Close Position to shutter down at 1:44 PM (PST) but then the Strategies are disabled and don't come back on when the new session begins (3:00 PM). Is there a way to make this happen?? Is this expected behavior? And yes, the log shows that the Strategies are being disabled, one by one after flattening.
    TIA<
    Cartoad

    #2
    Hello Cartoad,

    Thank you for your post.

    Yes, what you have described is expected behavior. Anytime a "Close" action is completed to close a position on an account or instrument that has a strategy running will disabled the strategy. What you could do instead is create your own script that uses the Account class to detect if a position is open at a specified time (like 1:44 PM PST) and if a position is open, it submits a market order to close that position. This should achieve the goal of auto-closing the position as well as keeping any other NinjaScript strategies running. For more information regarding the Account class, please see the links below:Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

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