Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit On Close

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

    Exit On Close

    Hi
    I trade SP E-mini during the RTH. I have Exit on close . It does close position in real time right before the market close, which is 4:15 ET. However, when I fire up Ninja Trader the next day and get ready for trading like 9:AM ET, the strategy is yellow because the last Exit on close is not triggered on the chart. So I have to wait until the market opens 9:30 to enable the strategy. Only then does the strategy trigger yesterday's Exit on Close and turns green. If I enable the strategy @9:15, it would be yellow even after the market open until I disable and enable it again.

    Any help is appreciated. Thank you.

    #2
    Thanks for the post sys_trader, I would expect that outcome, since in NT everything is event based so when you reload your script next day for trading, the last bar would not be considered closed yet and as such the historical ExitOnClose not triggered. That would only be given if the open tick of the new day session is seen for your RTH chart. That's a known limitation of the ExitOnClose function. As workaround you could for example initiate a direct time exit in the script via market orders, so you would exit a bar earlier than the ExitOnClose would (so when re-enabling next day you would that processed).
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand. Thanks for that workaround. It makes sense now.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by elirion, Today, 09:32 PM
      0 responses
      2 views
      0 likes
      Last Post elirion
      by elirion
       
      Started by cre8able, Today, 09:15 PM
      1 response
      5 views
      0 likes
      Last Post bltdavid  
      Started by cummish, Today, 08:43 PM
      0 responses
      12 views
      0 likes
      Last Post cummish
      by cummish
       
      Started by Option Whisperer, Today, 07:58 PM
      4 responses
      21 views
      0 likes
      Last Post Option Whisperer  
      Started by ETFVoyageur, 05-07-2024, 07:05 PM
      13 responses
      87 views
      0 likes
      Last Post ETFVoyageur  
      Working...
      X