Page 1 of 1

ALERT INDICATOR

Posted: Fri May 24, 2013 10:53 am
by Alps007
Good Morning

I am a trend trader and trade bounces of moving averages. I hate sitting in front of my ocmputer starring at the screens and was therefore wondering if anyone has an indicator that will alert me everytime price hits the 20ema or 15 ema or even 50ema. Would really appreciate it if anyone could advise me wher eI could get this alert indicator. I trade on MT4 b the way.

Thanks

Alps

Posted: Fri May 24, 2013 2:48 pm
by PebbleTrader
iMA


If (Close[i] > iMA (NULL,0,15,0,MODE_EMA,PRICE_CLOSE,i));
Alert("Price above MA 15!);

If (Close[i] < iMA (NULL,0,15,0,MODE_EMA,PRICE_CLOSE,i));
Alert("Price below MA 15!);

Basically that...

"i" is just the bar number, the largest value of i is the oldest bar in your history file, the smallest value 0 is current bar.

If you spend an hour each day learning mql4, than you will be able to program it in no time at all, especially since I showed you what the code needed is...

Posted: Wed May 29, 2013 11:02 am
by Alps007
thankyou buddy,

Is there anyway you cvould write up this indicator for me and attach it for me to download into my mt4. I am not knowing where to start with this code. I only use EMAs so an alert for a 50ema would be awesome. Would love it if you could put an attachment on here.

Thankyou my friend

Alps

Posted: Wed May 29, 2013 12:55 pm
by newscalper
Someone's already written it no doubt. Have you looked on any of the obvious sites? TSD? Fisherman? Factory?

Try http://www.forex-tsd.com/metatrader-4/5 ... erage.html
Even if there isn't exactly what you want a cross indi will work - set one of the averages to 1SMA