OPEN-SOURCE SCRIPT

Global & local RSI / quantifytools

Mis à jour
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.

snapshot
snapshot

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.
Notes de version
Small changes to technical documentation.
Notes de version
Updated license
adaptiversiadaptivestochasticRelative Strength Index (RSI)rsibarrsicandlesmoothedrsiStochastic OscillatorStochastic RSI (STOCH RSI)

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


✨ Get instant access to Premium Toolstack for Free: Liquidity prints, Price based concepts and Liquidity composition

✨ Start 7-Day Free Trial: quantify.tools

Watch video tutorials covering our tools on Youtube ↓
Aussi sur:

Clause de non-responsabilité