jim380

Trend Strength Indicator --- Up/Down Bars %

Logic

With the lookback period set to 20 (editable), the script loops over the last 20 bars starting from the current bar and counts the up days (Close > Open) and down days (Close < Open). Then it divides the up/down days by the total number of days to give the %. Color themed fib levels are also implemented in this indicator.


Find me on Twitter

Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?