BID always same as OrderOpenPrice() ?

To add comments, please log in or register
olzonpon
386
olzonpon  

Hi

Let's assume i wanna open a SELL order.

Before i send the OrderSend i calculate that my TP and SL shall be 100 pips from BID

And then i send the order, something like this:

OrderSend(symbol,cmd,volume,NormalizeDouble(price,digits),slippage,calculated_stoploss_100_pips_from_bid,calculated_takeprofit_100_pips_from_bid,comment,magic,expiration,arrow_color);


So to the question:

In this case, will the TP/SL always be exactly 100 pips from OrderOpenPrice()  becuase BID before the order opens and OrderOpenPrice() of order is always equal?

Or can the OrderOpenPrice() move away from current BID in the time between and OrderSend and the actual opening of order?

Keith Watford
Moderator
20585
Keith Watford  

Of course.

It's called slippage.

olzonpon
386
olzonpon  
Keith Watford:

Of course.

It's called slippage.

Thank you
To add comments, please log in or register