Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitOnClose on daily bars, or How to exit position on the same bar as entered?

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

    ExitOnClose on daily bars, or How to exit position on the same bar as entered?

    Hello,

    I was backtesting some ideas on daily candles. I wanted to check first of all the results when strategy closes all trades on the same candle it entered it (I use buy/sell-stop orders to enter position).

    When I apply:

    protected override void Initialize()
    { ExitOnClose = true; }

    Nothing happens. Strategy makes 1 trade and doesn't close it.

    I use internal $EURUSD symbol and free daily data from Kinetick.

    Also, as far as I understood ExitOnClose works "at the close of the session", but how would I alternatively achieve to close position at the end of the same (any time-frame) bar I entered position?

    Thank you.

    #2
    danilam, ExitOnClose would not work on daily bars and higher as you would need intraday data to simulate this type of strategy.

    Comment


      #3
      Thank you, Bertrand,

      How would I alternatively achieve to close position at the end of the same (any time-frame) bar I entered position?

      Comment


        #4
        You could only simulate this with adding a finer series, so you could check the timestamps and enter an order before the primary series would close for the bar for example.

        Comment


          #5
          I see. That's not exactly convenient. It'd be nice to have command such as in Tradestation for example. Like, "sell (exit) this bar on close". Please take this suggestion to development team. I don't think, it'd be difficult to implement.
          Thanks.

          Comment


            #6
            Thanks, I will add your feedback to the lists.

            Comment


              #7
              Is there any progress with suggestion about closing on close of the bar?

              Comment


                #8
                Unfortunately not update I could share at this time, but it's listed on our product enhancement lists under #1708.

                Comment


                  #9
                  Is there any estimated time of developing it?

                  Comment


                    #10
                    nysetrader, unfortunately I could not provide an ETA or commitment at this time, but please be assured your feedback is appreciated and noted at product management.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    649 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    370 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    109 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    573 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    576 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X