The guppy MMA oscillator is made of difference between 6 short term exponential moving average and 6 long term ones. Because of making the difference between 2 additions of moving average, it acts like a traditionnal MACD oscillator. Bullish signal occurs when the oscillator cross above the zero line and bearish signals when it crosses below this level.
I add an option to show oscillator as difference of price or as percentage.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
//parameters //n = 21 //percent = true (boolean) short1 = exponentialaverage[3](close) short2 = exponentialaverage[5](close) short3 = exponentialaverage[8](close) short4 = exponentialaverage[10](close) short5 = exponentialaverage[12](close) short6 = exponentialaverage[15](close) short = short1+short2+short3+short4+short5+short6 long1 = exponentialaverage[30](close) long2 = exponentialaverage[35](close) long3 = exponentialaverage[40](close) long4 = exponentialaverage[45](close) long5 = exponentialaverage[50](close) long6 = exponentialaverage[60](close) long = long1+long2+long3+long4+long5+long6 GMMACD = exponentialaverage[n](short-long) if (percent) THEN GMMACD = exponentialaverage[n](((short-long)/long)*100) ENDIF RETURN GMMACD as "Guppy MMA Oscillator" |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
One question Nicolas – what’s your rationale behind a 21 period?
There is no hidden truth behind a 21 period for this indicator. This a moving average period I used to have in different kind of strategies (trend following one on 1 hour chart as I remember), so that’s why I had it here in this prorealtime code.
I actually live up the road from Daryl Guppy. On the first day of my training i walked around to his house and picked up one of his trading manuals.
Hi, I’m trying to add the guppy indicator to my charts but i keep getting a box that’s says “Syntax error” any suggestions
Wrong copy/paste? Always a better idea to download the ITF file and import it into the platform, you’ll get no error this way.