Guppy Multiple Moving Average - page 4

To add comments, please log in or register
1Dave7
262
1Dave7  
sashken:
My version of GMMA

I am playing with your version on 30-min. Note: I wish everybody would state what timeframe they are using their indicators!

Question: No matter what version I am using I can see false breakouts on Eurusd and Gbpusd (These are the pairs I have been playing with). How do you prevent false breakout signals?? These frustrate the heck out of me! What is your solution to this problem - How do I minimize this?

Dave

<<<

Kreangast
54
Kreangast  

#property copyright "mladen"

#property link "mladenfx@gmail.com"

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 LimeGreen

#property indicator_color2 Red

extern int Price = PRICE_CLOSE;

double buffer1[];

double buffer2[];

double periods[]={3,5,8,10,12,15,30,35,40,45,50,60};

int persize;

int init()

{

SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3 );

SetIndexBuffer(0,Buffer1);

SetIndexStyle(1,DRAW_LINE );

SetIndexBuffer(1,Buffer2);

persize =ArraySize(periods);

return(0);

}

int deinit() { return(0); }

int start()

{

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 = ?????

buffer2 = ?????

}

return(0);

}

Hi Mladen

Help me write the code.

Thanks

Kreangast

Kreangast
54
Kreangast  
Mladen Rakic
132786
Mladen Rakic  

...

Here you go

Two more indicators :

  • the "with lines" version draws those vertical lines. You can turn the lines on and off (ShowLinesparameter). The ShowLinesOnZeroCross parameter is to be used in the following mode : if set to true it will draw lines when the main GMMA oscillator line crosses zero value, if false it will draw lines when signal line crosses GMMA main line
  • the "binary" - does not draw lines, but instead just shows the market condition (in the indicator name too) Only one additional parameter : ZeroLineCrosses- same function as ShowLinesOnZeroCrossfrom above except it specifies what crosses (conditions) would you like to monitor - true-> GMMA above/ bellow zero line, false-> GMMA above/bellow signal line

_____________________

On the picture : the upper is the "with line" the lower is the "binary" one

PS: the "with lines" version will not draw lines for the whole history but only for the newest "WindowBarsPerChart()" (so the number of visible bars on the chart)

regards

mladen

Kreangast:
Hi mladen

GMMA value > 0 -> bullish

GMMA value bearish

Please help me to write the vertical line in the indicator.

Thanks

Kreangast
Kreangast
54
Kreangast  

Hi Mladen

Thank you very much.

Kreangast

stond
15
stond  

Hi Mladen

Thank you very much.

stond

happyfx
71
happyfx  

Ema indicators

I need a indicator alert when 6 EMA lines cross over another 6 EMA lines.

the normal one is only for 1 EMA cross over another EMA line

Files:
2coloreu.gif 31 kb
Linuxser
5923
Linuxser  
happyfx:
I need a indicator alert when 6 EMA lines cross over another 6 EMA lines. the normal one is only for 1 EMA cross over another EMA line

Seems you're looking for guppy GMMA.

Рома
3
Рома  

Hi Mladen

SIGNAL PERIOD seting ?

for Guppy MMA oscilator and lines indicator

on picture USDJPY H1

Mladen Rakic
132786
Mladen Rakic  

...

cons,

It is the default 13 if I remember correctly (I normally use default parameters when posting a picture of an indicator)

regards

mladen

cons555:
Hi Mladen

SIGNAL PERIOD seting ?

for Guppy MMA oscilator and lines indicator

on picture USDJPY H1
To add comments, please log in or register