Download MetaTrader 5

Getting Slippage

To add comments, please log in or register
cryptex23
268
cryptex23  
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?
qjol
3243
qjol  
AFAIK there isn't such function built in in MQL but you can do it your self
cryptex23
268
cryptex23  
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?
qjol
3243
qjol  

why do you need these quotes

opened transaction price minus the order sent price = slippage

To add comments, please log in or register