Indicators: Guppy (Long and Short)

 

Guppy (Long and Short):

This indicator combines two groups of six exponential moving averages of different periods to elucidate the direction and the strength of the short-term and long-term trend.

Suppy Long and Short

Author: jnr314

 

Quote: I have to say that I am not a programmer and I only made this indicator for myself, and now I want to share it.

Thanks for sharing an excellent indicator.

This code is missing the ability to shift the MAs which is often used with Smoothed MA.

ExtMapBuffer1[i]=iMA(NULL,0,InpMAPeriod1,0,InpMAMethod,InpMAPrice,i);
ExtMapBuffer2[i]=iMA(NULL,0,InpMAPeriod2,0,InpMAMethod,InpMAPrice,i);

Adding shift option

ExtMapBuffer1[i]=iMA(NULL,0,InpMAPeriod1,InpMAShift,InpMAMethod,InpMAPrice,i);

Adding Shift option to Inputs

input int InpMAShift=0;  // Shift 

This will give users availability and full control of all MA features.

If you edit your code and resubmit MetaQuotes will update in few days or weeks.

 
file45:

Quote: I have to say that I am not a programmer and I only made this indicator for myself, and now I want to share it.

Thanks for sharing an excellent indicator.

This code is missing the ability to shift the MAs which is often used with Smoothed MA.

Adding shift option

Adding Shift option to Inputs

This will give users availability and full control of all MA features.

If you edit your code and resubmit MetaQuotes will update in few days or weeks.

Thanks for your comment. 

I have already tried what you said me but when I apply a negative shift appear a vertical line to the bottom at the end of the line (the last bar). Then, I have tried  these commands:

input int                 InpMAShift1=0;            // Shift 1

SetIndexShift(0,InpMAShift1);

And this problem is solved. Step by step learning a lit more. 

I gonna resumit the indicator with the changes and I repeat thanks for the input a lot, file 45. 

Reason: