Is it possible to buy or sell at exaclty open prices (+- 2 pips), I'm trying to
use Open prices instead of the Ask or Bid (see sample codes below) but it doesn't
work with the OrderSend & OrderClose. What I want to do is to buy or sell at the first market price
of each hour (H1) (see sample chart below). Please Help...
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.
Is it possible to buy or sell at exaclty open prices (+- 2 pips), I'm trying to use Open prices instead of the Ask or Bid (see sample codes below) but it doesn't work with the OrderSend & OrderClose. What I want to do is to buy or sell at the first market price of each hour (H1) (see sample chart below). Please Help...
Sample codes:
OrderSend(NULL, OP_BUY,1 ,Ask,3,0,0,"","",0,Blue);
OrderClose(OrderTicket(),1, Bid,3,White);