TradingView
twingall
16 Ogs 2022 pukul 15.14

Rsi/W%R/Stoch/Mfi: HTF overlay mini-plots 

Bitcoin / United States DollarCoinbase

Huraian

Overlay mini-plots for various indicators. Shows current timeframe; and option to plot 2x higher timeframes (i.e. 15min and 60min on the 5min chart above).
The idea is to de-clutter chart when you just want real-time snippets for an indicator.
Useful for gauging overbought/oversold, across timeframes, at a glance.

~~Indicators~~
~RSI: Relative strength index
~W%R: Williams percent range
~Stochastic
~MFI: Money flow index

~~Inputs~~
~indicator length (NB default is set to 12, NOT the standard 14)
~choose 2x HTFs, show/hide HTF plots
~choose number of bars to show (current timeframe only; HTF plots show only 6 bars)
~horizontal position: offset (bars); shift plots right or left. Can be negative
~vertical position: top/middle/bottom
~other formatting options (color, line thickness, show/hide labels, 70/30 lines, 80/20 lines)

~~tips~~
~should be relatively easy to add further indicators, so long as they are 0-100 based; by editing lines 9 and 11
~change the vertical compression of the plots by playing around with the numbers (+100, -400, etc) in lines 24 and 25

Nota Keluaran

-fixed minor error in labeling; added more color formatting options

Nota Keluaran

-added 50% line (default is toggled off)
Komen
abarrett69
Hi I like the look of this for RSI. I see it has numbers for OB OS but I have used RSI above/below the 50 line. Would it be possible to modify the display so just 50 is present? You have some great Scripts I'm just looking at! Thanks.
twingall
@abarrett69, done.. you can make the line longer by editing code line 47; adding more '_' characters.. make it dashed by editing to '_ _ _'
abarrett69
@twingall, Thanks Tom, appreciated! I did look at the code but line 47 looked different for add ___ but that's ok. I was going to ask that too but forgot. Anyway it looks very useful, thanks again. Andrew
twingall
@abarrett69, no worries, I just mean line 47 could be replaced by something like:
_50Label = showNumbers? "50________": "________"
or
_50Label = showNumbers? "50_ _ _ _": "_ _ _ _"
Lebih