CM_Laguerre PPO PercentileRank Mkt Tops & Bottoms

CM_Laguerre PPO PercentileRank Mkt Tops & Bottoms

This indicator find market tops and bottoms with the use of the percentile rank of a derivated Laguerre oscillator. The market tops and bottoms are spotted with unique colors (green for bottoms and red for tops), when the oscillator cross over the extreme percentile rank (90%). The mid threshold lines could also act as warning that the price has reached a top or a bottom.

Fits well on a daily basis as ranking an oscillator value by its percentile rank is a good idea that can be explore in many other ways. Here is another path to follow for future research!

 

This code is adapted from pinescript one by Chris Moody. 

Share this

Risk disclosure:

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 : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Dimi.A • 02/23/2016 #

    Thanks for converting this. Would be nice to see an updated version compatible for 10.3 mate.

  2. wp01 • 02/23/2016 #

    Dear Nicolas,
    I’ve been trying this indicator but unfortunately i can not get the settings right. I do not see the colors red and green like in your example.  I’ve been trying several settings also with additional
    colorzones but unfortunatley with no luck. Ive tried it on the 10.2 version from IG and on the 10.3 from PRT. I hope you can explain me what i’m doing wrong.
    Thank you on forehand for your time.
    Best regards,
    Patrick
    I

    • Dimi.A • 02/23/2016 #

      Yep, same here. It defaults to just lines in grey.

    • Nicolas • 02/23/2016 #

      Just set “Top” positive color to red and “Bottom” negative color to green, every others returned variables set to grey by default.

  3. Dimi.A • 02/23/2016 #

    Nic, any chance we could get an updated version for 10.3 please?This is a very solid indy for reversals.

    • wp01 • 02/23/2016 #

      Unfortunately that was the option i didn’t try. Thanks for the help, it works just fine now.

  4. Edisone • 02/23/2016 #

    My chart is only in black and white I can’t get the color bars. Help me pleasse

  5. Edisone • 02/23/2016 #

    Modified colors etc.

  6. Denis • 02/23/2016 #

    Hello everyone, I don’t understand the color setting. The indicator settings combo only allows you to have all the red or green bars or the part above the extreme percentile rank.
    I tried to modify directly in the code the part as below but it does not run :
    //coloring histogram
    if pctRankT>=pctile/100 then
    TopColor =(255,0,0)
    else
    TopColor =(204,204,204)
    endif

    if pctRankB>=pctileB/100 then
    BottomColor = (255,0,255)
    else
    BottomColor = (204,204,204)
    endif
    endif

    • Denis • 02/23/2016 #

      Hi Edisone, see my last comment for setting colors

  7. Denis • 02/23/2016 #

    If someone has an idea to help, many thanks for advance

  8. Denis • 02/23/2016 #

    Then I have tried this but nor does it run :

    //coloring histogram
    if pctRankT>=pctile/100 then
    r=255
    g=0
    b=0
    else
    r=204
    g=204
    b=204
    endif

    if pctRankB>=pctileB/100 then
    r=255
    g=0
    b=255
    else
    r=204
    g=204
    b=204
    endif
    endif

    RETURN pctRankT coloured (r,g,b) as “Top”, pctRankB coloured (r,g,b) as “Bottom”, 0 as “zero line”, pctile/100 as “Top Percentile Threshold”, pctileB/100 as “Bottom Percentile Threshold”, midpctile/100 as “Warning Top Percentile Threshold”, (midpctile*-1)/100 as “Warning Bottom Percentile Threshold”

  9. Denis • 02/23/2016 #

    Here we are !

    //coloring histogram
    if pctRankT>=pctile/100 then
    r=255
    g=0
    b=0
    else
    r=204
    g=204
    b=204
    endif

    if pctRankB<=pctileB/100 then
    rr=0
    gg=255
    bb=0
    else
    rr=204
    gg=204
    bb=204
    endif
    endif

    RETURN pctRankT coloured (r,g,b) as "Top", pctRankB coloured (rr,gg,bb) as "Bottom", 0 as "zero line", pctile/100 as "Top Percentile Threshold", pctileB/100 as "Bottom Percentile Threshold", midpctile/100 as "Warning Top Percentile Threshold", (midpctile*-1)/100 as "Warning Bottom Percentile Threshold"

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Fgats https://www.prorealcode.com/topic/indicateur-3-sigma-documentation/ lien pour la documentat...
DELBERT Bonjour , merci pour le partage et la traduction , je vais essayer d'assimiler ce nouvelle i...
Iván
2 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
2 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
philippe59139 Bravo super travail
gidien
3 months ago
gidien Thanks for the hint. I think i know now, why this happen. The "settings" block was added by ...
LucasBest Thank you for sharing your work, both original and very disconcerting. When I went through t...
gidien Hello LucasBest, thanks for your comment. Point 1: Yes your are right. The Zigzag ve...
gidien
3 months ago
Cram13 Bonjour, qu'elles sont les valeurs des variables ? Avec mes remerciements Marc
gidien This indicator will not return any value. You can change the last line to : return ao...
gidien SMA1 = MovingAverage Length applied to the source candles (high , low, op...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
Msport71 Thank You very much
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...
jacquesgermain Bonjour non pas de soucis car src=customclose donc dans le menu configuration/propriété me...
geroniman Merci Jacques , indic tres utile. J'ai un indic à programmer avec du price action. es tu dis...
jacquesgermain ok pour regarder ...
Bateson
5 months ago
Bateson
5 months ago

Top