• 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 Steve L, Today, 05:01 PM
    0 responses
    6 views
    0 likes
    Last Post Steve L
    by Steve L
     
    Started by Trader-Joe, Today, 04:06 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by vantojo, Today, 04:06 PM
    0 responses
    5 views
    0 likes
    Last Post vantojo
    by vantojo
     
    Started by tonynt, Today, 02:39 PM
    2 responses
    13 views
    0 likes
    Last Post tonynt
    by tonynt
     
    Started by StevenNelson, Today, 12:23 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X