Download AMA AMA Sig indicators

amasaEffectively this mq4 code worked with some other indicators such as Meta Trader 4 and MT5 (Metatrader 5), the possibility of it working with other types of metatrader is high. With these test we can ensure the buyers and user that there will be no issues in compatibility .

We will be very happy if you can rate the indicator and add a few of your feedbacks or ideas by posting it within the comment area once you are already settled to employ this AMA AMA Sig and find this indicator as helpful for Forex. With the assistance of your remarks, ratings, and reviews, your fellow foreign currency investors can very easily determine whether try such indicators or perhaps not.

Certainly, what precisely FX traders would like are extraordinary indicators that are able enough in aiding them to trade much more in an accurate manner. And we’ll be really happy to know that this cost-free AMA AMA Sig indicator is assisting traders in getting the greatest deals to enhance their income in return. Moreover, we’re exerting great efforts in publishing Forex indicators like AMA AMA Sig in our webpage. With that said, it’s possible for web entrepreneurs to download it without having to spend money making them to come up with savvy decisions . As a result, they’ll turn out to be exceptional traders.

 

[php]</pre>
//+——————————————————————+
//| AMA&AMAsig.mq4 |
//+——————————————————————+
#property copyright “Copyright © 2004, by GOODMAN & Mstera è AF ”

#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Red
#property indicator_color2 Blue
#property indicator_color3 Brown
//—- input parameters
extern int periodAMA = 9;
extern int nfast = 2;
extern int nslow = 30;
extern double G = 2.0;
extern double dK = 2.0;
//—- buffers
double kAMAbuffer[];
double kAMAupsig[];
double kAMAdownsig[];
//—-
int cbars = 0, prevbars = 0, prevtime = 0;
double slowSC, fastSC;
//+——————————————————————+
//| Custom indicator initialization function |
//+——————————————————————+
int init()
{
//—- indicators
SetIndexStyle(0, DRAW_LINE, 0, 1);
SetIndexStyle(1, DRAW_ARROW, 0, 2);
SetIndexArrow(1, 159);
SetIndexStyle(2, DRAW_ARROW, 0, 2);
SetIndexArrow(2, 159);
SetIndexBuffer(0, kAMAbuffer);
SetIndexBuffer(1, kAMAupsig);
SetIndexBuffer(2, kAMAdownsig);
//—-
IndicatorDigits(4);
//—-
return(0);
}
//+——————————————————————+
//| Custom indicator deinitialization function |
//+——————————————————————+
int deinit()
{
return(0);
}
//+——————————————————————+
//| Custom indicator iteration function |
//+——————————————————————+
int start()
{
int i, pos = 0;
double noise = 0.000000001, AMA, AMA0, signal, ER;
double dSC, ERSC, SSC, ddK;
//—-
if(prevbars == Bars)
return(0);
slowSC=(2.0 / (nslow + 1));
fastSC=(2.0 / (nfast + 1));
cbars = IndicatorCounted();
if(Bars <= (periodAMA + 2))
return(0);
//—- check for possible errors
if(cbars < 0)
return(-1);
//—- last counted bar will be recounted
if(cbars > 0)
cbars–;
pos = Bars – periodAMA – 2;
AMA0 = Close[pos+1];
while(pos >= 0)
{
if(pos == Bars – periodAMA – 2)
AMA0 = Close[pos+1];
signal = MathAbs(Close[pos] – Close[pos+periodAMA]);
noise = 0.000000001;
//—-
for(i = 0; i < periodAMA; i++)
{
noise = noise + MathAbs(Close[pos+i] – Close[pos+i+1]);
}
ER = signal / noise;
dSC = (fastSC – slowSC);
ERSC = ER*dSC;
SSC = ERSC + slowSC;
AMA = AMA0 + (MathPow(SSC,G)*(Close[pos] – AMA0));
kAMAbuffer[pos] = AMA;
//—-
ddK = (AMA – AMA0);
//—-
if((MathAbs(ddK)) > (dK*Point) && (ddK > 0))
kAMAupsig[pos] = AMA;
else
kAMAupsig[pos] = 0;
//—-
if((MathAbs(ddK)) > (dK*Point) && (ddK < 0))
kAMAdownsig[pos] = AMA;
else
kAMAdownsig[pos] = 0;
//—-
AMA0 = AMA;
pos–;
}
//—-
prevbars = Bars;
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 *