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
kats Bonsoir, cet indicateur est vraiment très bien avec plusieurs possibilités en coloration . ...
roccafragius Thank you Ivan for your indicators, very very interesting!!!!
kats Bonsoir, Pensez vous pouvoir répondre à ma question posée ci dessus? Ce serait vraiment tr...
kats bONSOIR Est ce normal que les droites se démultiplient en plusieurs droites quelle differe...
kats j ai fait une copie d'ecran mais je ne sais pas comment l'envoyer sur le site
Iván Thanks ;)
kats BONJOUR je lai mis sur du renko , il est complexe car toujours a l'envers??? Peut être ne ...
RTR Great tool again and great job, thank you! So from what I see everytime Z-Score is over 0...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
P. Marlowe Impressive work. Accurate, interesting, good background. You hit the nail on the head again....
14starwberryhill Such a wonderful work, thanks Ivan..............
Iván Hi! You should change $rbox, $gbox and $bbox variables. Also r,g,b for last box.
finplus Thanks Ivan.
roccafragius Ivan, I just want to say you.. very very great job!!!! Thank you so much for this indicator!...
Iván
3 weeks ago
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
WhyAskOZ Hi, Ivan As always you are doing great coding. The code works on my PRT, however the issu...
Iván You can delete in the last line (return) the configuration for color. Delete coloured(xx,xx,...
Iván
3 weeks ago
Danger Zones Indicator
Danger Zones Indicator
2
Indicators
P. Marlowe Quite an impressive work, as usual. You share extremely useful tools and show an stunning ba...
Iván Thank you very much!
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
Iván sería así //------------------Inputs------------------------------ linreglength = 11//i...
Doddge Muchísimas gracias Iván, está genial.
superfalcio holaaa, have you run some statistics?
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
el titi Bonjour, merci beaucoup pour ce partage. Je vais regarder avec attention ce script et analys...
Armand2020 Bonjour , super taf!! serait il possible de faire un poc dynamique en timeframe 5 min en mod...
philippe59139 voici ce qu'il faudrait faire ou ajouter: //poc dynamique defparam calculateonlastbars=1...
Iván
2 months ago
Iván I personally like it in daily timeframe
oliTR Many thanks Ivan, I copy/paste your code to try it but could only get a constant stable unif...
Iván Hi, I've copied the code above and it works... what asset are you trying? $indices array ...
francis59 Hello Ivan, thanks for this very nice and powerfull indicator. Could you have time to create...
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
Gio56 Super idée. j'ai juste un souci. j'ai pas de barre verte mais plusieurs lignes de couleurs.....
DeathMetal change line in histgram, (click on indicator name, click on tool (
Gio56 Super merci.

Top