How to Add an an on screen alert when stoploss is hit and trade closed. THis is what i have...

 

How to Add an an on screen alert when stoploss is hit and trade closed??

This is what i have but not working..

For a sell trade......

if ((MarketInfo(OrderSymbol(),MODE_ASK)>=OrderStopLoss() && iLow(NULL, 0, 0 + 0)<= OrderStopLoss()))
{
Alert(" Stop Hit, trade closed ",OrderSymbol(), " ticket no ", OrderTicket());

 

double OrderStopLoss(

)

Note: The order must be previously selected by the OrderSelect() function

B.T.W What it means iLow(NULL, 0, 0 + 0) 0 + 0 is always equal 0

 
qjol:

double OrderStopLoss(

)

Note: The order must be previously selected by the OrderSelect() function

B.T.W What it means iLow(NULL, 0, 0 + 0) 0 + 0 is always equal 0


Ok, that 0,0 varies throughout the code. It sometimes changes. Can yiu demonstrate a small bit of code that i would use for my question above.
 


That what i needed. gentleman!! Cheers.