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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          72 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          39 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X