Sending e-mail only when the alert is different from the previous one - page 2

 

:shucks: I see I over thought it!

Thanks WHRoeder

 
Viffer:

You're welcome. It's nice to get appreciation!

V


Hi Viffer,
I hope you can help me again. The code is working well but I realized that when an e-mail is sent it always says the same thing (please see the code dlip below)

SendMail("EUR up", "test" );

How do I make the e-mail notify me for Long or Short and the symbol along with the time frame?

Thanks

 

this is the documentation for sendmail().

https://docs.mql4.com/common/SendMail


You can build a string in the same way as you would with Print with whatever arguments you want.


V

Reason: