Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit on Close Question

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

    #16
    Thanks for the reply. Just to be sure I understand. If I'm using a very large period range bar, the bar may be open for 2-3 hours. COBC= false. In real time (non backtest), will the position close X seconds prior to the session close with a large period interval like this? I need to run it in replay to see what's going on. Does the strategy code effect the ExitOnClose functionality or is it completely independent? Thank you.

    Comment


      #17
      Patrick,

      Thanks for the clarification. Can you point me to where I can find where I set the exit prior to close time for back testing, Optimization and WFO. I only see a place to select the time on the strategy parameters box when attaching a strategy to a chart.

      Thanks,

      GuppDRV

      Comment


        #18
        Hello dirkdiggler,

        Thank you for your response.
        If I'm using a very large period range bar, the bar may be open for 2-3 hours. COBC= false. In real time (non backtest), will the position close X seconds prior to the session close with a large period interval like this?
        In real-time with CalculateOnBarClose = False, the order to close the position will be submitted once X seconds before the session close is reached.
        I need to run it in replay to see what's going on. Does the strategy code effect the ExitOnClose functionality or is it completely independent?
        If the Strategy code sets a specific value for ExitOnClose or ExitOnCloseSeconds, you will need to be aware of that. Any changes you make in the Strategy menu will overwrite the defaults.

        Comment


          #19
          GuppyDRV,

          Thanks for the clarification. Can you point me to where I can find where I set the exit prior to close time for back testing, Optimization and WFO. I only see a place to select the time on the strategy parameters box when attaching a strategy to a chart.
          You would not set it in the UI for backtests. ExitOnCloseSeconds would be set in code: http://ninjatrader.com/support/helpG...oseseconds.htm

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          27 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          117 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          69 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          226 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          417 views
          0 likes
          Last Post CaptainJack  
          Working...
          X