|
Hi,
That's normal, when you place a BUY order, you buy at the ask price, which includes a commission. It depends of the broker and seems to be 3 pips in your case (you can get it by calling the OrderCommission() function). Since the charts usually represent bid prices, you buy at ask = bid + 3 pips.
By the way, you should write :
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage ,Bid-StopLoss*Point,Bid+TakeProfit*Point,"EMA_Cross_2",MAGIC,0,Green);
since you sell at the bid price.
Regards,
Mark
|