• 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

Flatten by account automatically in NT8

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

    Flatten by account automatically in NT8

    Hi,

    Is there a way to set up an automatically flatten everything at the EOD for a particular account in NT8? I want to run a trading strategy where all positions are closed at the EOD however will not always be in front of the screen to do it.

    I have read the manual but could not spot it.

    Thanks
    Robbo

    #2
    Hello Robbo,

    Thanks for your post and welcome to the NinjaTrader forums!

    When you apply the strategy, in the "Order handling" parameters you can set the ExitOnClose to true and the ExitOnClose seconds to close all positions and orders at however many seconds before the end of session. By default the ExitOnClose is set to true and the ExitOnClose seconds is set to 30 meaning that 30 seconds before the end of the session the ExitOnClose will close positions and close any open orders created by the strategy. Caution: If you have changed the trading hours of the dataseries this may impact when ExitOnClose functions as the ExitOnClose relates to the trading hours assigned to the data series.
    Reference: http://ninjatrader.com/support/helpG...t_strategy.htm

    In addition, under Tools>Options>Trading you have the ability to "autoclose" all instruments, or specific instruments, at a specified time. Reference: http://ninjatrader.com/support/helpG...ns_trading.htm
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by BrandonT1292, 06-17-2019, 03:03 PM
    2 responses
    22 views
    0 likes
    Last Post thinarthrill  
    Started by cbentrikin, Yesterday, 07:46 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by dr0832, 01-04-2019, 10:34 AM
    7 responses
    142 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Started by RedDuke, Yesterday, 06:14 PM
    0 responses
    5 views
    0 likes
    Last Post RedDuke
    by RedDuke
     
    Started by DariusDeck, Yesterday, 04:22 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Marco  
    Working...
    X