I have been experimenting with using OrderSend and the CTrade class to submit orders.
As an example I want to submit a buy order at a specific price regardless which direction the price is moving.
When I tested the Buy method it doesn't always observe the price specified in the order and can use the current Ask price. Anyone know the reason?
BuyLimit seems to work but I want a better understanding. My understanding from the doc is that the price submitted in the order is lower than the current Ask price. So when the Ask price drops to the order price it may get executed. Is my understanding correct?
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.
Hi,
I have been experimenting with using OrderSend and the CTrade class to submit orders.
As an example I want to submit a buy order at a specific price regardless which direction the price is moving.
When I tested the Buy method it doesn't always observe the price specified in the order and can use the current Ask price. Anyone know the reason?
BuyLimit seems to work but I want a better understanding. My understanding from the doc is that the price submitted in the order is lower than the current Ask price. So when the Ask price drops to the order price it may get executed. Is my understanding correct?
Thanks.