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 jc.am, Today, 07:59 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by ybhx0315, Today, 09:06 PM
    0 responses
    6 views
    0 likes
    Last Post ybhx0315  
    Started by parkinsonbr, Today, 08:23 PM
    0 responses
    3 views
    0 likes
    Last Post parkinsonbr  
    Started by i2w8am9ii2, Today, 04:36 PM
    2 responses
    13 views
    0 likes
    Last Post i2w8am9ii2  
    Started by WeyldFalcon, Today, 02:07 PM
    2 responses
    16 views
    0 likes
    Last Post WeyldFalcon  
    Working...
    X