Advanced GMMA indicator

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #110133 quote
    Captain_Walker
    Participant
    Junior

    There is already a GMMA on ProReadCode however the version designed by Chris Moody on Tradingview https://www.tradingview.com/script/3rxOtFe0-CM-Guppy-EMA/  offers significant advantages,

    1. showing zones of congestion
    2. changes colour when trend changes are about to happen.

    This way it differentiates itself from being just another ‘ribbon’ indicator.

    The full code with screenshots is available on the link above. I’ve tried converting it in to Prorealcode but no joy.

    I’m grateful if you can work on this conversion for us.

    Many thanks.

    GraHal thanked this post
    #110207 quote
    Nicolas
    Keymaster
    Master

    Here is the converted code for ProRealTime. Please next time, add a screenshot to your post when you want a trading indicator to be converted.

    src = customclose
    //fast EMA 
    len1 = 3
    len2 = 5
    len3 = 8
    len4 = 10
    len5 = 12
    len6 = 15
    //Slow EMA
    len7 = 30
    len8 = 35
    len9 = 40
    len10 = 45
    len11 = 50
    len12 = 60
    
    //Fast EMA
    ema1 = average[len1,1](src)
    ema2 = average[len2,1](src)
    ema3 = average[len3,1](src)
    ema4 = average[len4,1](src)
    ema5 = average[len5,1](src)
    ema6 = average[len6,1](src)
    //Slow EMA
    ema7 = average[len7,1](src)
    ema8 = average[len8,1](src)
    ema9 = average[len9,1](src)
    ema10 = average[len10,1](src)
    ema11 = average[len11,1](src)
    ema12 = average[len12,1](src)
    
    //Fast EMA Color Rules
    colfastL = (ema1 > ema2 and ema2 > ema3 and ema3 > ema4 and ema4 > ema5 and ema5 > ema6)
    colfastS = (ema1 < ema2 and ema2 < ema3 and ema3 < ema4 and ema4 < ema5 and ema5 < ema6)
    //Slow EMA Color Rules
    colslowL = ema7 > ema8 and ema8 > ema9 and ema9 > ema10 and ema10 > ema11 and ema11 > ema12
    colslowS = ema7 < ema8 and ema8 < ema9 and ema9 < ema10 and ema10 < ema11 and ema11 < ema12
    
    //Fast EMA Final Color Rules
    if colfastL and colslowL then 
    //aqua
    r=0
    g=255
    b=255
    elsif  colfastS and colslowS then 
    //orange
    r=255
    g=165
    b=0
    else // gray
    r=165
    g=165
    b=165
    endif
    //Slow EMA Final Color Rules
    if colslowL then 
    //lime
    rl=0
    gl=255
    bl=0
    elsif colslowS then 
    //red
    rl=255
    gl=0
    bl=0
    else // gray
    rl=165
    gl=165
    bl=165
    endif
    
    return ema1 coloured(r,g,b), ema2 coloured(r,g,b),ema3 coloured(r,g,b),ema4 coloured(r,g,b),ema5 coloured(r,g,b),ema6 coloured(r,g,b),ema7 coloured(rl,gl,bl),ema8 coloured(rl,gl,bl),ema9 coloured(rl,gl,bl),ema10 coloured(rl,gl,bl),ema11 coloured(rl,gl,bl),ema12 coloured(rl,gl,bl)
    
    GraHal, Captain_Walker and Andyswede thanked this post
    #110234 quote
    GraHal
    Participant
    Master

    Thank You Nicolas for coding this for us all.

    Advanced Guppy RULES

    1. If Fast and Slow EMA’s are ALL in Uptrend. Fast EMA=Aqua Slow EMA’s=Green.

    2. If Fast And Slow EMA’s are ALL in DownTrend. Fast EMA’s=Orange Slow EMA’s=Red.

    3. If Conditions 1 or 2 = False the Color=Silver.

    4. If Down Trend Slow EMA’s = Resistance.

    5. If Up Trend Slow EMA’s = Support.

    6. Great Moves Start when Color=Silver, then colors change to Up or Down Trend.

    7. Conservative move is to wait for 1st or 2nd Pullback.

    #110242 quote
    Captain_Walker
    Participant
    Junior

    Excellent job Nicholas. Thank you ever so much.

    @GraHal, I see you’re into GMMA. This is fantastic. Daryl Guppy’s latest video is here https://youtu.be/kjfW2BaeldU as you may have seen.

    I’m looking to use GMMA along Volume Weighted Moving Averages and the Vervoort. Who knows maybe one day there’ll be a super indicator that pulls all three together. 😄

    #110246 quote
    GraHal
    Participant
    Master

    I’m looking to use GMMA along Volume Weighted Moving Averages and the Vervoort.

    You could substitute Nicolas exponential average for  Volume Weighted Moving Averages as example below??

    Nicolas
    ema1 = average[len1,1](src)
    
    Vol weighted
    ema1 = average[len1,2](src)

    What is Vervoort??  If it’s in the video … I’ll watch it later.

    #110249 quote
    Nicolas
    Keymaster
    Master

    How to build a business with an arithmetic average 🙂

    #110256 quote
    robertogozzi
    Moderator
    Master

    Average type 2 is WEIGHTED MOVING AVERAGE, not VOLUME WEIGHTED MOVING AVERAGE (which is also WVAP).

    GraHal thanked this post
    #110275 quote
    Captain_Walker
    Participant
    Junior

    Few people are interested in the Vervoort (VV) anymore – it being a complex ‘leading’ indicator of trends using built in ATR calculations. https://uk.tradingview.com/scripts/vervoort/  Based on experience with it, I’m pretty sure if finds trend changes on various time frames. Combined with the GMMA it is advantageous. This is but one example https://www.tradingview.com/x/xr82zamc/ (further exploration required to appreciate the exploit).

    Daryl Guppy’s use of the GMMA is a pretty complex strategy, having studied his book on it. The VV when used with GMMA simplifies entry positions for trend followers in finding start of new trends, and entry positions after trend in process.

    GraHal thanked this post
    #110280 quote
    Loop
    Participant
    Senior

    Hi All,

    do you have a Prorealtime script for the above mentioned Vervoort (VV) indicator?

    Thanks

    Marco

    #110306 quote
    Captain_Walker
    Participant
    Junior

    do you have a Prorealtime script for the above mentioned Vervoort (VV) indicator?

    Supertrend indicator – available on PRT, is pretty similar to VV in most ways, based on my experience Check it out. https://www.prorealcode.com/documentation/supertrend/

    VV code is pretty complicated here https://uk.tradingview.com/script/kMtzYo7p-Average-True-Range-Trailing-Stops-Strategy/

    I’ve done some backtesting with PRT on supertrend switches – so far so good. The challenge is to code following the supertrend. Not been successful so far.

    In a bullish breakout north, the GMMA would show it up nicely. Best entry points after the breakout are where price pulls back onto near a flattening of the supertrend (or VV) and where the flattening sits just below the last set of investor GMMAs. But often times the breakout of the VV and the GMMA are powerful in one direction and RSIs just don’t matter. This was a rare beauty in June 2019 on Gold https://www.tradingview.com/x/EHB2NDVq/

    #199075 quote
    JeanSebastien
    Participant
    New

    I do not know how reliable/profitable it is trading with this (like all indicators). But for sure I am learning a lot in coding; thanks Nicolas for your maestria !!

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.

Advanced GMMA indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 10 replies,
has 1 voice, and was last updated by JeanSebastien
3 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/14/2019
Status: Active
Attachments: 2 files
Logo Logo
Loading...