Download MA ALERT indicators

maaWe make use of this indicator in running some tests . And do you know what, it works brilliantly to what we’ve expected. It is quite compatible in both MT4 (Metatrader 4) and MT5 program and could function to other MT systems also. If you need even more related indicators exactly like it, our Forex Moving Average Indicators section can help you much.

If ever you are settled to make use of this MA ALERT and find this indicator for Forex useful, we will be very happy if you can rate the indicator and also feel free to throw in a few of your feedbacks or opinions, simply post it in the comment section. Together with your remarks, ratings and testimonials, you can even help your fellow Forex currency investors to test such indicators.

So that you can attain the best results foreign currency traders will naturally pick just the best indicator that will work in sync along with their projects. For that fact, we are aiming to give you only the best with the use of our free MA ALERT indicator. Together with the developments, we’re also looking for greater indicators just like the MA ALERT. Which we will eventually upload to the website for the traders to download and use to their hearts content.

 

[php]</pre>
//+——————————————————————+
//| MA_ALERT.mq4 |
//| Kalenzo |
//| [email protected] |
//+——————————————————————+
#property copyright “Kalenzo”
#property link “[email protected]
extern bool makeItPlay = true;
extern int maMethod = 0;
extern int maPeriod = 14;
extern int maShift = 0;
extern int appiledPrice = 0;
int PrevAlertTime = 0;
#property indicator_chart_window
#property indicator_color1 Gold
#property indicator_buffers 1
double maBuffer[];
//+——————————————————————+
//| Custom indicator initialization function |
//+——————————————————————+
int init()
{
//—- indicators
SetIndexStyle(0,DRAW_LINE,0,1);
SetIndexBuffer(0,maBuffer);
//—-
return(0);
}
//+——————————————————————+
//| Custor indicator deinitialization function |
//+——————————————————————+
int deinit()
{
//—-

//—-
return(0);
}
//+——————————————————————+
//| Custom indicator iteration function |
//+——————————————————————+
int start()
{
//—-
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars<0) counted_bars=0;
if(counted_bars>0) counted_bars–;
limit=Bars-counted_bars;
//—-

for(int i = 0 ;i < limit ;i++)
{
maBuffer[i]=iMA(Symbol(),0,maPeriod,maShift,maMethod,appiledPrice,i);
}

double ppMA = NormalizeDouble(iMA(Symbol(),0,maPeriod,maShift,maMethod,appiledPrice,3),4);
double pMA = NormalizeDouble(iMA(Symbol(),0,maPeriod,maShift,maMethod,appiledPrice,2),4);
double cMA = NormalizeDouble(iMA(Symbol(),0,maPeriod,maShift,maMethod,appiledPrice,1),4);

if (CurTime() – PrevAlertTime > Period()*60)
{

if(ppMA < pMA && pMA > cMA)
{
Alert(“MA incerasing”);
PrevAlertTime = CurTime();
}
else if(ppMA > pMA && pMA < cMA)
{
Alert(“MA decerasing”);
PrevAlertTime = CurTime();
}
}

//—-
return(0);
}
//+——————————————————————+
<pre>[/php]

Click Here to Download

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *