OPEN-SOURCE SCRIPT

Close Counter Histogram

Updated
An interesting experiment to make an indicator act as a counter. I call it CCH - Close Counter Histogram.
It adds 1 when current close is higher than previous close and reduces -1 when current close is lower than previous close.
In the CCH settings you set how many bars to look back and use EMA to smooth the results or disable EMA smoothing.
Disable the EMA smoothing and you'll see the real deal (pure counter).

The higher the GREEN columns the more higher closes and the lower the RED columns the more lower closes.
In case columns are declining above 0 a more darker green will appear.
In case columns are declining below 0 a more darker red will appear.

Supports bar coloring (disabled by default).

Feel free to comment and Like if you like.
Enjoy :)
Release Notes
Some code cleaning.
calculatorclosecounter-trendcountertrendhistogramTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Appreciation of my work: paypal.me/dman103
Premium Pivot Points Algo Indicator: tradingview.com/script/LFBaHNuA-Pivot-Points-Algo/
LIVE Stream - Pivot Points Algo: youtube.com/channel/UCFyqab-i0xb2jf-c18ufH0A/live
Also on:

Disclaimer