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 dward123, 01-02-2024, 09:59 PM
          4 responses
          174 views
          0 likes
          Last Post Lancer
          by Lancer
           
          Started by ETFVoyageur, Today, 04:00 PM
          2 responses
          19 views
          0 likes
          Last Post ETFVoyageur  
          Started by AaronKTradingForum, Today, 03:44 PM
          1 response
          8 views
          0 likes
          Last Post AaronKTradingForum  
          Started by Felix Reichert, 04-26-2024, 02:12 PM
          11 responses
          80 views
          0 likes
          Last Post Felix Reichert  
          Started by junkone, 04-28-2024, 02:19 PM
          7 responses
          83 views
          1 like
          Last Post junkone
          by junkone
           
          Working...
          X