
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
...
Attached a document from guppytraders
Pages 17-19 are about Guppy MMA oscillator (the rest of the document is worth reading too
)
regards
mladen
mladen,Thank you for your indicator
could you or someone explain the indicator
is this an average of the guppy ma or what is it calculating
thank youthank you Mladen
Guppy Bars!
repost later. Did not see delete post selection??
Name:- Guppy MMA Oscillator
Formula:-
((Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
Mov(CLOSE,8,E)+Mov(CLOSE,10,E)+
Mov(CLOSE,12,E)+Mov(CLOSE,15,E))-
(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+
Mov(CLOSE,40,E)+Mov(CLOSE,45,E)+
Mov(CLOSE,50,E)+Mov(CLOSE,60,E)))*10;
(Mov((Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
Mov(CLOSE,8,E)+Mov(CLOSE,10,E)+
Mov(CLOSE,12,E)+Mov(CLOSE,15,E))-
(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+
Mov(CLOSE,40,E)+Mov(CLOSE,45,E)+
Mov(CLOSE,50,E)+Mov(CLOSE,60,E)),13,E))*10;0;
MS formula can be changed to do MT4.
Thanks
...
Post #17 of this thread (this one : https://www.mql5.com/en/forum/172971/page2)
Name:- Guppy MMA Oscillator
Formula:-
((Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
Mov(CLOSE,8,E)+Mov(CLOSE,10,E)+
Mov(CLOSE,12,E)+Mov(CLOSE,15,E))-
(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+
Mov(CLOSE,40,E)+Mov(CLOSE,45,E)+
Mov(CLOSE,50,E)+Mov(CLOSE,60,E)))*10;
(Mov((Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
Mov(CLOSE,8,E)+Mov(CLOSE,10,E)+
Mov(CLOSE,12,E)+Mov(CLOSE,15,E))-
(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+
Mov(CLOSE,40,E)+Mov(CLOSE,45,E)+
Mov(CLOSE,50,E)+Mov(CLOSE,60,E)),13,E))*10;0;
MS formula can be changed to do MT4.
ThanksBullish:
Value1=(Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+Mov(CLOSE,8,E)
+Mov(CLOSE,10,E)+Mov(CLOSE,12,E)+Mov(CLOSE,15,E));
Value2=(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+Mov(CLOSE,40,E)
+Mov(CLOSE,45,E)+Mov(CLOSE,50,E)+Mov(CLOSE,60,E));
Value1-Value2>=0
Bearish:
Value1=(Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+Mov(CLOSE,8,E)
+Mov(CLOSE,10,E)+Mov(CLOSE,12,E)+Mov(CLOSE,15,E));
Value2=(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+Mov(CLOSE,40,E)
+Mov(CLOSE,45,E)+Mov(CLOSE,50,E)+Mov(CLOSE,60,E));
Value1-Value2<0
This MS formula to MT4.
Thanks
Hi mladen
Thank Tips
{
if (periods[j]<30)
sum += iMA(NULL,0,periods[j],0,MODE_EMA,Price,i);
else sum -= iMA(NULL,0,periods[j],0,MODE_EMA,Price,i);
}regards
mladen
Bullish:
Value1=(Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+Mov(CLOSE,8,E)
+Mov(CLOSE,10,E)+Mov(CLOSE,12,E)+Mov(CLOSE,15,E));
Value2=(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+Mov(CLOSE,40,E)
+Mov(CLOSE,45,E)+Mov(CLOSE,50,E)+Mov(CLOSE,60,E));
Value1-Value2>=0
Bearish:
Value1=(Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+Mov(CLOSE,8,E)
+Mov(CLOSE,10,E)+Mov(CLOSE,12,E)+Mov(CLOSE,15,E));
Value2=(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+Mov(CLOSE,40,E)
+Mov(CLOSE,45,E)+Mov(CLOSE,50,E)+Mov(CLOSE,60,E));
Value1-Value2<0
This MS formula to MT4.
Thanks#property copyright "mladen"
#property link "mladenfx@gmail.com"
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 LimeGreen
#property indicator_color2 Red
#property indicator_level1 0
#property indicator_levelcolor DarkSlateGray
extern int Price = PRICE_CLOSE;
extern int SignalPeriod = 13;
double buffer1[];
double buffer2[];
double periods[]={3,5,8,10,12,15,30,35,40,45,50,60};
int persize;
int init()
{
SetIndexBuffer(0,buffer1);
SetIndexBuffer(1,buffer2);
persize =ArraySize(periods);
return(0);
}
int deinit() { return(0); }
int start()
{
double alpha = 2.0/(1.0+SignalPeriod);
int counted_bars=IndicatorCounted();
int i,limit;
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limit = Bars-counted_bars;
for(i=limit; i>=0; i--)
{
double sum = 0;
for(int j=0; j<persize; j++)
{
if (periods[j]<30)
sum += iMA(NULL,0,periods[j],0,MODE_EMA,Price,i);
else sum -= iMA(NULL,0,periods[j],0,MODE_EMA,Price,i);
}
buffer1 = sum*10.0;
buffer2 = buffer2+alpha*(buffer1-buffer2);
}
return(0);
}
Hi mladen
Please write the code.
thanks
Hi mladen
GMMA value > 0 -> bullish
GMMA value bearish
Please help me to write the vertical line in the indicator.
Thanks
Kreangast