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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    119 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    62 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    40 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    44 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    82 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X