Trend Following Bars (heatmap)

Trend Following Bars (heatmap)

While analysing a chart, one of the biggest problem is to see if there is trend or not. While thinking about it, I found the idea to analyse moving averages in channel and their momentum according to channel width.

How it Works?

On each bar it creates a channel by highest/lowest point of a MA. highest point is upper line and lowest point is lower line of the MA channel,
It gets highest and lowest point of last 300 bars, (say Price Channel )
If the width of MA channel is greater than certain rate of price channel then it decides there is trend
After it decided there is trend, it calculates the rate between channel and MA. Bigger result means stronger trend.
According to rate of MA channel and the price channel , bar color becomes lighter/darker. so when you look at the bar color you can see the trend strength.

(description from the original author LonesomeTheBlue, all credits go to him). Indicator converted from pinescript with some adaptation to make it works with ProRealTime.

Similar indicator as the other published here: Trend Following Moving Averages(but with heatmap below the chart this time).


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. Maxime Baudin • 04/20/2020 #

    Thank you very much Nicolas! 🙂

  2. denmar • 04/20/2020 #

    Awesome. Thanks Nicolas.

    • Screw27 • 04/20/2020 #

      Salut nicolas j’aimerais savoir tes résulats grace a cettte methode

  3. born2trading • 04/20/2020 #

    hello Nicolas, sorry for off-topic question, but can you tell me what kind of indicator you use to get this watermark with the name of the product on your screen? It would help me a lot with my multi-screen and products set up. Thank you.

    • Nicolas • 04/20/2020 #

      Not an indicator but an option in PRT v11.

  4. eva.g.forsgren • 358 days ago #

    It dose not work, I get a strap instead of candels???????????????????????????????????????????

    • Nicolas • 357 days ago #

      That indicator is the one below the chart. The indicator to put on the price chart is this one:

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
atlante hi nicolas this indicator have 2 wrong borderline and islalastbarupdate. thank you can you h...
Nicolas That'"s because you are not using PRT v11? Just remove lines 59 to 62
denmar Many thanks. Highly appreciated.
Lavallette Thank Roberto. I thought about that also but I would like to get only one signal. Only when...
robertogozzi (see below)
robertogozzi If MagicTrend <> MagicTrend[1] then it's Green or Red
Nicolas There is no specific file for MAC. Download the itf file and import it into your platform by...
jerome777 bonjour merci pour le partage !!!! je débute dans les codes , j ai une question je les l i...
Nicolas Il faut l'ajouter sur le prix avec l'icône de la clé situé en haut à gauche du graphique du ...
Nicolas change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Paolo.B Thanks ... works as i wanted.
Kanamax Bonjour Nicolas, comme Paolo.B je souhaiterais utiliser cette indicateur au sein d'un code. ...
Boris Hi IVMcm, thanks for your amazing work. I have tested all of your indicators and use some of...
IV Mcm With pleasure and thanks!
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.....
Maxime Baudin Super travail !
Yanic c'est top j'adore
Maxime Baudin Merci l'ami, passe une bonne semaine
IV Mcm Merci de même ;) "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm
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 ...
Daniele Maddaluno Écrivez-moi où vous préférez you can easily find me on LinkedIn
AK27 C'est payant visiblement sur linkdin je peux pas vous envoyer, discord vous avez ?
Manu L. defparam drawonlastbaronly = true //fractals cp = lookback if high[cp] >= highest[(c...
Manu L. C'est cette partie qui ne s'affiche plus //support/resistance if showSR then DRAWHLINE...
Nicolas C'est dans ce sujet: M...
IV Mcm Line 68 and 70, you must delete the instruction at the end of the line "" Bordercolor(0,0,0,...
BoutDePain This instruction is for the V11 maybe that you are using V10.3 then you can safely remove it.
Protagonist Bonjour, Je vois l'instruction inRange mais je ne trouve pas sa signification. Pouvez-vous...