Buy & Sell at open prices

 

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);

 
The chart shows Bid prices. So buying will always show at higher price in the chart.
 
Thank you, Got the point.