Download MetaTrader 5

Alert for an angle between two indicators

To add comments, please log in or register
Claudius Gas
44
Claudius Gas 2014.06.17 11:51 
Hi

I'm not an expert geek of MQL5

I modified MA-Crossover_Alert.mq5 to make me send an Alert when FAST crosses  SLOW.
if(SendNote) SendNotification("BUY Ask="+sAsk+", Date="+text+" Symbol="+Symbol());

Now I'm trying to get a alert when two indicators ALLIGATOR (Lips) vs. Moving Average (ie Median) intersect with a defined angle, eg. with angle greater than 90°

Alert can be:

if(SendNote) SendNotification("BUY angle="+sangle+", Date="+text+" Symbol="+Symbol());
and vice versa
if(SendNote) SendNotification("SELL angle="+sangle+", Date="+text+" Symbol="+Symbol());

Can anyone help me?
Tanks
Claudius
To add comments, please log in or register