Send notifications question

 

So I wish my expert advisor to send a notification to my metatrader app ONLY whenever it opens and order ( OrderSend() ). And it does, but my EA also has a trailing stop function. Whenever it modifies the order it sends a notification stating this modification. and in a trailing stop this happens a lot so you can imagine a lot of beeping when this happens. Is there a way to stop this??? I only want a notification for ordersends.


Thanx in advance

 
SendNotification()

remove notification function for the trailing stop, simplest solution ever if you have the source code

Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
  • www.mql5.com
//| Expert initialization function                                   | //| Expert deinitialization function                                 | //| Expert tick function                                             | //| test1                                                            |...
 
Kenneth Parling:

remove notification function for the trailing stop, simplest solution ever if you have the source code

OK I mis informed there, I didnt do it as a function, probably should do it. I coded it myself, It trails from an x distance (each time shorter depending on the profit in pips using a cuadrática equation as an ascending curve) But thats beside the point. Mql4(not using mql5) automatically sends a notification when ever I use OrderModify() without sendnotification().

Maybe you did answer my question but Im too dumb. If not, then how can I remove these beepz from my cell phone when ever it modifies!!! 

Thx in avance again! 
 
errmmm anything, anybody? how can I activate send notifications for only when I use SendNotification("xxxx") and not everytime there is an OrderModify which appears to send a notification automatically.
 
palepalepale:
errmmm anything, anybody? how can I activate send notifications for only when I use SendNotification("xxxx") and not everytime there is an OrderModify which appears to send a notification automatically.

You have already been given your answer by Kenneth.