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
Iván
1 week ago
Madrosat Bonjour Ivan je ne sais pas si je dois écrire en Français ,anglais ,espagnol ,il y a les 3 ...
Iván Bonjour, la vérité est que ce n'est pas aussi facile qu'il n'y paraît.... Un indicateur peut...
Madrosat Merci Ivan j'espère que ce jour viendra bientôt , je sais que ce n'est pas facile car les in...
Iván
3 weeks ago
Madrosat Bonjour ivan Quelle différence il y a t il entre Extra trend et ultra trend lequel est le p...
P. Marlowe Muy bueno. ¿Podría hacerse para señalar extremos por el lado bajista? Lo mismo a la inversa....
Miro Esta es una versión del indicador, para ambos extremos. //-------------------------------...
P. Marlowe Muchas gracias ¡¡
Iván Hi. You could add these lines of code: if intradaybarindex=0 then varhigh=round((dhigh(...
RTR Edit
@toniyecla ¡gracias! más capturas aqui: https://www.prorealcode.com/wp-content/uploads/2024/10/IC...
robert123 I had a go at the 'order block' version- badly done I'm sure....but a start. // Sonarlabs ...
robert123 take ''sens1 = 5'' out and put ''rango'' in as variable
@toniyecla captura: https://www.prorealcode.com/wp-content/uploads/2024/10/sesiones_v3.png
@toniyecla y más opciones: añade una línea también en sesiones EUROPA y USA (configurable) y un texto o...
@toniyecla // Author: toniyecla - contact@rescommunesomnium.com // VARIABLES // EspHorarioVerano (b...
Alai-n Hello, take a look at this formulation made by "Blade106", Topic link attached post #227334....
@toniyecla ¡interesante acercamiento! (no lo conocía, simplemente tuve la necesidad y lo programé) pers...
Iván
1 month ago
MaoRai54 dear Ivan, it seems to be very interesting but please clarify what are all the lines I see i...
Iván Hi! you have the answer in the last line of code... MacdMiddle as "histo" style(histogra...
kats Le Top , a utiliser avec le nuage violet et alerte TN pour plus de précision.
roccafragius Hello Ivan, another great Indicator, very useful to trace the trend ( blue line) and the pos...
roccafragius Hello Ivan, very good job! May I ask you to translate teh script from TradingView named Tre...
Iván Hi! yes. You can ask for it here: https://www.prorealcode.com/free-code-conversion/
roccafragius Thank you so much Ivan! I created this request in english Translate from TradingView Indicat...
Regisnew très bel indicateur merci
jordan //---settings MAmode=0 Period=150 NumberOfMA=100 //---end of settings MA2=undefined ...
jordan dites moi si cela correspond à ce que vous cherchez
kats bonjour merci de ta reponse mais non ca fonctionne pas sympa quand même d'avoir essayé cdlt
Jean2139 Bonjour Yvan, Merci pour ton indicateur que je trouve très intéressant. Je suppose que tu ...
Suffi Hier eine kleine Korrektur: //-----Inputs-----------------------------------------// MALengt...
adeelq79 Hi Ivan, thank you for this indicator. Is it possible to include the volume of buys and sell...
achel J'ai la même erreur sur ligne 1 avec une importation dans les règles de l'art. Comment faire?
Iván Cela est probablement dû au fait que vous avez une ancienne version de l'outillage. Vérifi...
Iván
4 months ago
Iván Hola javier gracias! es importante realizar buenos backtest antes de lanzarse al mercado y ...
achel I have an error with "fillcolor" - How to solve this? / J'ai une erreur avec "fillcolor" - C...
Iván Hi! This is because you are not with V12. Just delete fillcolor

Top