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.
    Emily C.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aligator, Today, 02:17 PM
    0 responses
    3 views
    0 likes
    Last Post aligator  
    Started by Vitamite, Yesterday, 12:48 PM
    2 responses
    15 views
    0 likes
    Last Post Vitamite  
    Started by lorem, 04-25-2024, 09:18 AM
    22 responses
    94 views
    0 likes
    Last Post lorem
    by lorem
     
    Started by sofortune, Today, 10:05 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    23 responses
    185 views
    0 likes
    Last Post ETFVoyageur  
    Working...
    X