Slippage alert

 

I would like to know , is it possible that I make a expert advisor to detect the slippage ( from pending order to market order , from market order to order close )

If the slippage is greater than a variable then alert ? 

I am beginner of mql4 , Can someone tell me some hints to do this ? 

Thanks . 

 
Yip Sin Hang: possible that I make
  1. Why did you post your MT4 question in the Root / MT5 Systems section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. Only if you know how to code. Remember the pending price/TP/SL/ticket №. When it opens compare it to the open price. When it closes compare the TP/SL to the close price.