MT4 trailing stop from menu, how does code know its on ???

 
I am wrting some code to move my stop loss to breakeven after certain number of x pips profits has been secured.

BUT.. how can I turn my code off when and if I decide to start a trailing stop loss from the MT4 menu manually. Is there a function that recognises that a MT4 menu fired trailing stop is running...???
 
I am wrting some code to move my stop loss to breakeven after certain number of x pips profits has been secured.

BUT.. how can I turn my code off when and if I decide to start a trailing stop loss from the MT4 menu manually. Is there a function that recognises that a MT4 menu fired trailing stop is running...???


why not just put an "if OrderStopLoss() > (OrderOpenPrice() + Point) then (DoYourBreakEvenFunction () == false);" something like that should work.
Reason: