Download MetaTrader 5

Indicators: Guppy (Long and Short)

To add comments, please log in or register
MQL5.community allows users to store their source codes in MQL5 Storage. Try it!
Automated-Trading
Admin
99869
Automated-Trading 2015.07.08 12:09 

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

file45
4135
file45 2015.07.26 07:28  

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.

jnr314
1003
jnr314 2015.07.27 12:21  
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. 

To add comments, please log in or register