fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Technical question: EA behaviour if a market order is not executed at once

    Questions & Answers
    2
    3
    895
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      moreirajbn last edited by moreirajbn

      @fxDreema

      Some futures/stock exchanges have circuit breaker mechanisms that block order execution/filling for a few minutes or hours if price moves too far too fast. Note that the exchange still allows market orders to be PLACED (but not filled), but they will only be executed/filled when market re-opens. In this context, let's assume an EA (from fxDreema) is holding a short position at 2pm, when market is open and running normally, and it is programmed to close this position at 4pm ("time filter" block followed by "close position"). Then market goes into circuit break at 3:50pm and only returns at 4:30pm.

      My question is: what will the EA do at 4:00pm?

      1- Send a single buy at market order (then the position will be closed when market re-opens at 4:30pm);
      2- Send a buy at market order and keep sending more orders until it confirms that the position was closed (in that case there would be multiple buy at market orders executing simultaneously when market re-opens, resulting in a inverse position with multiple contracts, that would probably be liquidated immediately because of the time filter);
      3- Something else (what?)

      I'd like to highlight again that the exchange accepts orders (pending buy stop, buy at market or any other) to be PLACED, but execution of these orders will only happen when market is open again.

      Thank you very much.

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        While there are no incoming ticks, the EA will do nothing. Whatever request is sent to the server, the server processes it. So I don't know, I guess you can try it to see what will actually happen and if there is any problem - report it to me. And to be honest, I don't understand those futures and fancy symbols very well, because I never traded them, so I might be missing something đŸ™‚

        M 1 Reply Last reply Reply Quote 0
        • M
          moreirajbn @fxDreema last edited by moreirajbn

          @fxdreema

          The thing is that there are ticks... there are no deals, but as I understand MT5 considers a "tick" as anything that changes the bid/ask spread or the last deal in the market. So in circuit breakers we see changes in bid/ask, but without any deals, just by placement and cancellations of orders on the order book.... so it's quite different from Forex, where brokers make their own bid/ask spread and decide when it's time to change it.

          The mess gets really ugly on the CFDs, that trade through the broker's own bid/ask, but are arbitraged by the broker's market markers on the centralised markets. So when there is a circuit breaker on the exchange where, let's say Apple stocks are traded, the Apple CFDs will get REAAAAALY ugly...

          Anyways, thanks for the help.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          J
          H
          S
          S
          C
          F
          S
          R

          20
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors