Besides trying to improve the speed,as you mentioned, I am going to create a piece of code that will delete a pending order and issue a market order in case the pending order price was reached, but the pending order was not executed.
I know the price will be worse with the market order, but for my strategy it is much worse to skip the order than to get a worse price.
В MT5 маркет-ордера не хранят цену, по которой был сделан запрос на совершение сделки. Вычисление исходной цены маркет-ордера. Однако, это значение возможно получить через тиковую историю, которая
In my experience, order type priority depends on the market traded and the broker-dealer used. In the past, I traded with several forex broker-dealers that prioritized market orders ahead of pending orders. The bottom line for me is carefully reading the trade execution terms of the broker-dealer's trading agreement.
An exception to this is trading on a centralized exchange, where everyone trading on the same exchange has the same order type priority terms.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Besides trying to improve the speed,as you mentioned, I am going to create a piece of code that will delete a pending order and issue a market order in case the pending order price was reached, but the pending order was not executed.
I know the price will be worse with the market order, but for my strategy it is much worse to skip the order than to get a worse price.
In my experience, order type priority depends on the market traded and the broker-dealer used. In the past, I traded with several forex broker-dealers that prioritized market orders ahead of pending orders. The bottom line for me is carefully reading the trade execution terms of the broker-dealer's trading agreement.
An exception to this is trading on a centralized exchange, where everyone trading on the same exchange has the same order type priority terms.