Download MetaTrader 5

MT4: Custom Push Notifications

To add comments, please log in or register
eMPeTrading
197
eMPeTrading  
Hey there, quick question:

Is there any way to set a custom text to push notifications that MT4 sends to mobile about transactions?

What I have in mind is that instead of the default notification text unforming of a closed position such as for example
"order #35811722 buy 1.00 USDCAD at 1.34242 closed due take-profit at price 1.34341, profit: 100 USD"
I'd like to set it to something more convenient such as
"Trade from [Comment] on USDCAD (1.00) reached target, profit 100 USD."
Simply something less technical and more readable.

If there's no way to do it in MT4 itself, is there a way to do this using an indicator/EA so that I could let someone program it?

Thanks for letting me know!
honest_knave
Moderator
2324
honest_knave  
eMPeTrading:
Hey there, quick question:

Is there any way to set a custom text to push notifications that MT4 sends to mobile about transactions?

What I have in mind is that instead of the default notification text unforming of a closed position such as for example
"order #35811722 buy 1.00 USDCAD at 1.34242 closed due take-profit at price 1.34341, profit: 100 USD"
I'd like to set it to something more convenient such as
"Trade from [Comment] on USDCAD (1.00) reached target, profit 100 USD."
Simply something less technical and more readable.

If there's no way to do it in MT4 itself, is there a way to do this using an indicator/EA so that I could let someone program it?

Thanks for letting me know!


Yes, there is.

You can integrate a SendNotification() call into your existing EA.

If you don't use an EA, you can code an indicator or EA to monitor your account for closed trades and send out a notification accordingly.

SendNotification - Common Functions - MQL4 Reference
SendNotification - Common Functions - MQL4 Reference
  • docs.mql4.com
SendNotification - Common Functions - MQL4 Reference
eMPeTrading
197
eMPeTrading  
honest_knave:


Yes, there is.

You can integrate a SendNotification() call into your existing EA.

If you don't use an EA, you can code an indicator or EA to monitor your account for closed trades and send out a notification accordingly.

Thank you for your reply! I'm unfortunately either not able to or not allowed to modify the EAs I'm running so the way around this would be to create a new EA to monitor the whole account to send any custom notifications - is that correct? If so, I'll set up a request in the Freelance Market :)
honest_knave
Moderator
2324
honest_knave  
Yep, that's the way. You can have it as an indicator or an EA as it won't be actually trading.
eMPeTrading
197
eMPeTrading  
honest_knave:
Yep, that's the way. You can have it as an indicator or an EA as it won't be actually trading.
Alright, thank you! :)
whroeder1
16058
whroeder1  
Why did you post in the Root / MT5 General section instead of the MQL4 section (bottom of the Root page?)
eMPeTrading
197
eMPeTrading  
whroeder1:
Why did you post in the Root / MT5 General section instead of the MQL4 section (bottom of the Root page?)
I overlooked that but it's relevant to both in the end.
eMPeTrading
197
eMPeTrading  
honest_knave:

I'll move the thread down to the MT4 section.

Give this EA a go (not tested):


Thanks! Definitely, I'll give it a go right away!
To add comments, please log in or register