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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    181 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    334 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    258 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    358 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    187 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X