Guppy’s CBL (Count Back Line)

Guppy’s CBL (Count Back Line)

This is the Count Back Line. Basically, it is a volatility based indicator developed by Daryl Guppy.
You can find some info at his website (, but a very clear description can be found in his book TREND TRADING.

Disclaimer: this is the first indicator I wrote so I don’t know if it is written correctly. Be careful!


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. sawer36 • 07/31/2018 #

    Hello, i get only the red line when i install your indicator into PRT

  2. Roberto S. • 07/31/2018 #

    Oh sorry. Can you share the instrument on which you are using it so that I can test it?

  3. sawer36 • 07/31/2018 #

    hello, on brent oil with PRT 10.3 daily

    • Roberto S. • 07/31/2018 #

      Ah ok I found it. There is a weak point in my implementation and it is the variable CBLHIGHRESET at the 36th row. I valued it at 1000 just because I’m using this indicator on stocks where values are lower than that. Unfortunately I didn’t think about all the instruments higher than that… I think I should implement the higher row in a different way (using an alternate value). At the moment if you change that variable at 100000 it should work.
      Can you try?

  4. Bon Zo • 07/31/2018 #

    Hello, ok let me give a try. Thanks for the help and this great indicator.

  5. Bon Zo • 07/31/2018 #

    Thanks it works perfectly now

  6. joobeng • 07/31/2018 #

    Hi, I am having problems with this indicator, the Count back lines does not show as indicated.

  7. joobeng • 07/31/2018 #

    I get area of shading above and below a horizontal line. How can I post a picture here ? Thanks

  8. joobeng • 07/31/2018 #

    Sorry, I solved the problem. I have add the CBL indicator using the spanner icon on the price chart. I was adding it using the Indicator icon and the CBL indicator appears in its own window, below the price. However, there seems to be something wrong as the price chart is very compressed. I need price to open up more in the Y-axis direction. Any clues? Thanks

    • Nicolas • 07/31/2018 #

      Adjust the price settings for the Y Axis to use the price only.

  9. XXXXVII • 07/31/2018 #


    Your indicator is interesting.
    However, I can’t see the orange line.
    Do you have any idea what the problem is?

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
mikechan883 Thanks so much for your great help! May I ask you for further favor? Can you show me how to...
AndPar Buongiorno Nicolas, vorrei provare questo indicatore, ma quando lo inserisco in PRT mi vengo...
Nicolas Basta aggiungerlo al prezzo
Nicolas Works extremely well in current market.
SnorreDK Works extremely well - How? How do u implement this in a startegy? Breakoutstrategy?
Keyeming Thanks, but yes same question as above, some explanations on how to read it would be appreci...
CederTrader Hi Denis, does this indicator add to the chart as panel, or on the candles. Thanks
Nicolas Add it on the price chart as described in this video:
Denis Hello Nicolas and Ceder Trader, Sorry, I only just saw your replies. The indicator is alre...
kats Bonjour, j'ai essayé de faire afficher cet indic en temps 5 mn sur le 1 mn et c'est Hiroshim...
Nicolas Il suffit d'ajouter l'instruction TIMEFRAME(5 minutes,updateonclose) en tête du code
diegofe_2000 cordial saludo Nicolas, una pregunta senciLla : Como coloco un STOPS en un maximo o un mini...
Nicolas Really excellent screener for Guppy method! Well done.
zilliq Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Suzu Yuk He is right. MT and mavgMT are not defined and causing errors.....
Zigo Zou je graag helpen, maar mijn computer is in onderhoud. Einde deze week, kan ik hopelijk te...
Zigo @ DimKar Midline = (stlong + stshort)/2 Return stLong coloured(0,255,0) as"StopLong", M...
DimKar Dear Zigo thank you very much for your answer !!!
Seabiscuit Hi! I like this indicator a lot, been using it on a 30 min timeframe and usually confirms my...
Ramahu Bonjour et merci pour cet indicateur ! je l'observe sur les actions du Nasdaq et la plupart ...
Nicolas C'est dans ce sujet: M...
Pensera Bonjour Nicolas, comment est-il possible de backtester cet indicateur? cela fait une erreu...
Nicolas Oui bien sûr, il doit y avoir pas mal de sujets dans le forum à ce propos.
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Bard Hello @Nicolas, I can get this to display in a separate indicator panel but not on Price as ...
Stenozar Hi @Nicolas, how can I put the bands on price? Thanks, Stefano
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
oraclus Bonjour indicateur très intéressant existe t il un screener qui détecte les actions qui donn...
IV Mcm Ce n'est pas le but de cet indicateur, mais avec un peu d'entraînement vous pourriez le code...
Yantra Thank you for sharing your good work!
Nicolas Il faut l'ajouter sur le prix avec l'icône de la clé situé en haut à gauche du graphique du ...
jerome777 merci de ta réponse
jerome777 bonjour c est bon il fonctionne parfaitement merci beaucoup
luxrun sorry, add prt code add doesn't work
robertogozzi Don't worry about PRT code, I can't make it work either! Great for pointing that out, it's ...
Khaled @Luxrun, good morning, you mentionned "y = exponentialaverage (x)", isn't the period of the ...
luxrun One question, Roberto: the two AvgT are variable, could you explain to me what they regulate...
robertogozzi AvgT stands for Average Type, it's a parameter for the AVERAGE keyword (https://www.prorealc...
robertogozzi Yes, you can use any setting that suits you best! As to which one... it depends on the inst...
DaxRider grazie Robnerto
mohamed bonjour nicolas! j'aimerais pouvoir changer les couleurs des chandelier directement depuis ...
Nicolas remplacer les valeurs de coloured(0,255,0) par coloured(r,g,b) et ajouter ces noms de variab...
mohamed merci Nicolas!
Nicolas You should open a new topic to discuss about the strategy and its coding.
dvlukic Hello Nicolas, How could plot this indicator over the price series? Thanks Dave
Nicolas Just add it on the price series.