View Single Post
  #2 (permalink)  
Old 02-24-2007, 11:18 PM
Mark53 Mark53 is offline
Junior Member
 
Join Date: Apr 2006
Posts: 13
Mark53 is on a distinguished road
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
Reply With Quote