Getting Slippage

 
Is there any way that i can find the slippage from the price when a pending order became a market order and the entry price of the same? Any functions or reliable way?
 
AFAIK there isn't such function built in in MQL but you can do it your self
 
qjol:
AFAIK there isn't such function built in in MQL but you can do it your self

Cool. But there is one issue. What about the prices that arrive just before the clock changes it edge (rising edge/falling edge) I will miss those quotes? average the last 2 prices?
 

why do you need these quotes

opened transaction price minus the order sent price = slippage

Reason: