Coding alerts in MQ4

[Deleted]  
Hey fellow traders. I require some help coding a simple alert EA.

Basically what I would like to do is have MQ4 alert me when two indicators have met a certain benchmark. The parameters are pretty straightforward.

An alert will sound when:
- EMA 10 of the last bar was sloping up
-OSMA standard of the last bar was sloping up.

If these two parameters are met, there will be a message alert. Could someone point me out to a piece of code that I can modify to do this? Or provide any assistance regarding this matter?

Also, is there anyway to find out what the EMA value of the last bar was without using a shift? Because essentially what it compares is the slope of t-2 bar (two bars before) to t-1 bar (one bar before). Is there any way to code that in MQ4?

Any help is greatly appreciated.
Rashid Umarov
Admin
17214
Rashid Umarov  
Search rulezz. See Sound Alerts in Indicators