TradingView
jim380
Aug 29, 2018 1:45 AM

Trend Strength Indicator --- Up/Down Bars % 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

Description

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
Comments
mediadragonceo
Could give access to the source code? As I like the indicator but I would like to change some of the code to best suit my needs.
More