Order is done successfully, but the price is illegal

 

Hi,

I encountered the strange.

My long order was done successfully though it's price was not in the range of the time.

Attachment is to show the price. Bule arrow is long order. Pic1 shows order is done @99.24. but bar shows highest price in this time is 99.21.

Is there someone can understand this situation?

Sllipage is only one. and no Sleep() in my code. Following is the code for long position.

Ticket = OrderSend(Symbol(), OP_BUY, 1, Ask, 1,Ask-losscut*Point, 0, "order") ;


pic1


pic2

 
andows2000:

Hi,

I encountered the strange.

My long order was done successfully though it's price was not in the range of the time.

Attachment is to show the price. Bule arrow is long order. Pic1 shows order is done @99.24. but bar shows highest price in this time is 99.21.

Is there someone can understand this situation?

Sllipage is only one. and no Sleep() in my code. Following is the code for long position.

Ticket = OrderSend(Symbol(), OP_BUY, 1, Ask, 1,Ask-losscut*Point, 0, "order") ;


pic1


pic2

You can BUY at ASK price and SELL at BID price. On the chart you see the BID price only (but of course there is an ASK price as well).

 
ggekko wrote >>

You can BUY at ASK price and SELL at BID price. On the chart you see the BID price only (but of course there is an ASK price as well).

I see. I found it was very begginer's question.

Thanks!

Reason: