Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IsExitOnSessionCloseStrategy with Renko blocks

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

    IsExitOnSessionCloseStrategy with Renko blocks

    I've read the docs and I understand the limitations of using IsExitOnSessionCloseStrategy with non-time-based charts such as Renko during backtesting, because it is getting the time from the bars themselves. I can work around this for testing, but my question is: How is this feature implemented when running live in real-time - is it still based off bar times or does it use actual clock time?

    E.g. if I set my strategy to exit 30 minutes before session close, can I count on that happening at the correct time, regardless of what type of data series I'm using?

    #2
    Hello pshift,

    Thank you for your note.

    ExitOnSessionCloseSeconds works in real time and determines when the ExitOnSessionClose function will trigger. It is based on the EOD (end of day) property for the Trading Hours set in the strategy's settings. It is not based on the bar timestamps and will use the clock time.

    https://ninjatrader.com/support/help...oseseconds.htm

    You could observe this by testing your strategy on Renko bars in the Playback connection; once the time in the playback controller hits the number of designated seconds before the end of the session, if there is a position open you will see an order called "Exit on session close" generated to close the position and any remaining orders will be canceled.

    Please let us know if we may be of further assistance.

    Comment


      #3
      Oh I didn't realize the playback connection could be used to simulate something like this, thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X