Global & local RSI w/ adaptive bands

quantifytools 已更新   
As the terms global and local imply, global RSI describes broad relative strength, whereas local RSI describes local relative strength within the broad moves. A macro and micro view of relative strength so to speak. Global and local RSI are simply regular RSI and stochastic RSI. Local RSI extremes ( stochastic RSI oversold/overbought) often mark a pivot in RSI which naturally reflects to price. Local RSI extremes are visualized inside the global RSI bands (upper band for overbought, lower band for oversold) in a "heat map" style.

By default:
Stochastic RSI >= 75 = yellow
Stochastic RSI >= 87 = orange
Stochastic RSI >= 100 = pink

Users also have the ability smooth the RSI with their preferred smoothing method ( SMA , EMA , HMA , RMA, WMA ) and length. This leads to different behavior in RSI, rendering the typical RSI extremes (> 70 or < 30) suboptimal or even useless. By enabling adaptive bands, the extremes are readjusted based on typical RSI pivot points (median pivots ), which gives much more relevant reference points for oversold/overbought conditions in both global and local RSI. This feature can be used without smoothing, but it rarely provides a meaningful difference, unless the RSI calculation length is messed with.

Global RSI can be plotted as candles, bars or a line. Candles and bars can be useful for detecting rejections (wicks) in relative strength, the same you would with OHLC data. Sometimes there are "hidden rejections" that are visible in relative strength but not on OHLC data, which naturally gives an advantage. All colors can be adjusted in the input menu. You also have a real-time view of the current RSI states in top right corner. Available alerts are the following: global RSI overbought, global RSI oversold, local RSI overbought and local RSI oversold.
Small changes to technical documentation.

🟠 Like what you see?

🔑 Try premium scripts free for 14 days: www.quantify.tools

🔔 New releases will drop regularly, follow us on Tradingview and Twitter to stay in the loop

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。