在腳本中搜尋"rsi"
RSI Full Forecast [Titans_Invest]RSI Full Forecast
Get ready to experience the ultimate evolution of RSI-based indicators – the RSI Full Forecast, a boosted and even smarter version of the already powerful: RSI Forecast
Now featuring over 40 additional entry conditions (forecasts), this indicator redefines the way you view the market.
AI-Powered RSI Forecasting:
Using advanced linear regression with the least squares method – a solid foundation for machine learning - the RSI Full Forecast enables you to predict future RSI behavior with impressive accuracy.
But that’s not all: this new version also lets you monitor future crossovers between the RSI and the MA RSI, delivering early and strategic signals that go far beyond traditional analysis.
You’ll be able to monitor future crossovers up to 20 bars ahead, giving you an even broader and more precise view of market movements.
See the Future, Now:
• Track upcoming RSI & RSI MA crossovers in advance.
• Identify potential reversal zones before price reacts.
• Uncover statistical behavior patterns that would normally go unnoticed.
40+ Intelligent Conditions:
The new layer of conditions is designed to detect multiple high-probability scenarios based on historical patterns and predictive modeling. Each additional forecast is a window into the price's future, powered by robust mathematics and advanced algorithmic logic.
Full Customization:
All parameters can be tailored to fit your strategy – from smoothing periods to prediction sensitivity. You have complete control to turn raw data into smart decisions.
Innovative, Accurate, Unique:
This isn’t just an upgrade. It’s a quantum leap in technical analysis.
RSI Full Forecast is the first of its kind: an indicator that blends statistical analysis, machine learning, and visual design to create a true real-time predictive system.
⯁ SCIENTIFIC BASIS LINEAR REGRESSION
Linear Regression is a fundamental method of statistics and machine learning, used to model the relationship between a dependent variable y and one or more independent variables 𝑥.
The general formula for a simple linear regression is given by:
y = β₀ + β₁x + ε
β₁ = Σ((xᵢ - x̄)(yᵢ - ȳ)) / Σ((xᵢ - x̄)²)
β₀ = ȳ - β₁x̄
Where:
y = is the predicted variable (e.g. future value of RSI)
x = is the explanatory variable (e.g. time or bar index)
β0 = is the intercept (value of 𝑦 when 𝑥 = 0)
𝛽1 = is the slope of the line (rate of change)
ε = is the random error term
The goal is to estimate the coefficients 𝛽0 and 𝛽1 so as to minimize the sum of the squared errors — the so-called Random Error Method Least Squares.
⯁ LEAST SQUARES ESTIMATION
To minimize the error between predicted and observed values, we use the following formulas:
β₁ = /
β₀ = ȳ - β₁x̄
Where:
∑ = sum
x̄ = mean of x
ȳ = mean of y
x_i, y_i = individual values of the variables.
Where:
x_i and y_i are the means of the independent and dependent variables, respectively.
i ranges from 1 to n, the number of observations.
These equations guarantee the best linear unbiased estimator, according to the Gauss-Markov theorem, assuming homoscedasticity and linearity.
⯁ LINEAR REGRESSION IN MACHINE LEARNING
Linear regression is one of the cornerstones of supervised learning. Its simplicity and ability to generate accurate quantitative predictions make it essential in AI systems, predictive algorithms, time series analysis, and automated trading strategies.
By applying this model to the RSI, you are literally putting artificial intelligence at the heart of a classic indicator, bringing a new dimension to technical analysis.
⯁ VISUAL INTERPRETATION
Imagine an RSI time series like this:
Time →
RSI →
The regression line will smooth these values and extend them n periods into the future, creating a predicted trajectory based on the historical moment. This line becomes the predicted RSI, which can be crossed with the actual RSI to generate more intelligent signals.
⯁ SUMMARY OF SCIENTIFIC CONCEPTS USED
Linear Regression Models the relationship between variables using a straight line.
Least Squares Minimizes the sum of squared errors between prediction and reality.
Time Series Forecasting Estimates future values based on historical data.
Supervised Learning Trains models to predict outputs from known inputs.
Statistical Smoothing Reduces noise and reveals underlying trends.
⯁ WHY THIS INDICATOR IS REVOLUTIONARY
Scientifically-based: Based on statistical theory and mathematical inference.
Unprecedented: First public RSI with least squares predictive modeling.
Intelligent: Built with machine learning logic.
Practical: Generates forward-thinking signals.
Customizable: Flexible for any trading strategy.
⯁ CONCLUSION
By combining RSI with linear regression, this indicator allows a trader to predict market momentum, not just follow it.
RSI Full Forecast is not just an indicator — it is a scientific breakthrough in technical analysis technology.
⯁ Example of simple linear regression, which has one independent variable:
⯁ In linear regression, observations ( red ) are considered to be the result of random deviations ( green ) from an underlying relationship ( blue ) between a dependent variable ( y ) and an independent variable ( x ).
⯁ Visualizing heteroscedasticity in a scatterplot against 100 random fitted values using Matlab:
⯁ The data sets in the Anscombe's quartet are designed to have approximately the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but are graphically very different. This illustrates the pitfalls of relying solely on a fitted model to understand the relationship between variables.
⯁ The result of fitting a set of data points with a quadratic function:
_________________________________________________
🔮 Linear Regression: PineScript Technical Parameters 🔮
_________________________________________________
Forecast Types:
• Flat: Assumes prices will remain the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
ta.linreg (built-in function)
Linear regression curve. A line that best fits the specified prices over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where intercept and slope are the values calculated using the least squares method on the source series.
Syntax:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset: Offset.
• return: Linear regression curve.
This function has been cleverly applied to the RSI, making it capable of projecting future values based on past statistical trends.
______________________________________________________
______________________________________________________
⯁ WHAT IS THE RSI❓
The Relative Strength Index (RSI) is a technical analysis indicator developed by J. Welles Wilder. It measures the magnitude of recent price movements to evaluate overbought or oversold conditions in a market. The RSI is an oscillator that ranges from 0 to 100 and is commonly used to identify potential reversal points, as well as the strength of a trend.
⯁ HOW TO USE THE RSI❓
The RSI is calculated based on average gains and losses over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and includes three main zones:
• Overbought: When the RSI is above 70, indicating that the asset may be overbought.
• Oversold: When the RSI is below 30, indicating that the asset may be oversold.
• Neutral Zone: Between 30 and 70, where there is no clear signal of overbought or oversold conditions.
______________________________________________________
______________________________________________________
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
📈 RSI Conditions:
🔹 RSI > Upper
🔹 RSI < Upper
🔹 RSI > Lower
🔹 RSI < Lower
🔹 RSI > Middle
🔹 RSI < Middle
🔹 RSI > MA
🔹 RSI < MA
📈 MA Conditions:
🔹 MA > Upper
🔹 MA < Upper
🔹 MA > Lower
🔹 MA < Lower
📈 Crossovers:
🔹 RSI (Crossover) Upper
🔹 RSI (Crossunder) Upper
🔹 RSI (Crossover) Lower
🔹 RSI (Crossunder) Lower
🔹 RSI (Crossover) Middle
🔹 RSI (Crossunder) Middle
🔹 RSI (Crossover) MA
🔹 RSI (Crossunder) MA
🔹 MA (Crossover) Upper
🔹 MA (Crossunder) Upper
🔹 MA (Crossover) Lower
🔹 MA (Crossunder) Lower
📈 RSI Divergences:
🔹 RSI Divergence Bull
🔹 RSI Divergence Bear
📈 RSI Forecast:
🔹 RSI (Crossover) MA Forecast
🔹 RSI (Crossunder) MA Forecast
🔹 RSI Forecast 1 > MA Forecast 1
🔹 RSI Forecast 1 < MA Forecast 1
🔹 RSI Forecast 2 > MA Forecast 2
🔹 RSI Forecast 2 < MA Forecast 2
🔹 RSI Forecast 3 > MA Forecast 3
🔹 RSI Forecast 3 < MA Forecast 3
🔹 RSI Forecast 4 > MA Forecast 4
🔹 RSI Forecast 4 < MA Forecast 4
🔹 RSI Forecast 5 > MA Forecast 5
🔹 RSI Forecast 5 < MA Forecast 5
🔹 RSI Forecast 6 > MA Forecast 6
🔹 RSI Forecast 6 < MA Forecast 6
🔹 RSI Forecast 7 > MA Forecast 7
🔹 RSI Forecast 7 < MA Forecast 7
🔹 RSI Forecast 8 > MA Forecast 8
🔹 RSI Forecast 8 < MA Forecast 8
🔹 RSI Forecast 9 > MA Forecast 9
🔹 RSI Forecast 9 < MA Forecast 9
🔹 RSI Forecast 10 > MA Forecast 10
🔹 RSI Forecast 10 < MA Forecast 10
🔹 RSI Forecast 11 > MA Forecast 11
🔹 RSI Forecast 11 < MA Forecast 11
🔹 RSI Forecast 12 > MA Forecast 12
🔹 RSI Forecast 12 < MA Forecast 12
🔹 RSI Forecast 13 > MA Forecast 13
🔹 RSI Forecast 13 < MA Forecast 13
🔹 RSI Forecast 14 > MA Forecast 14
🔹 RSI Forecast 14 < MA Forecast 14
🔹 RSI Forecast 15 > MA Forecast 15
🔹 RSI Forecast 15 < MA Forecast 15
🔹 RSI Forecast 16 > MA Forecast 16
🔹 RSI Forecast 16 < MA Forecast 16
🔹 RSI Forecast 17 > MA Forecast 17
🔹 RSI Forecast 17 < MA Forecast 17
🔹 RSI Forecast 18 > MA Forecast 18
🔹 RSI Forecast 18 < MA Forecast 18
🔹 RSI Forecast 19 > MA Forecast 19
🔹 RSI Forecast 19 < MA Forecast 19
🔹 RSI Forecast 20 > MA Forecast 20
🔹 RSI Forecast 20 < MA Forecast 20
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
📉 RSI Conditions:
🔸 RSI > Upper
🔸 RSI < Upper
🔸 RSI > Lower
🔸 RSI < Lower
🔸 RSI > Middle
🔸 RSI < Middle
🔸 RSI > MA
🔸 RSI < MA
📉 MA Conditions:
🔸 MA > Upper
🔸 MA < Upper
🔸 MA > Lower
🔸 MA < Lower
📉 Crossovers:
🔸 RSI (Crossover) Upper
🔸 RSI (Crossunder) Upper
🔸 RSI (Crossover) Lower
🔸 RSI (Crossunder) Lower
🔸 RSI (Crossover) Middle
🔸 RSI (Crossunder) Middle
🔸 RSI (Crossover) MA
🔸 RSI (Crossunder) MA
🔸 MA (Crossover) Upper
🔸 MA (Crossunder) Upper
🔸 MA (Crossover) Lower
🔸 MA (Crossunder) Lower
📉 RSI Divergences:
🔸 RSI Divergence Bull
🔸 RSI Divergence Bear
📉 RSI Forecast:
🔸 RSI (Crossover) MA Forecast
🔸 RSI (Crossunder) MA Forecast
🔸 RSI Forecast 1 > MA Forecast 1
🔸 RSI Forecast 1 < MA Forecast 1
🔸 RSI Forecast 2 > MA Forecast 2
🔸 RSI Forecast 2 < MA Forecast 2
🔸 RSI Forecast 3 > MA Forecast 3
🔸 RSI Forecast 3 < MA Forecast 3
🔸 RSI Forecast 4 > MA Forecast 4
🔸 RSI Forecast 4 < MA Forecast 4
🔸 RSI Forecast 5 > MA Forecast 5
🔸 RSI Forecast 5 < MA Forecast 5
🔸 RSI Forecast 6 > MA Forecast 6
🔸 RSI Forecast 6 < MA Forecast 6
🔸 RSI Forecast 7 > MA Forecast 7
🔸 RSI Forecast 7 < MA Forecast 7
🔸 RSI Forecast 8 > MA Forecast 8
🔸 RSI Forecast 8 < MA Forecast 8
🔸 RSI Forecast 9 > MA Forecast 9
🔸 RSI Forecast 9 < MA Forecast 9
🔸 RSI Forecast 10 > MA Forecast 10
🔸 RSI Forecast 10 < MA Forecast 10
🔸 RSI Forecast 11 > MA Forecast 11
🔸 RSI Forecast 11 < MA Forecast 11
🔸 RSI Forecast 12 > MA Forecast 12
🔸 RSI Forecast 12 < MA Forecast 12
🔸 RSI Forecast 13 > MA Forecast 13
🔸 RSI Forecast 13 < MA Forecast 13
🔸 RSI Forecast 14 > MA Forecast 14
🔸 RSI Forecast 14 < MA Forecast 14
🔸 RSI Forecast 15 > MA Forecast 15
🔸 RSI Forecast 15 < MA Forecast 15
🔸 RSI Forecast 16 > MA Forecast 16
🔸 RSI Forecast 16 < MA Forecast 16
🔸 RSI Forecast 17 > MA Forecast 17
🔸 RSI Forecast 17 < MA Forecast 17
🔸 RSI Forecast 18 > MA Forecast 18
🔸 RSI Forecast 18 < MA Forecast 18
🔸 RSI Forecast 19 > MA Forecast 19
🔸 RSI Forecast 19 < MA Forecast 19
🔸 RSI Forecast 20 > MA Forecast 20
🔸 RSI Forecast 20 < MA Forecast 20
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : RSI Full Forecast
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
RSI 11 IndicatorThis script explains how RSI can be used to catch market moves in trend, reversal or sideways market.
What is RSI indicator:-
RSI is a momentum oscillator which measures the speed and change of price movements. RSI moves up and down (oscillates) between ZERO and 100. Generally RSI above 70 is considered overbought and below 30 is considered oversold. Some traders may use a setting of 20 and 80 for oversold and overbought conditions respectively. However this may reduce the number of signals. You can also use RSI to identify divergences, strength, reversals, general trend etc.
Calculation:-
There are three basic components in the RSI - Avg Gain, Avg Loss & RS.
Avg Gain = Average of Upward Price Change
Avg Loss = Average of Downward Price Change
RS = (Avg Gain)/(Avg Loss)
RSI = 100 – (100 / (1 +RS ))
First Calculation:-
RSI calculation is based on default 14 periods.
Average gain and Average loss are simple 14 period averages.
Average Loss equals the sum of the losses divided by 14 for the first calculation.
Average Gain equals the sum of the Gains divided by 14 for the first calculation.
First Average Gain = Sum of Gains over the past 14 periods / 14.
First Average Loss = Sum of Losses over the past 14 periods / 14.
The formula uses a positive value for the average loss.
RS values are smoothed after the first calculation.
Second Calculation:-
Subsequent calculations multiply the prior value by 13, add the most recent value, and divide the total by 14.
Average Gain = / 14.
Average Loss = / 14.
if
Average Loss = 0, RSI = 100 (means there were no losses to measure).
Average Gain = 0, RSI = 0 (means there were no gains to measure).
Logic of this indicator:-
RSI is an oscillator that fluctuates between zero and 100 which makes it easy to use for many traders.
Its easy to identify extremes because RSI is range-bound.
But remember that RSI works best in range bound market and is less trustworthy in trending markets.
A new trader need to be cautious because during strong trends in the market/security, RSI may remain in overbought or oversold for extended periods.
Chart Timeframe:-
RSI indicator works well on all timeframes.
Timeframe depends on which strategy or settings are you using.
Generally a lower timeframe like 1 min, 3 min, 5 min, 15 min, 30 min, 1 Hr etc is used for intraday trades or short duration trades
and higher timeframes like 1 day, 1 week, 1 month are used for positional or long term trades.
Please Read the Idea "Mastering RSI with 11 Strategies" to understand this indicator better.
Indicator 1
Basis Strategy of Overbought and Oversold
Usually an asset with RSI reading of 70 or above indicates a bullish and an overbought situation.
overbought can be seen as trading at a higher price than it should.
traders may expect a price correction or trend reversal and sell the security.
but RSI indicator can stay in the overbought for a long time when the stock is in uptrend - This may trap an immature trader.
an Immature trader will enter a sell position when RSI become overbought (70), whereas a mature trader will enter sell position when RSI line crosses below the overbought line (70).
An asset with RSI reading of 30 or below indicates a bearish and an oversold condition.
oversold can be seen as trading at a lower price than it should.
traders may expect a price correction or trend reversal and buy the security.
but RSI indicator can stay in the oversold for a long time when the stock is in downtrend - This may trap an immature trader.
an Immature trader will enter a buy position when RSI become oversold (30), whereas a mature trader will enter buy position when RSI line crosses above the oversold line (30).
Center dotted Mid line is RSI 50.
Chart RSI is shown in yellow colour.
Red shaded area above the red horizontal line shows the stock or security has entered overbought condition. "R" signal in red shows a likely downside reversal, means it may be a likely Selling opportunity.
Green shaded area below the green horizontal line shows the stock or security has entered oversold condition. "R" signal in green shows a likely upside reversal, means it may be a likely Buying opportunity.
Note:-
so its better to wait for reversal signal.
traders may use 20 instead of 30 as oversold level and 80 instead of 70 as overbought level.
new traders may learn to use the indicator as per the prevailing trend to get better results.
false signals may be avoided by using bullish signals in bullish trend and bearish signals in bearish trend.
Indicator 2
RSI Strength Crossing 50
RSI crossing centreline 50 in the below chart showing strength and buy/sell signal.
Centre line is at RSI 50.
if RSI is above 50 its considered bullish trend. (increasing strength)
if RSI is below 50 its considered bearish trend. (decreasing strength)
RSI crossing centre line (50) upside may be a buy signal.
RSI crossing centre line (50) downside may be a sell signal.
"B" signal in green colour shows that RSI is crossing above Mid 50 horizontal line, which may be a likely Buy signal.
"S" signal in red colour shows that RSI is crossing below Mid 50 horizontal line, which may be a likely Sell signal.
Indicator 3
RSI 40 and RSI 60 Support and Resistance
RSI 40 acting as support in the below chart
In an uptrend RSI tends to remain in the 40 to 90 range with 40 as support (buying opportunity at support).
RSI 60 acting as resistance in the below chart
In a downtrend RSI tends to remain in 10 to 60 range with 60 as resistance (selling opportunity at resistance).
"40" signal in green colour shows that RSI is crossing above 40 horizontal line, which may be a likely Support in making and a Buy signal.
"60" signal in red colour shows that RSI is crossing below 60 horizontal line, which may be a likely Resistance in making and a Sell signal.
Note:-
These ranges may change depending on RSI settings and change in the market trend.
Indicator 4
RSI Divergence
Below chart shows a simple example of Bullish Divergence and Bearish Divergence.
An RSI divergence occurs when price moves in the opposite direction of the RSI.
A bullish divergence is when price is falling but RSI is rising. which means RSI making higher lows and price making lower lows (buy signal).
A bearish divergence is when price is rising but RSI is falling. which means RSI making lower high and price making higher highs (sell signal).
Divergences are more strong when appear in an overbought or oversold condition.
There may be many false signals during a strong uptrend or strong downtrend.
In a strong uptrend, RSI may show many false bearish divergences before finally reversing down.
same way in a strong downtrend, RSI may show many false bullish divergences before finally reversing up.
"Bull Div" signal along with divergence line in green colour shows Bullish Divergence, which may be a likely Buy signal.
"Bear Div" signal along with divergence line in red colour shows Bearish Divergence, which may be a likely Sell signal.
Indicator 5
Double Top & Double Bottom
Double Bottom = RSI goes below oversold (30). RSI comes back above 30. RSI falls back again towards 30 and again rise making a Double bottom. its a signal of buying and likely upside reversal.
Double Top = RSI goes above overbought (70). RSI comes back below 70. RSI rises back again towards 70 and again fall making a Double top. its a signal of selling and likely downside reversal.
Double Bottom is shown with Green Dashed line joining two low's of RSI indicating a likely Buy Signal.
Double Top is shown with Red Dashed line joining two High's of RSI indicating a likely Sell Signal.
Indicator 6
Trendline Support and Resistance
Below chart shows RSI Trendline Resistance and Support
RSI resistance trendline = Connect three or more points on the RSI line as it falls to draw a RSI downtrend line (RSI resistance trendline).
Everytime it takes resistance from a RSI downtrend line its a selling opportunity.
RSI support trendline = Connect three or more points on the RSI line as it rises to draw a RSI uptrend line (RSI support trendline).
Everytime it takes support on a RSI uptrend line its a buying opportunity.
RSI Resistance trendline shown in Red colour indicating a likely fall again after rejection from this Red trendline till the time RSI breaks above it to change the trend from Bearsih to Bullish.
RSI support trendline shown in Green colour indicating a likely Rise again after support from this Green trendline till the time RSI breaks below it to change the trend from Bullish to Bearish.
Indicator 7
Trendline Breakout and Breakdown
Below chart shows RSI Trendline Breakout and Breakdown
RSI resistance trendline Breakout = Connect three or more points on the RSI line as it falls to draw a RSI downtrend line (RSI resistance trendline).
Whenever it breakout above RSI resistance trendline its a buying opportunity.
RSI support trendline Breakdown = Connect three or more points on the RSI line as it rises to draw a RSI uptrend line (RSI support trendline).
Whenever it breakdown below RSI support trendline its a selling opportunity.
Note:-
Correlate both the RSI and the closing price to ensure proper breakout or breakdown.
Challenge is to correctly identify if a breakout or breakdown is sustainable or its a false signal.
Indicator 8
RSI Crossover same timeframe
RSI with two different RSI length crossing each other on same timeframe.
when lower RSI length crossing above higher RSI length its a buy signal.
when lower RSI length crossing below higher RSI length its a sell signal.
for example RSI with length 7 & length 14 on 15 Minutes timeframe.
Green Cross shows that Fast RSI is crossing above Slow RSI on the same timeframe with different RSI length Settings, which means it may be a likely Buy Signal.
Red Cross shows that Fast RSI is crossing below Slow RSI on the same timeframe with different RSI length Settings, which means it may be a likely Sell Signal.
Indicator 9
RSI Crossover Multi timeframe
RSI with same RSI length but on two different timeframes crossing each.
when lower timeframe RSI crossing above higher timeframe RSI its a buy signal.
when lower timeframe RSI crossing below higher timeframe RSI its a sell signal.
for example RSI with length 14 on 5 Minutes and 1 Hr timeframes.
Green Cross shows that Lower Timeframe RSI is crossing above Higher Timeframe RSI with same RSI length Settings, which means it may be a likely Buy Signal.
Red Cross shows that Lower Timeframe RSI is crossing below Higher Timeframe RSI with same RSI length Settings, which means it may be a likely Sell Signal.
Indicator 10
RSI EMA/WMA/SMA Crossover
when RSI crossing above EMA/WMA/SMA its a buy signal.
when RSI crossing below EMA/WMA/SMA its a sell signal.
Green Circle shows that RSI is crossing above EMA/WMA/SMA etc, which means it may be a likely Buy Signal.
Red Circle shows that RSI is crossing below EMA/WMA/SMA etc, which means it may be a likely Sell Signal.
Indicator 11
RSI with Bollinger bands
Bollinger bands and RSI complimenting each other and giving a Buy and Sell signal in below chart
if a security price reaches upper band of a Bollinger Band channel and also the RSI is above 70 (overbought), a trader can look for selling opportunities (reversal) (sell).
but in case price reaches upper band of a Bollinger Band channel but RSI is not above 70 (overbought), there may be chance that security remains in an uptrend, so a trader may wait before entering a sell position.
if a security price reaches lower band of a Bollinger Band channel and also the RSI is below 30 (oversold), a trader can look for buying opportunities (reversal) (buy).
but in case price reaches lower band of a Bollinger Band channel but RSI is not below 30 (oversold), there may be chance that security remains in an downtrend, so a trader may wait before entering a buy position.
so bollinger band with RSI can give a double confirmation on a reversal.
Buy Signal = If the RSI is below Green Horizontal line (Oversold zone) and also below Lower Bollinger Band it indicates that an upside reversal may come, which means that it may be a likely Buy Signal.
Sell Signal = If the RSI is above Red Horizontal line (Overbought zone) and also above Upper Bollinger Band it indicates that an Downside reversal may come, which means that it may be a likely Sell Signal.
Special Thanks to //© HoanGhetti for RSI Trendlines.
Limitations of the RSI:-
RSI works best in range bound market and is less trustworthy in trending markets.
So new traders may get trapped in an uptrend or a downtrend if they forget to see the overall long term trend of that security.
Traders should set stop loss and take profit levels as per risk reward ratio.
Note:
Don't confuse RSI and relative strength. RSI is changes in the price momentum of a security.
whereas relative strength compares the price performance of two or more securities.
Like other technical indicators, RSI also is not a holy grail. It can only assist you in building a good strategy. You can only succeed with proper position sizing, risk management and following correct trading Psychology (No overtrade, No greed, No revenge trade etc).
THIS INDICATOR OF RSI IS FOR EDUCATIONAL PURPOSE AND PAPER TRADING ONLY. YOU MAY PAPER TRADE TO GAIN CONFIDENCE AND BUILD FURTHER ON THESE. PLEASE CONSULT YOUR FINANCIAL ADVISOR BEFORE INVESTING. WE ARE NOT SEBI REGISTERED.
Hope you all like it
happy learning.
RSI of RSI Deviation (RoRD)RSI of RSI Deviation (RoRD) - Advanced Momentum Acceleration Analysis
What is RSI of RSI Deviation (RoRD)?
RSI of RSI Deviation (RoRD) is a insightful momentum indicator that transcends traditional oscillator analysis by measuring the acceleration of momentum through sophisticated mathematical layering. By calculating RSI on RSI itself (RSI²) and applying advanced statistical deviation analysis with T3 smoothing, RoRD reveals hidden market dynamics that single-layer indicators miss entirely.
This isn't just another RSI variant—it's a complete reimagining of how we measure and visualize momentum dynamics. Where traditional RSI shows momentum, RoRD shows momentum's rate of change . Where others show static overbought/oversold levels, RoRD reveals statistically significant deviations unique to each market's character.
Theoretical Foundation - The Mathematics of Momentum Acceleration
1. RSI² (RSI of RSI) - The Core Innovation
Traditional RSI measures price momentum. RoRD goes deeper:
Primary RSI (RSI₁) : Standard RSI calculation on price
Secondary RSI (RSI²) : RSI calculated on RSI₁ values
This creates a "momentum of momentum" indicator that leads price action
Mathematical Expression:
RSI₁ = 100 - (100 / (1 + RS₁))
RSI² = 100 - (100 / (1 + RS₂))
Where RS₂ = Average Gain of RSI₁ / Average Loss of RSI₁
2. T3 Smoothing - Lag-Free Response
The T3 Moving Average, developed by Tim Tillson, provides:
Superior smoothing with minimal lag
Adaptive response through volume factor (vFactor)
Noise reduction while preserving signal integrity
T3 Formula:
T3 = c1×e6 + c2×e5 + c3×e4 + c4×e3
Where e1...e6 are cascaded EMAs and c1...c4 are volume-factor-based coefficients
3. Statistical Z-Score Deviation
RoRD employs dual-layer Z-score normalization :
Initial Z-Score : (RSI² - SMA) / StDev
Final Z-Score : Z-score of the Z-score for refined extremity detection
This identifies statistically rare events relative to recent market behavior
4. Multi-Timeframe Confluence
Compares current timeframe Z-score with higher timeframe (HTF)
Provides directional confirmation across time horizons
Filters false signals through timeframe alignment
Why RoRD is Different & More Sophisticated
Beyond Traditional Indicators:
Acceleration vs. Velocity : While RSI measures momentum (velocity), RoRD measures momentum's rate of change (acceleration)
Adaptive Thresholds : Z-score analysis adapts to market conditions rather than using fixed 70/30 levels
Statistical Significance : Signals are based on mathematical rarity, not arbitrary levels
Leading Indicator : RSI² often turns before price, providing earlier signals
Reduced Whipsaws : T3 smoothing eliminates noise while maintaining responsiveness
Unique Signal Generation:
Quantum Orbs : Multi-layered visual signals for statistically extreme events
Divergence Detection : Automated identification of price/momentum divergences
Regime Backgrounds : Visual market state classification (Bullish/Bearish/Neutral)
Particle Effects : Dynamic visualization of momentum energy
Visual Design & Interpretation Guide
Color Coding System:
Yellow (#e1ff00) : Neutral/balanced momentum state
Red (#ff0000) : Overbought/extreme bullish acceleration
Green (#2fff00) : Oversold/extreme bearish acceleration
Orange : Z-score visualization
Blue : HTF Z-score comparison
Main Visual Elements:
RSI² Line with Glow Effect
Multi-layer glow creates depth and emphasis
Color dynamically shifts based on momentum state
Line thickness indicates signal strength
Quantum Signal Orbs
Green Orbs Below : Statistically rare oversold conditions
Red Orbs Above : Statistically rare overbought conditions
Multiple layers indicate signal strength
Only appear at Z-score extremes for high-conviction signals
Divergence Markers
Green Circles : Bullish divergence detected
Red Circles : Bearish divergence detected
Plotted at pivot points for precision
Background Regimes
Green Background : Bullish momentum regime
Grey Background : Bearish momentum regime
Blue Background : Neutral/transitioning regime
Particle Effects
Density indicates momentum energy
Color matches current RSI² state
Provides dynamic market "feel"
Dashboard Metrics - Deep Dive
RSI² ANALYSIS Section:
RSI² Value (0-100)
Current smoothed RSI of RSI reading
>70 : Strong bullish acceleration
<30 : Strong bearish acceleration
~50 : Neutral momentum state
RSI¹ Value
Traditional RSI for reference
Compare with RSI² for acceleration/deceleration insights
Z-Score Status
🔥 EXTREME HIGH : Z > threshold, statistically rare bullish
❄️ EXTREME LOW : Z < threshold, statistically rare bearish
📈 HIGH/📉 LOW : Elevated but not extreme
➡️ NEUTRAL : Normal statistical range
MOMENTUM Section:
Velocity Indicator
▲▲▲ : Strong positive acceleration
▼▼▼ : Strong negative acceleration
Shows rate of change in RSI²
Strength Bar
██████░░░░ : Visual power gauge
Filled bars indicate momentum strength
Based on deviation from center line
SIGNALS Section:
Divergence Status
🟢 BULLISH DIV : Price making lows, RSI² making highs
🔴 BEARISH DIV : Price making highs, RSI² making lows
⚪ NO DIVERGENCE : No divergence detected
HTF Comparison
🔥 HTF EXTREME : Higher timeframe confirms extremity
📊 HTF NORMAL : Higher timeframe is neutral
Critical for multi-timeframe confirmation
Trading Application & Strategy
Signal Hierarchy (Highest to Lowest Priority):
Quantum Orb + HTF Alignment + Divergence
Highest conviction reversal signal
Z-score extreme + timeframe confluence + divergence
Quantum Orb + HTF Alignment
Strong reversal signal
Wait for price confirmation
Divergence + Regime Change
Medium-term reversal signal
Monitor for orb confirmation
Threshold Crosses
Traditional overbought/oversold
Use as alert, not entry
Entry Strategies:
For Reversals:
Wait for Quantum Orb signal
Confirm with HTF Z-score direction
Enter on price structure break
Stop beyond recent extreme
For Continuations:
Trade with regime background color
Use RSI² pullbacks to center line
Avoid signals against HTF trend
For Scalping:
Focus on Z-score extremes
Quick entries on orb signals
Exit at center line cross
Risk Management:
Reduce position size when signals conflict with HTF
Avoid trades during regime transitions (blue background)
Tighten stops after divergence completion
Scale out at statistical mean reversion
Development & Uniqueness
RoRD represents months of research into momentum dynamics and statistical analysis. Unlike indicators that simply combine existing tools, RoRD introduces several genuine innovations :
True RSI² Implementation : Not a smoothed RSI, but actual RSI calculated on RSI values
Dual Z-Score Normalization : Unique approach to finding statistical extremes
T3 Integration : First RSI² implementation with T3 smoothing for optimal lag reduction
Quantum Orb Visualization : Revolutionary signal display method
Dynamic Regime Detection : Automatic market state classification
Statistical Adaptability : Thresholds adapt to market volatility
This indicator was built from first principles, with each component carefully selected for its mathematical properties and practical trading utility. The result is a professional-grade tool that provides insights unavailable through traditional momentum analysis.
Best Practices & Tips
Start with default settings - they're optimized for most markets
Always check HTF alignment before taking signals
Use divergences as early warning , orbs as confirmation
Respect regime backgrounds - trade with them, not against
Combine with price action - RoRD shows when, price shows where
Adjust Z-score thresholds based on market volatility
Monitor dashboard metrics for complete market context
Conclusion
RoRD isn't just another indicator—it's a complete momentum analysis system that reveals market dynamics invisible to traditional tools. By combining momentum acceleration, statistical analysis, and multi-timeframe confluence with intuitive visualization, RoRD provides traders with a sophisticated edge in any market condition.
Whether you're scalping rapid reversals or positioning for major trend changes, RoRD's unique approach to momentum analysis will transform how you see and trade market dynamics.
See momentum's future. Trade with statistical edge.
Trade with insight. Trade with anticipation.
— Dskyz, for DAFE Trading Systems
RSI Forecast [Titans_Invest]RSI Forecast
Introducing one of the most impressive RSI indicators ever created – arguably the best on TradingView, and potentially the best in the world.
RSI Forecast is a visionary evolution of the classic RSI, merging powerful customization with groundbreaking predictive capabilities. While preserving the core principles of traditional RSI, it takes analysis to the next level by allowing users to anticipate potential future RSI movements.
Real-Time RSI Forecasting:
For the first time ever, an RSI indicator integrates linear regression using the least squares method to accurately forecast the future behavior of the RSI. This innovation empowers traders to stay one step ahead of the market with forward-looking insight.
Highly Customizable:
Easily adapt the indicator to your personal trading style. Fine-tune a variety of parameters to generate signals perfectly aligned with your strategy.
Innovative, Unique, and Powerful:
This is the world’s first RSI Forecast to apply this predictive approach using least squares linear regression. A truly elite-level tool designed for traders who want a real edge in the market.
⯁ SCIENTIFIC BASIS LINEAR REGRESSION
Linear Regression is a fundamental method of statistics and machine learning, used to model the relationship between a dependent variable y and one or more independent variables 𝑥.
The general formula for a simple linear regression is given by:
y = β₀ + β₁x + ε
Where:
y = is the predicted variable (e.g. future value of RSI)
x = is the explanatory variable (e.g. time or bar index)
β0 = is the intercept (value of 𝑦 when 𝑥 = 0)
𝛽1 = is the slope of the line (rate of change)
ε = is the random error term
The goal is to estimate the coefficients 𝛽0 and 𝛽1 so as to minimize the sum of the squared errors — the so-called Random Error Method Least Squares.
⯁ LEAST SQUARES ESTIMATION
To minimize the error between predicted and observed values, we use the following formulas:
β₁ = /
β₀ = ȳ - β₁x̄
Where:
∑ = sum
x̄ = mean of x
ȳ = mean of y
x_i, y_i = individual values of the variables.
Where:
x_i and y_i are the means of the independent and dependent variables, respectively.
i ranges from 1 to n, the number of observations.
These equations guarantee the best linear unbiased estimator, according to the Gauss-Markov theorem, assuming homoscedasticity and linearity.
⯁ LINEAR REGRESSION IN MACHINE LEARNING
Linear regression is one of the cornerstones of supervised learning. Its simplicity and ability to generate accurate quantitative predictions make it essential in AI systems, predictive algorithms, time series analysis, and automated trading strategies.
By applying this model to the RSI, you are literally putting artificial intelligence at the heart of a classic indicator, bringing a new dimension to technical analysis.
⯁ VISUAL INTERPRETATION
Imagine an RSI time series like this:
Time →
RSI →
The regression line will smooth these values and extend them n periods into the future, creating a predicted trajectory based on the historical moment. This line becomes the predicted RSI, which can be crossed with the actual RSI to generate more intelligent signals.
⯁ SUMMARY OF SCIENTIFIC CONCEPTS USED
Linear Regression Models the relationship between variables using a straight line.
Least Squares Minimizes the sum of squared errors between prediction and reality.
Time Series Forecasting Estimates future values based on historical data.
Supervised Learning Trains models to predict outputs from known inputs.
Statistical Smoothing Reduces noise and reveals underlying trends.
⯁ WHY THIS INDICATOR IS REVOLUTIONARY
Scientifically-based: Based on statistical theory and mathematical inference.
Unprecedented: First public RSI with least squares predictive modeling.
Intelligent: Built with machine learning logic.
Practical: Generates forward-thinking signals.
Customizable: Flexible for any trading strategy.
⯁ CONCLUSION
By combining RSI with linear regression, this indicator allows a trader to predict market momentum, not just follow it.
RSI Forecast is not just an indicator — it is a scientific breakthrough in technical analysis technology.
⯁ Example of simple linear regression, which has one independent variable:
⯁ In linear regression, observations ( red ) are considered to be the result of random deviations ( green ) from an underlying relationship ( blue ) between a dependent variable ( y ) and an independent variable ( x ).
⯁ Visualizing heteroscedasticity in a scatterplot against 100 random fitted values using Matlab:
⯁ The data sets in the Anscombe's quartet are designed to have approximately the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but are graphically very different. This illustrates the pitfalls of relying solely on a fitted model to understand the relationship between variables.
⯁ The result of fitting a set of data points with a quadratic function:
_______________________________________________________________________
🥇 This is the world’s first RSI indicator with: Linear Regression for Forecasting 🥇_______________________________________________________________________
_________________________________________________
🔮 Linear Regression: PineScript Technical Parameters 🔮
_________________________________________________
Forecast Types:
• Flat: Assumes prices will remain the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
ta.linreg (built-in function)
Linear regression curve. A line that best fits the specified prices over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where intercept and slope are the values calculated using the least squares method on the source series.
Syntax:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset: Offset.
• return: Linear regression curve.
This function has been cleverly applied to the RSI, making it capable of projecting future values based on past statistical trends.
______________________________________________________
______________________________________________________
⯁ WHAT IS THE RSI❓
The Relative Strength Index (RSI) is a technical analysis indicator developed by J. Welles Wilder. It measures the magnitude of recent price movements to evaluate overbought or oversold conditions in a market. The RSI is an oscillator that ranges from 0 to 100 and is commonly used to identify potential reversal points, as well as the strength of a trend.
⯁ HOW TO USE THE RSI❓
The RSI is calculated based on average gains and losses over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and includes three main zones:
• Overbought: When the RSI is above 70, indicating that the asset may be overbought.
• Oversold: When the RSI is below 30, indicating that the asset may be oversold.
• Neutral Zone: Between 30 and 70, where there is no clear signal of overbought or oversold conditions.
______________________________________________________
______________________________________________________
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
📈 RSI Conditions:
🔹 RSI > Upper
🔹 RSI < Upper
🔹 RSI > Lower
🔹 RSI < Lower
🔹 RSI > Middle
🔹 RSI < Middle
🔹 RSI > MA
🔹 RSI < MA
📈 MA Conditions:
🔹 MA > Upper
🔹 MA < Upper
🔹 MA > Lower
🔹 MA < Lower
📈 Crossovers:
🔹 RSI (Crossover) Upper
🔹 RSI (Crossunder) Upper
🔹 RSI (Crossover) Lower
🔹 RSI (Crossunder) Lower
🔹 RSI (Crossover) Middle
🔹 RSI (Crossunder) Middle
🔹 RSI (Crossover) MA
🔹 RSI (Crossunder) MA
🔹 MA (Crossover) Upper
🔹 MA (Crossunder) Upper
🔹 MA (Crossover) Lower
🔹 MA (Crossunder) Lower
📈 RSI Divergences:
🔹 RSI Divergence Bull
🔹 RSI Divergence Bear
📈 RSI Forecast:
🔮 RSI (Crossover) MA Forecast
🔮 RSI (Crossunder) MA Forecast
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
📉 RSI Conditions:
🔸 RSI > Upper
🔸 RSI < Upper
🔸 RSI > Lower
🔸 RSI < Lower
🔸 RSI > Middle
🔸 RSI < Middle
🔸 RSI > MA
🔸 RSI < MA
📉 MA Conditions:
🔸 MA > Upper
🔸 MA < Upper
🔸 MA > Lower
🔸 MA < Lower
📉 Crossovers:
🔸 RSI (Crossover) Upper
🔸 RSI (Crossunder) Upper
🔸 RSI (Crossover) Lower
🔸 RSI (Crossunder) Lower
🔸 RSI (Crossover) Middle
🔸 RSI (Crossunder) Middle
🔸 RSI (Crossover) MA
🔸 RSI (Crossunder) MA
🔸 MA (Crossover) Upper
🔸 MA (Crossunder) Upper
🔸 MA (Crossover) Lower
🔸 MA (Crossunder) Lower
📉 RSI Divergences:
🔸 RSI Divergence Bull
🔸 RSI Divergence Bear
📉 RSI Forecast:
🔮 RSI (Crossover) MA Forecast
🔮 RSI (Crossunder) MA Forecast
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : RSI Forecast
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
RSI-all in one_Pro[vn]👉Hello traders.
Introducing the " RSI all-in-one " Bot that includes the functions:
+ Automatically scan RSI divergence
+ Automatically scan RSI trendlines
+ Create an alert when there is a golden signal (RSI creates a divergence and then breaks its trendline, signaling a trend reversal)
Explain:
During trading when using the indicator "RSI - trendlines - div " in my library on TW web page:
- I have an idea to create a Bot indicator about "Automatically scan RSI divergences and trendlines". Because those are the top strengths when traders use the RSI to forecast trend reversals.
- On each chart of the trading pair, the RSI draws the trendline pair as: uptrendline and downtrendline (closest to the RSI)
- So when the statistics on "Bot" also shows the column of RSI trendlines up and the column of RSI trendlines down
- Column |════🡹\n\ʀꜱɪ| - is the above RSI trendline
- Column |ʀꜱɪ\n\════🡻| - is the below RSI trendline
- When RSI approaches any one of its trendlines and the ratio is 10%, then:
+ in column |✎\n\𝖙.𝖑𝖎𝖓𝖊| Red colored digits (downtrend)
+ in column |𝖙.𝖑𝖎𝖓𝖊\n\✐| blue colored digits (uptrend)
Is the value of the RSI trendline for traders to pay more attention to when it can be the entry and exit points according to the resistance and support nature of the RSI trendlines.
- When the RSI breaks the above trendline, it shows is "🡹", if it is the first candle, at the column |════🡹\n\ʀꜱɪ| it shows as "🡹1|1|1" the cell turns green , that's the RSI signal breaking the line. Its resistance to go up, wait for the candle to close, we can enter "Buy/Long" order.
- When the RSI line breaks below the trendline, it shows is "🡻", if it is the first candle, then at the column |ʀꜱɪ\n\════🡻| it displays as "🡻1|1|1" the cell turns red , that's the RSI signal breaking the line Support to continue down, wait for the candle to close, we can enter "Sell/Short" order
- The parameter when breaking shows 10|10|10, it means that the RSI has broken 10 candles (RSI candles), and the first 10 candles are colored green (bullish) red (bearish) then hidden. (can be changed in settings). In addition, when displaying the parameters of the cell as above, the column |✎\n\𝖙.𝖑𝖎𝖓𝖊| and |𝖙.𝖑𝖎𝖓𝖊\n\✐| will show the percentage from when the RSI break point to the current RSI (closed)
- Column |𝚍𝚒𝚟| is a divergence signal. When the price makes a new high, a new low, and the RSI signals a divergence, it will start to increase the base from the number 1. From here, the Trader will know which trading pair is starting to divergence RSI. Cell is Green bullish divergence, Cell is red bearish divergence
- Column|🆁🆂🅸| is the current RSI .{🟢} RSI above the cloud , {🔴} RSI below the cloud , {⚪️} RSI in the cloud(RSI clouds also indicate very well the support and resistance zone of RSI)
- There are 5 warning functions on this indicator
- The parameter {20:2} is the length of the RSI trendline and combines the same parameters with the "RSI - trendlines - div{vn}" indicator when analyzing
💥 Summary:
Trading methods with this indicator:
+ Trade when there is a divergence
+ Trade when the RSI approaches its trendline (it is the support and resistance line of the RSI)
+ Trade when the RSI breaks the trendline (definitively above or below)
+ Trade when there is a divergence then after a few candles, RSI breaks through its trendline, giving a golden signal.
1 . image
Later(sau đó)
2 . image
Later(sau đó)
Note: The indicator can create up to 40 trading pairs, so traders should choose a super nice signal to enter orders.
-----------------------------------------------------Vietnamese-------------------------------------------------------
👉Xin chào các nhà giao dịch VietNam.
xin giới thiệu Bot "RSI-Tất cả trong một " bao gồm các chức năng:
+ Tự động quét phân kì RSI
+ Tự động quét đường xu hướng RSI
+ Tạo cảnh báo khi có tín hiệu vàng(RSI tạo phân kì và sau đó phá vỡ đường xu hướng của nó báo hiệu đảo chiều xu hướng)
Diễn giải:
- Trong quá trình giao dịch khi dùng chỉ báo "RSI - trendlines - div " trong thư viện của tôi trên trang TW . Tôi có ý tưởng tạo chỉ báo Bot về " Tự động quét phân kì và đường xu hướng của RSI ". Vì đó là những điểm mạnh hàng đầu khi nhà giao dịch sử dụng chỉ báo RSI để dự báo đảo chiều xu hướng.
- Trên mỗi biểu đồ của cặp giao dịch, chỉ báo RSI vẽ cặp trendline là: trendline tăng và trendline giảm (gần với RSI nhất)
- Vì vậy khi thống kê trên " Bot " cũng hiển thị cột của RSI trendlines tăng và cột của RSI trendlines giảm
- Cột |════🡹\n\ʀꜱɪ| - là trendline RSI bên trên
- Cột |ʀꜱɪ\n\════🡻|- là trendline RSI bên dưới
- Khi RSI phá đường xu hướng bên trên thì nó hiển thị là "🡹", nếu là cây nến đầu tiên thì tại cột |════🡹\n\ʀꜱɪ| nó hiển thị là "🡹1|1|1" ô đổi màu xanh , đó là tín hiệu RSI phá vỡ đường kháng cự của nó để đi lên , chờ nến đóng cửa ta có thể vào lệnh "Buy/Long"
- Khi đường RSI phá đường xu hướng bên dưới thì nó hiển thị là "🡻", nếu là cây nến đầu tiên thì tại cột |ʀꜱɪ\n\════🡻| nó hiển thị là "🡻1|1|1" ô đổi màu đỏ , đó là tín hiệu RSI phá vỡ đường hỗ trợ để xuống tiếp , chờ nến đóng cửa ta có thể vào lệnh "Sell/Short "
-Khi RSI tiến gần đến 1 đường trendline bất kì của nó mà tỉ lệ còn 10% thì:
+ tại cột |✎\n\𝖙.𝖑𝖎𝖓𝖊| chữ số tô màu đỏ (trend giảm)
+ tại cột |𝖙.𝖑𝖎𝖓𝖊\n\✐| chữ số tô màu xanh (trend tăng)
Là giá trị của đường trendline RSI để trader chú ý hơn khi đó có thể là điểm vào lệnh và thoát lệnh theo tính chất kháng cự hỗ trợ của RSI trendlines.
-Thông số khi phá vỡ hiển thị 10|10|10 thì hiểu là RSI đã phá vỡ 10 nến(nến RSI), và 10 nến đầu tiên được tô màu xanh(tăng giá) màu đỏ (giảm giá) sau đó được ẩn(có thể thay đổi trong cài đặt). Ngoài ra khi hiện thông số của ô như trên thì cột |✎\n\𝖙.𝖑𝖎𝖓𝖊| và |𝖙.𝖑𝖎𝖓𝖊\n\✐| sẽ hiển thị được số phần trăm tính từ khi điểm RSI phá vỡ đến RSI hiện tại(đóng cửa)
Cột |𝚍𝚒𝚟| là tín hiệu phân kì . Khi giá tạo đỉnh mới, đáy mới mà RSI báo tín hiệu là phân kì thì nó sẽ bắt đầu cơ số đếm từ số 1 tăng dần lên.Từ đây Trader sẽ biết được cặp giao dịch nào đang bắt đầu phân kì RSI. Ô màu xanh là phân kì tăng, ô màu đỏ là phân kì giảm
- Cột| 🆁🆂🅸 | là RSI hiện tại .{🟢} RSI trên mây , {🔴} RSI dưới mây , {⚪️} RSI trong mây(Mây của RSI cũng cho biết rất tốt vùng hỗ trợ, kháng cự của RSI)
- Có 5 chức năng cảnh báo trên chỉ báo này
- Thông số {20:2} là độ dài đường trendline RSI và kết hợp cùng thông số với chỉ báo "RSI - trendlines - div{vn}" khi phân tích
💥 Tổng kết:
Các phương pháp giao dịch với chỉ báo này:
+ Giao dịch khi có phân kì.
+ Giao dịch khi RSI tiếp cận đến đường xu hướng của nó(nó là đường hỗ trợ, kháng cự của RSI).
+ Giao dịch khi RSI phá vỡ đường xu hướng(trên hoặc dưới cách dứt khoát).
+ Giao dịch khi có phân kì sau đó qua vài nến, RSI phá vỡ qua đường xu hướng của nó báo hiệu tín hiệu vàng.
Lưu ý : Chỉ báo tạo được tối đa 40 cặp giao dịch, nên AE trader Việt cứ chọn tín hiệu siêu đẹp để vào lệnh nhé.
RSI Dynamic Bands█ OVERVIEW
The "RSI Dynamic Bands" indicator is a variant of the Relative Strength Index (RSI) oscillator that brings its signals directly onto the price chart. It displays dynamic bands around the price, adjusted based on RSI levels, enabling easy identification of potential overbought or oversold conditions. The indicator also integrates a multi-timeframe RSI table, facilitating the analysis of trend strength across different timeframes.
█ CONCEPTS
The "RSI Dynamic Bands" indicator is designed to simplify the interpretation of price levels in the context of support and resistance zones, which can be correlated with other technical indicators and RSI values. Since the price itself does not display RSI values, a table showing RSI for four selected timeframes has been added, allowing traders to quickly assess trend strength across different time intervals. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Band Calculation
The bands are calculated based on the current closing price and RSI values, incorporating dynamic scaling to better adapt to market conditions. The formulas for the bands are as follows:
• Upper Band: close + (rsiUpper - rsi) * scaleFactor, where rsiUpper is the upper RSI level (default: 70), and scaleFactor accounts for market volatility.
• Lower Band: close + (rsiLower - rsi) * scaleFactor, where rsiLower is the lower RSI level (default: 30).
• Midline: The arithmetic average of the upper and lower bands: (upperBand + lowerBand) / 2.
Why Scaling? Without scaling, the bands would be chaotic and jagged, making them difficult to interpret. Scaling smooths the bands, making them wider during periods of high volatility and narrower during consolidation, better reflecting potential support and resistance levels.
Indicator Features
• Dynamic Price Bands: The bands adapt to market conditions, facilitating the identification of key price levels.
• Multi-Timeframe RSI Table: Displays RSI values for four selected timeframes (default: 15m, 1h, 4h, Daily), enabling comparison of trend strength across different perspectives.
• Style Customization: Users can adjust band colors, line thickness, and toggle the visibility of bands, fills, and the table.
How to Set Up the Indicator
1 — Add the "RSI Dynamic Bands" indicator to your TradingView chart.
2 — Configure parameters in the settings, such as RSI length, upper/lower levels, and scaling multiplier, to match your trading style.
3 — Enable or disable the display of bands, fills, or the RSI table based on your needs.
4 — Adjust band and table colors in the input section and line thickness in the "Style" section to better align the indicator with your chart.
█ OTHER SECTIONS
FEATURES
• RSI Length: The period for calculating RSI (default: 14).
• RSI Levels: Thresholds for overbought (default: 70) and oversold (default: 30).
• Scaling Multiplier: Adjusts bands based on market volatility (default: 0.15).
• Table Timeframes: Select four timeframes for the RSI table (default: 15m, 1h, 4h, Daily).
• Style Options: Customize band colors, fills, table, and line thickness.
HOW TO USE
Add the indicator to your chart, configure the parameters, and observe price interactions with the bands to identify potential entry and exit points. The RSI table allows you to compare RSI values across different timeframes, aiding in trading decisions. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Trading Strategies:
• Scalping: Use lower timeframes (e.g., 5m, 15m) in the RSI table to quickly identify short-term lows and highs. Wait for the price to approach the lower band in the RSI oversold zone, with RSI on lower timeframes starting to rise, and other tools, such as Fibonacci levels (e.g., 38.2%) or pivot points, confirming support.
• Medium-Term Trading: Focus on 1h and 4h timeframes. Look for confirmation of a low on a lower timeframe (e.g., 1h), where RSI indicates oversold conditions or starts rising, then check if RSI on a higher timeframe (e.g., 4h) confirms the trend. Confirmation from other tools, such as a Fibonacci level (e.g., 50%) or pivot point near the bands, strengthens the signal.
• Long-Term Trading: Use Daily and higher timeframes (e.g., Weekly). Wait for all relevant timeframes to confirm a low (e.g., RSI near oversold and price at the lower band), with lower timeframes (e.g., 4h) showing rising RSI. Other tools, such as Fibonacci levels (e.g., 61.8%) or pivot points near the bands, can further confirm a trend reversal signal.
RSI WMA VWMA Divergence Indicator// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Kenndjk
//@version=6
indicator(title="RSI WMA VWMA Divergence Indicator", shorttitle="Kenndjk", format=format.price, precision=2)
oscType = input.string("RSI", "Oscillator Type", options = , group="General Settings")
// RSI Settings
rsiGroup = "RSI Settings"
rsiLengthInput = input.int(14, minval=1, title="RSI Length", group=rsiGroup)
rsiSourceInput = input.source(close, "Source", group=rsiGroup)
// WMA VWMA
wmaLength = input.int(9, "WMA Length", minval=1, group="WMA Settings")
vwmaLength = input.int(3, "VWMA Length", minval=1, group="WMA Settings")
wma = ta.wma(close, wmaLength)
vwma = ta.vwma(close, vwmaLength)
useVWMA = input.bool(true, "Use VWMA for Divergence (when WMA + VWMA mode)", group="WMA Settings")
// Oscillator selection
rsi = ta.rsi(rsiSourceInput, rsiLengthInput) // Calculate RSI always, but use conditionally
osc = oscType == "RSI" ? rsi : useVWMA ? vwma : wma
// RSI plots (conditional)
isRSI = oscType == "RSI"
rsiPlot = plot(isRSI ? rsi : na, "RSI", color=isRSI ? #7E57C2 : na)
rsiUpperBand = hline(isRSI ? 70 : na, "RSI Upper Band", color=isRSI ? #787B86 : na)
midline = hline(isRSI ? 50 : na, "RSI Middle Band", color=isRSI ? color.new(#787B86, 50) : na)
rsiLowerBand = hline(isRSI ? 30 : na, "RSI Lower Band", color=isRSI ? #787B86 : na)
fill(rsiUpperBand, rsiLowerBand, color=isRSI ? color.rgb(126, 87, 194, 90) : na, title="RSI Background Fill")
midLinePlot = plot(isRSI ? 50 : na, color = na, editable = false, display = display.none)
fill(rsiPlot, midLinePlot, 100, 70, top_color = isRSI ? color.new(color.green, 0) : na, bottom_color = isRSI ? color.new(color.green, 100) : na, title = "Overbought Gradient Fill")
fill(rsiPlot, midLinePlot, 30, 0, top_color = isRSI ? color.new(color.red, 100) : na, bottom_color = isRSI ? color.new(color.red, 0) : na, title = "Oversold Gradient Fill")
// WMA VWMA plots
wmaColor = oscType != "RSI" ? (useVWMA ? color.new(color.blue, 70) : color.blue) : na
wmaWidth = useVWMA ? 1 : 2
vwmaColor = oscType != "RSI" ? (useVWMA ? color.orange : color.new(color.orange, 70)) : na
vwmaWidth = useVWMA ? 2 : 1
plot(oscType != "RSI" ? wma : na, "WMA", color=wmaColor, linewidth=wmaWidth)
plot(oscType != "RSI" ? vwma : na, "VWMA", color=vwmaColor, linewidth=vwmaWidth)
// Smoothing MA inputs (only for RSI)
GRP = "Smoothing (RSI only)"
TT_BB = "Only applies when 'Show Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maLengthSMA = input.int(14, "SMA Length", minval=1, group=GRP, display=display.data_window)
maLengthEMA = input.int(14, "EMA Length", minval=1, group=GRP, display=display.data_window)
maLengthRMA = input.int(14, "SMMA (RMA) Length", minval=1, group=GRP, display=display.data_window)
maLengthWMA = input.int(14, "WMA Length", minval=1, group=GRP, display=display.data_window)
maLengthVWMA = input.int(14, "VWMA Length", minval=1, group=GRP, display=display.data_window)
bbMultInput = input.float(2.0, "BB StdDev", minval=0.001, maxval=50, step=0.5, tooltip=TT_BB, group=GRP, display=display.data_window)
showSMA = input.bool(false, "Show SMA", group=GRP)
showEMA = input.bool(false, "Show EMA", group=GRP)
showRMA = input.bool(false, "Show SMMA (RMA)", group=GRP)
showWMAsmooth = input.bool(false, "Show WMA", group=GRP)
showVWMAsmooth = input.bool(false, "Show VWMA", group=GRP)
showBB = input.bool(false, "Show SMA + Bollinger Bands", group=GRP, tooltip=TT_BB)
// Smoothing MA Calculations
sma_val = (showSMA or showBB) and isRSI ? ta.sma(rsi, maLengthSMA) : na
ema_val = showEMA and isRSI ? ta.ema(rsi, maLengthEMA) : na
rma_val = showRMA and isRSI ? ta.rma(rsi, maLengthRMA) : na
wma_val = showWMAsmooth and isRSI ? ta.wma(rsi, maLengthWMA) : na
vwma_val = showVWMAsmooth and isRSI ? ta.vwma(rsi, maLengthVWMA) : na
smoothingStDev = showBB and isRSI ? ta.stdev(rsi, maLengthSMA) * bbMultInput : na
// Smoothing MA plots
plot(sma_val, "RSI-based SMA", color=(showSMA or showBB) ? color.yellow : na, display=(showSMA or showBB) ? display.all : display.none, editable=(showSMA or showBB))
plot(ema_val, "RSI-based EMA", color=showEMA ? color.purple : na, display=showEMA ? display.all : display.none, editable=showEMA)
plot(rma_val, "RSI-based RMA", color=showRMA ? color.red : na, display=showRMA ? display.all : display.none, editable=showRMA)
plot(wma_val, "RSI-based WMA", color=showWMAsmooth ? color.blue : na, display=showWMAsmooth ? display.all : display.none, editable=showWMAsmooth)
plot(vwma_val, "RSI-based VWMA", color=showVWMAsmooth ? color.orange : na, display=showVWMAsmooth ? display.all : display.none, editable=showVWMAsmooth)
bbUpperBand = plot(showBB ? sma_val + smoothingStDev : na, title="Upper Bollinger Band", color=showBB ? color.green : na, display=showBB ? display.all : display.none, editable=showBB)
bbLowerBand = plot(showBB ? sma_val - smoothingStDev : na, title="Lower Bollinger Band", color=showBB ? color.green : na, display=showBB ? display.all : display.none, editable=showBB)
fill(bbUpperBand, bbLowerBand, color=showBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display=showBB ? display.all : display.none, editable=showBB)
// Divergence Settings
divGroup = "Divergence Settings"
calculateDivergence = input.bool(true, title="Calculate Divergence", group=divGroup, tooltip = "Calculating divergences is needed in order for divergence alerts to fire.")
lookbackLeft = input.int(5, "Pivot Lookback Left", minval=1, group=divGroup)
lookbackRight = input.int(5, "Pivot Lookback Right", minval=1, group=divGroup)
rangeLower = input.int(5, "Min Range for Divergence", minval=0, group=divGroup)
rangeUpper = input.int(60, "Max Range for Divergence", minval=1, group=divGroup)
showHidden = input.bool(true, "Show Hidden Divergences", group=divGroup)
bearColor = color.red
bullColor = color.green
textColor = color.white
noneColor = color.new(color.white, 100)
_inRange(cond) =>
bars = ta.barssince(cond)
rangeLower <= bars and bars <= rangeUpper
bool plFound = false
bool phFound = false
bool bullCond = false
bool bearCond = false
bool hiddenBullCond = false
bool hiddenBearCond = false
float oscLBR = na
float lowLBR = na
float highLBR = na
float prevPlOsc = na
float prevPlLow = na
float prevPhOsc = na
float prevPhHigh = na
if calculateDivergence
plFound := not na(ta.pivotlow(osc, lookbackLeft, lookbackRight))
phFound := not na(ta.pivothigh(osc, lookbackLeft, lookbackRight))
oscLBR := osc
lowLBR := low
highLBR := high
prevPlOsc := ta.valuewhen(plFound, oscLBR, 1)
prevPlLow := ta.valuewhen(plFound, lowLBR, 1)
prevPhOsc := ta.valuewhen(phFound, oscLBR, 1)
prevPhHigh := ta.valuewhen(phFound, highLBR, 1)
// Regular Bullish
oscHL = oscLBR > prevPlOsc and _inRange(plFound )
priceLL = lowLBR < prevPlLow
bullCond := priceLL and oscHL and plFound
// Regular Bearish
oscLL = oscLBR < prevPhOsc and _inRange(phFound )
priceHH = highLBR > prevPhHigh
bearCond := priceHH and oscLL and phFound
// Hidden Bullish
oscLL_hidden = oscLBR < prevPlOsc and _inRange(plFound )
priceHL = lowLBR > prevPlLow
hiddenBullCond := priceHL and oscLL_hidden and plFound and showHidden
// Hidden Bearish
oscHH_hidden = oscLBR > prevPhOsc and _inRange(phFound )
priceLH = highLBR < prevPhHigh
hiddenBearCond := priceLH and oscHH_hidden and phFound and showHidden
// Plot divergences (lines and labels on pane)
if bullCond
leftBar = ta.valuewhen(plFound, bar_index , 1)
line.new(leftBar, prevPlOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bullColor, width=2)
label.new(bar_index , oscLBR, "R Bull", style=label.style_label_up, color=noneColor, textcolor=textColor)
if bearCond
leftBar = ta.valuewhen(phFound, bar_index , 1)
line.new(leftBar, prevPhOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bearColor, width=2)
label.new(bar_index , oscLBR, "R Bear", style=label.style_label_down, color=noneColor, textcolor=textColor)
if hiddenBullCond
leftBar = ta.valuewhen(plFound, bar_index , 1)
line.new(leftBar, prevPlOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bullColor, width=2, style=line.style_dashed)
label.new(bar_index , oscLBR, "H Bull", style=label.style_label_up, color=noneColor, textcolor=textColor)
if hiddenBearCond
leftBar = ta.valuewhen(phFound, bar_index , 1)
line.new(leftBar, prevPhOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bearColor, width=2, style=line.style_dashed)
label.new(bar_index , oscLBR, "H Bear", style=label.style_label_down, color=noneColor, textcolor=textColor)
// Alert conditions
alertcondition(bullCond, title="Regular Bullish Divergence", message="Found a new Regular Bullish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(bearCond, title="Regular Bearish Divergence", message="Found a new Regular Bearish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(hiddenBullCond, title="Hidden Bullish Divergence", message="Found a new Hidden Bullish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(hiddenBearCond, title="Hidden Bearish Divergence", message="Found a new Hidden Bearish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
RSI Shifting Band Oscillator | QuantMAC📊 RSI Shifting Band Oscillator | QuantMAC
🎯 Overview
The RSI Shifting Band Oscillator represents a breakthrough in adaptive technical analysis, combining the innovative dual-stage RSI processing with dynamic volatility bands to create an oscillator that automatically adjusts to changing market momentum conditions. This cutting-edge indicator goes beyond traditional static approaches by using smoothed RSI to dynamically shift band width based on momentum transitions, providing superior signal accuracy across different market regimes.
🔧 Key Features
Revolutionary Dual RSI Technology: Proprietary two-stage RSI calculation with exponential smoothing that measures momentum transitions in real-time
Dynamic Adaptive Bands: Self-adjusting volatility bands that expand and contract based on RSI distance from equilibrium
Dual Trading Modes: Flexible Long/Short or Long/Cash strategies for different trading preferences
Advanced Performance Analytics: Comprehensive metrics including Sharpe, Sortino, and Omega ratios
Smart Visual System: Dynamic color coding with 9 professional color schemes
Precision Backtesting: Date range filtering with detailed historical performance analysis
Real-time Signal Generation: Clear entry/exit signals with customizable threshold sensitivity
Position Sizing Intelligence: Half Kelly criterion for optimal risk management
📈 How The Dual RSI Technology Works
The Dual RSI system is the heart of this indicator's innovation. Unlike traditional RSI implementations, this approach analyzes the smoothed momentum transitions between different RSI states, providing early warning signals for momentum regime changes.
RSI Calculation Process:
Calculate traditional RSI using specified length and price source
Apply exponential moving average smoothing to reduce noise
Measure RSI distance from neutral 50 level to determine momentum strength
Use RSI deviation to dynamically adjust standard deviation multipliers
Create adaptive bands that respond to momentum conditions
Generate normalized oscillator values for clear signal interpretation
The genius of this dual RSI approach lies in its ability to detect when markets are transitioning between momentum and consolidation periods before traditional indicators catch up. This provides traders with a significant edge in timing entries and exits.
⚙️ Comprehensive Parameter Control
RSI Settings:
RSI Length: Controls the lookback period for momentum analysis (default: 14)
RSI Smoothing: Reduces noise in RSI calculations using EMA (default: 20)
Source: Price input selection (close, open, high, low, etc.)
Oscillator Settings:
Base Length: Foundation moving average for band calculations (default: 40)
Standard Deviation Length: Period for volatility measurement (default: 26)
SD Multiplier: Base band width adjustment (default: 2.7)
Oscillator Multiplier: Scaling factor for oscillator values (default: 100)
Signal Thresholds:
Long Threshold: Bullish signal trigger level (default: 90)
Short Threshold: Bearish signal trigger level (default: 56)
🎨 Advanced Visual System
Main Chart Elements:
Dynamic Shifting Bands: Upper and lower bands that automatically adjust width based on RSI momentum
Adaptive Fill Zone: Color-coded area between bands showing current market state
Basis Line: Moving average foundation displayed as subtle reference points
Smart Bar Coloring: Candles change color based on oscillator state for instant visual feedback
Oscillator Pane:
Normalized RSI Oscillator: Main signal line centered around zero with dynamic coloring
Threshold Lines: Horizontal reference lines for entry/exit levels
Zero Line: Central reference for oscillator neutrality
Color State Indication: Line colors change based on bullish/bearish conditions
📊 Professional Performance Metrics
The built-in analytics suite provides institutional-grade performance measurement:
Net Profit %: Total strategy return percentage
Maximum Drawdown %: Worst peak-to-trough decline
Win Rate %: Percentage of profitable trades
Profit Factor: Ratio of gross profits to gross losses
Sharpe Ratio: Risk-adjusted return measurement
Sortino Ratio: Downside-focused risk adjustment
Omega Ratio: Probability-weighted performance ratio
Half Kelly %: Optimal position sizing recommendation
Total Trades: Complete transaction count
🎯 Strategic Trading Applications
Long/Short Mode: ⚡
Maximizes profit potential by capturing both upward and downward price movements. The dual RSI technology helps identify when momentum is strengthening or weakening, allowing for optimal position switches between long and short.
Long/Cash Mode: 🛡️
Conservative approach ideal for retirement accounts or risk-averse traders. The indicator's adaptive nature helps identify the best times to be invested versus sitting in cash, protecting capital during adverse market conditions.
🚀 Unique Advantages
Traditional Indicators vs RSI Shifting Bands:
Static vs Dynamic: While most indicators use fixed parameters, RSI bands adapt in real-time
Lagging vs Leading: Dual RSI detects momentum transitions before they fully manifest
One-Size vs Adaptive: The same settings work across different market conditions
Simple vs Intelligent: Advanced momentum analysis provides superior market insight
💡 Professional Setup Guide
For Day Trading (Short-term):
RSI Length: 10-12
RSI Smoothing: 15-18
Base Length: 25-30
Thresholds: Long 85, Short 60
For Swing Trading (Medium-term):
RSI Length: 14-16 (default range)
RSI Smoothing: 20-25
Base Length: 40-50
Thresholds: Long 90, Short 56 (defaults)
For Position Trading (Long-term):
RSI Length: 18-21
RSI Smoothing: 25-30
Base Length: 60-80
Thresholds: Long 92, Short 50
🧠 Advanced Trading Techniques
RSI Divergence Analysis:
Watch for divergences between price action and smoothed RSI readings. When price makes new highs/lows but RSI doesn't confirm, it often signals upcoming reversals.
Band Width Interpretation:
Expanding Bands: Increasing momentum, expect larger price moves
Contracting Bands: Decreasing momentum, prepare for potential breakouts
Band Touches: Price touching outer bands often signals reversal opportunities
Multi-Timeframe Analysis:
Use RSI oscillator on higher timeframes for trend direction and lower timeframes for precise entry timing.
⚠️ Important Risk Disclaimers
Past performance is not indicative of future results. This indicator represents advanced technical analysis but should never be used as the sole basis for trading decisions.
Critical Risk Factors:
Market Conditions: No indicator performs equally well in all market environments
Backtesting Limitations: Historical performance may not reflect future market behavior
Momentum Risk: Adaptive indicators can be sensitive to extreme momentum conditions
Parameter Sensitivity: Different settings may produce significantly different results
Capital Risk: Always use appropriate position sizing and stop-loss protection
📚 Educational Benefits
This indicator provides exceptional learning opportunities for understanding:
Advanced RSI analysis and momentum measurement techniques
Adaptive indicator design and implementation
The relationship between momentum transitions and price movements
Professional risk management using Kelly Criterion principles
Modern oscillator interpretation and signal generation
🔍 Market Applications
The RSI Shifting Band Oscillator works across various markets:
Forex: Excellent for currency pair momentum analysis
Stocks: Individual equity and index trading
Commodities: Adaptive to commodity market momentum cycles
Cryptocurrencies: Handles extreme momentum variations effectively
Futures: Professional derivatives trading applications
🔧 Technical Innovation
The RSI Shifting Band Oscillator represents years of research into adaptive technical analysis. The proprietary dual RSI calculation method has been optimized for:
Computational Efficiency: Fast calculation even on high-frequency data
Noise Reduction: Advanced smoothing without excessive lag
Market Adaptability: Automatic adjustment to changing conditions
Signal Clarity: Clear, actionable trading signals
🔔 Updates and Evolution
The RSI Shifting Band Oscillator | QuantMAC continues to evolve with regular updates incorporating the latest research in adaptive technical analysis. The code is thoroughly documented for transparency and educational purposes.
Trading Notice: Financial markets involve substantial risk of loss. The RSI Shifting Band Oscillator is a sophisticated technical analysis tool designed to assist in trading decisions but cannot guarantee profitable outcomes.
---
Master The Markets With Adaptive Intelligence! 🎯📈
RSI Candlestick Oscillator [LuxAlgo]The RSI Candlestick Oscillator displays a traditional Relative Strength Index (RSI) as candlesticks. This indicator references OHLC data to locate each candlestick point relative to the current RSI Value, leading to a more accurate representation of the Open, High, Low, and Close price of each candlestick in the context of RSI.
In addition to the candlestick display, Divergences are detected from the RSI candlestick highs and lows and can be displayed over price on the chart.
🔶 USAGE
Translating candlesticks into the RSI oscillator is not a new concept and has been attempted many times before. This indicator stands out because of the specific method used to determine the candlestick OHLC values. When compared to other RSI Candlestick indicators, you will find that this indicator clearly and definitively correlates better to the on-chart price action.
Traditionally, the RSI indicator is simply one running value based on (typically) the close price of the chart. By introducing high, low, and open values into the oscillator, we can better gauge the specific price action throughout the intrabar movements.
Interactions with the RSI levels can now take multiple forms, whether it be a full-bodied breakthrough or simply a wick test. Both can provide a new analysis of price action alongside RSI.
An example of wick interactions and full-bodied interactions can be seen below.
As a result of the candlestick display, divergences become simpler to spot. Since the candlesticks on the RSI closely resemble the candlesticks on the chart, when looking for divergence between the chart and RSI, it is more obvious when the RSI and price are diverging.
The divergences in this indicator not only show on the RSI oscillator, but also overlay on the price chart for clearer understanding.
🔹 Filtering Divergence
With the candlesticks generating high and low RSI values, we can better sense divergences from price, since these points are generally going to be more dramatic than the (close) RSI value.
This indicator displays each type of divergence:
Bullish Divergence
Bearish Divergence
Hidden Bullish Divergence
Hidden Bearish Divergence
From these, we get many less-than-useful indications, since every single divergence from price is not necessarily of great importance.
The Divergence Filter disregards any divergence detected that does not extend outside the RSI upper or lower values.
This does not replace good judgment, but this filter can be helpful in focusing attention towards the extremes of RSI for potential reversal spotting from divergence.
🔶 DETAILS
In order to get the desired results for a display that resembles price action while following RSI, we must scale. The scaling is the most important part of this indicator.
To summarize the process:
Identify a range on Price and RSI
Consider them as equal to create a scaling factor
Use the scaling factor to locate RSI's "Price equivalent" Upper, Lower, & Mid on the Chart
Use those prices (specifically the RSI Mid) to check how far each OHLC value lies from it
Use those differences to translate the price back to the RSI Oscillator, pinning the OHLC values at their relative location to our anchor (RSI Mid)
🔹 RSI Channel
To better understand, and for your convenience, the indicator includes the option to display the RSI Channel on the chart. This channel helps to visualize where the scaled RSI values are relative to price.
If you analyze the RSI channel, you are likely to notice that the price movement throughout the channel matches the same movement witnessed in the RSI Oscillator below. This makes sense since they are the exact same thing displayed on different scales.
🔹 Scaling the Open
While the scaling method used is important, and provides a very close view of the real price bar's relative locations on the RSI oscillator… It is designed for a single purpose.
The scaling does NOT make the price candles display perfectly on the RSI oscillator.
The largest place where this is noticeable is with the opening of each candle.
For this reason, we have included a setting that modifies the opening of each RSI candle to be more accurate to the chart's price candles.
This setting positions the current bar's opening RSI candlestick value accurately relative to the price's open location to the previous closing price. As seen below.
🔶 SETTINGS
🔹 RSI Candles
RSI Length: Sets the Length for the RSI Oscillator.
Overbought/Oversold Levels: Sets the Overbought and Oversold levels for the RSI Oscillator.
Scale Open for Chart Accuracy: As described above, scales the open of each candlestick bar to more accurately portray the chart candlesticks.
🔹 Divergence
Show on Chart: Choose to display divergence line on the chart as well as on the Oscillator.
Divergence Length: Sets the pivot width for divergence detection. Normal Fractal Pivot Detection is used.
Divergence Style: Change color and line style for Regular and Hidden divergences, as well as toggle their display.
Divergence Filter: As described above, toggle on or off divergence filtering.
🔹 RSI Channel
Toggle: Display RSI Channel on Chart.
Color: Change RSI Channel Color
RSI Plus +
Description:
RSI Plus + is an enhanced Relative Strength Index (RSI) indicator that provides a multi-timeframe view of RSI values across various timeframes. It highlights overbought and oversold conditions for a more comprehensive analysis, with additional focus on the Relative RSI (RRSI), which compares the current RSI to the average RSI. This provides insight into relative market strength or weakness, giving traders a clear view of how the current market conditions compare to historical averages. The indicator is ideal for spotting potential market reversals, pullbacks, or trend continuations.
Overview
RSI Plus + offers a multi-timeframe RSI display across the following timeframes:
- 2m (2 minutes)
- 5m (5 minutes)
- 15m(15 minutes)
- 30m (30 minutes)
- 1h (1 hour)
- 4h (4 hours)
- 12h (12 hours)
- Daily (1 Day)
- Weekly (1 Week)
- Monthly (1 Month)
The indicator displays a table with RSI, Average RSI, and Relative RSI (RRSI) values for each selected timeframe. The table is color-coded to indicate overbought (RSI > 70) or oversold (RSI < 30) conditions. Additionally, visual triangle alerts are plotted on the chart to signal potential trade opportunities when all selected timeframes show either overbought or oversold conditions. The RRSI provides insight into the current market’s relative strength or weakness by comparing the current RSI to its historical average.
How to Use
1. Setting Up the Indicator:
- Add RSI Plus + to your TradingView chart.
- Enable or disable timeframes using the checkboxes (e.g., 2m, 5m, 15m, Daily, Weekly, etc.) to customise the timeframes you want to analyse.
2. Understanding the Table Layout:
The indicator displays a table in the top-right corner of the chart with the following columns:
- Row 0 Timeframes (2m, 5m, 15m, 30m, 1h, 4h, 12h, Daily, Weekly, Monthly).
- Row 1 RRSI (Relative RSI: the current RSI compared to the average RSI).
- Row 2 Average RSI (The average RSI for each timeframe).
- Row 3 Current RSI (The current RSI value for each timeframe).
The RRSI (Relative RSI) row compares the current RSI with the average RSI, offering insight into the current relative strength or weakness. This allows traders to gauge whether the market is stronger or weaker compared to its historical performance within the selected timeframe.
3. Interpreting the Relative RSI (RRSI)
- RRSI > 1: If the Relative RSI (RRSI)is greater than 1, it means the current RSI is stronger than its historical average, indicating stronger market strength. This could be a sign of momentum in the direction of the trend.
- RRSI < 1: If the RRSI is below 1, it means the current RSI is weaker than its historical average, signalling relative market weakness. This may indicate the possibility of a reversal or pullback before the trend resumes.
- RRSI ~ 1: When the RRSI is around 1, it indicates that the current RSI is in line with its historical average, suggesting neutral market conditions.
4. Using the Visual Cues (Triangle Shapes):
- Green Triangle: Plotted above the price bars when all selected timeframes show RSI values above 70 (overbought), signalling potential exhaustion and a short signal or a pullback before continuation.
- Red Triangle: Plotted below the price bars when all selected timeframes show RSI values below 30*(oversold), signalling potential market reversal and long signal or a pullback before continuation*
These triangle shapes are clear visual alerts for traders to act upon when all timeframes signal extreme conditions.
5. Overbought/Oversold Conditions as Signals:
Overbought Conditions: If all selected timeframes show RSI values above 70 (green triangles appear), it suggests that the market may be overbought, signalling a potential short trade opportunity or a pullback before continuation.
Oversold Conditions: If all selected timeframes show RSI values below 30 (red triangles appear), it suggests that the market may be oversold, signalling a potential long trade or short term bounce opportunity or a pullback before continuation.
6. Set alerts for when all selected timeframes turn overbought (green triangles) or all turn oversold (red triangles). This alert condition will notify you when all selected timeframes signal extreme market conditions, which could indicate a strong reversal or continuation in price.
Notes:
RRSI provides an additional layer of analysis by showing the current relative strength or weakness of the market. A higher RRSI indicates strength relative to historical performance, while a lower RRSI signals weakness.
RSI Plus + is best used alongside other technical tools to confirm trade setups.
RRSI can help traders determine whether the market is likely to continue its trend or if a correction or reversal is imminent.
Customisable Timeframes: The RSI Plus + indicator is fully customisable, allowing you to select RSI length (RSI Period), which timeframes to analyse, from as short as 2 minutes up to monthly intervals, a personally chosen selection This gives traders the flexibility to tailor the indicator to their preferred trading style and time horizon.
RSI and CMF V 1.0
Introduction: RSI and CMF
The Relative Strength Index (RSI) and Chaikin Money Flow (CMF) are two powerful tools for analyzing market behavior. Each serves a unique purpose and provides insights into different aspects of price action.
The RSI measures the speed and magnitude of price movements. By comparing recent gains to losses over a chosen period, it identifies overbought and oversold conditions in the market. RSI focuses solely on price and offers traders a quick glance at whether an asset is trending too high or too low relative to its recent performance.
On the other hand, the CMF evaluates market behavior by integrating both price and volume. It measures money flow to determine whether an asset is being accumulated (bullish) or distributed (bearish). Positive CMF values indicate buying pressure, while negative values signal selling pressure, making it an essential tool for volume-based analysis.
Our Innovation
Traditionally, indicators like the RSI and CMF are analyzed in separate panels, limiting their connection to the price chart itself. We’ve developed an innovative solution that combines the power of these two indicators, enabling traders to simultaneously measure both price movements and volume flow in a unified visualization. By mapping the RSI and CMF directly onto the price chart, our indicator provides a seamless way to observe and analyze how price momentum and money flow interact with the actual price action.
This integration of volume, price, and momentum into a single chart offers traders a comprehensive tool for deeper market insights and faster decision-making.
__________________________________________________________________________
Simple Settings Panel with Tooltips
Our indicator comes with an intuitive and user-friendly settings panel, designed for ease of use and full customization. Each input is accompanied by a tooltip to guide users through the settings and ensure clear understanding of their purpose.
Settings Overview
1. Enable RSI over Price:
Tooltip: "Toggle this option to enable or disable the RSI plotted on the price chart."
This setting allows users to control whether the RSI is displayed directly over the price chart.
2. RSI Length:
Default Value: 14
Tooltip: "Set the period for RSI calculation. Typical value is 14."
Adjusts the time period used for RSI calculations, affecting its sensitivity to price changes.
3. RSI Source:
Default Value: Close
Tooltip: "Choose the data source for RSI calculation, usually the closing price."
Allows users to specify which price data (e.g., close, open, high, low) is used in the RSI calculation.
4. Enable CMF over Price:
Tooltip: "Toggle this option to enable or disable the CMF mapped onto the price chart."
Controls the visibility of the CMF line on the price chart.
5. CMF Length:
Default Value: 20
Tooltip: "Set the period for CMF calculation. Typical value is 20."
Adjusts the time period used to compute the CMF, determining the volume-weighted money flow sensitivity.
Description of RSI and CMF Settings
RSI Settings:
The RSI Length determines how many periods are included in the RSI calculation. Shorter lengths make the RSI more reactive to price changes, while longer lengths smooth out fluctuations. The RSI Source provides flexibility in selecting the price input for calculation, which is typically the closing price by default.
CMF Settings:
The CMF Length defines how many periods are used to calculate the Chaikin Money Flow, enabling users to focus on short-term or long-term trends in money flow. Enabling the CMF over price ensures the relationship between volume and price action is visually evident on the price chart.
The Style Settings
panel allows users to customize the visual appearance of the indicator, ensuring clarity and alignment with their preferences. Users can independently adjust the line colors for RSI and CMF, with default settings of green for RSI and red for CMF, enabling a clear distinction between the two.
Additionally, the Fill between RSI and CMF option provides two customizable colors (Color 0 and Color 1) to represent the dynamic fill. This fill visually highlights the relationship between the RSI and CMF, enhancing the interpretability of their interaction on the price chart. The settings also include options to toggle precision, labels on the price scale, and values in the status line for added flexibility.
_______________________________________________________________________________
How to Analyze with RSI and CMF V 1.0
The RSI and CMF V 1.0 indicator provides an intuitive and integrated approach to analyzing market trends, combining momentum and volume dynamics directly on the price chart. Its innovative mapping of RSI and CMF makes it easy to spot key trends and reversals with unmatched clarity.
Key Insights:
1. Dynamic Relationship Between RSI and CMF:
The indicator maps RSI (momentum-based) and CMF (volume-based) values onto the price chart. This makes it easier to analyze how price momentum aligns with money flow.
The color-coded fill highlights the strength of their relationship:
- Blue Fill: RSI is stronger than CMF, indicating price momentum leads the movement.
- Red Fill: CMF dominates RSI, reflecting the strength of volume flow.
2. Spotting Trends:
Uptrends: Consistent blue fills paired with RSI and CMF rising together suggest bullish momentum backed by strong volume.
Downtrends: Red fills with declining RSI and CMF signal bearish pressure driven by selling volume.
3. Reversals and Divergences:
Divergences between price action and the mapped RSI/CMF lines can signal potential reversals.
For instance, if price is rising but RSI and CMF are both falling, it could indicate weakening bullish momentum.
Ease of Use:
Color Coding: The dynamic fills (blue and red) allow for immediate visual identification of trend strength and direction, reducing analysis time.
Overlay on Price: By plotting directly on the price chart, traders don’t need to switch between multiple panels, ensuring the context remains clear.
Customizable Settings: Inputs for length, source, and enable/disable toggles make it adaptable for all trading styles and timeframes.
In conclusion, this indicator offers a visually clear and easy-to-understand way to combine momentum and volume analysis, empowering traders with actionable insights at a glance.
RSI Divergence + Sweep + Signal + Alerts Toolkit [TrendX_]The RSI Toolkit is a powerful set of tools designed to enhance the functionality of the traditional Relative Strength Index (RSI) indicator. By integrating advanced features such as Moving Averages, Divergences, and Sweeps, it helps traders identify key market dynamics, potential reversals, and newly-approach trading stragies.
The toolkit expands on standard RSI usage by incorporating features from smart money concepts (Just try to be creative 🤣 Hope you like it), providing a deeper understanding of momentum, liquidity sweeps, and trend reversals. It is suitable for RSI traders who want to make more informed and effective trading decisions.
💎 FEATURES
RSI Moving Average
The RSI Moving Average (RSI MA) is the moving average of the RSI itself. It can be customized to use various types of moving averages, including Simple Moving Average (SMA), Exponential Moving Average (EMA), Relative Moving Average (RMA), and Volume-Weighted Moving Average (VWMA).
The RSI MA smooths out the RSI fluctuations, making it easier to identify trends and crossovers. It helps traders spot momentum shifts and potential entry/exit points by observing when the RSI crosses above or below its moving average.
RSI Divergence
RSI Divergence identifies discrepancies between price action and RSI momentum. There are two types of divergences: Regular Divergence - Indicates a potential trend reversal; Hidden Divergence - Suggests the continuation of the current trend.
Divergence is a critical signal for spotting weakness or strength in a trend. Regular divergence highlights potential trend reversals, while hidden divergence confirms trend continuation, offering traders valuable insights into market momentum and possible trade setups.
RSI Sweep
RSI Sweep detects moments when the RSI removes liquidity from a trend structure by sweeping above or below the price at key momentum level crossing. These sweeps are overlaid on the RSI chart for easier visualized.
RSI Sweeps are significant because they indicate potential turning points in the market. When RSI sweeps occur: In an uptrend - they suggest buyers' momentum has peaked, possibly leading to a reversal; In a downtrend - they indicate sellers’ momentum has peaked, also hinting at a reversal.
(Note: This feature incorporates Liquidity Sweep concepts from Smart Money Concepts into RSI analysis, helping RSI traders identify areas where liquidity has been removed, which often precedes a trend reversal)
🔎 BREAKDOWN
RSI Moving Average
How MA created: The RSI value is calculated first using the standard RSI formula. The MA is then applied to the RSI values using the trader’s chosen type of MA (SMA, EMA, RMA, or VWMA). The flexibility to choose the type of MA allows traders to adjust the smoothing effect based on their trading style.
Why use MA: RSI by itself can be noisy and difficult to interpret in volatile markets. Applying moving average would provide a smoother, more reliable view of RSI trends.
RSI Divergence
How Regular Divergence created: Regular Divergence is detected when price forms HIGHER highs while RSI forms LOWER highs (bearish divergence) or when price forms LOWER lows while RSI forms HIGHER lows (bullish divergence).
How Hidden Divergence created: Hidden Divergence is identified when price forms HIGHER lows while RSI forms LOWER lows (bullish hidden divergence) or when price forms LOWER highs while RSI forms HIGHER highs (bearish hidden divergence).
Why use Divergence: Divergences provide early warning signals of a potential trend change. Regular divergence helps traders anticipate reversals, while hidden divergence supports trend continuation, enabling traders to align their trades with market momentum.
RSI Sweep
How Sweep created: Trend Structure Shift are identified based on the RSI crossing key momentum level of 50. To track these sweeps, the indicator pinpoints moments when liquidity is removed from the Trend Structure Shift. This is a direct application of Liquidity Sweep concepts used in Smart Money theories, adapted to RSI.
Why use Sweep: RSI Sweeps are created to help traders detect potential trend reversals. By identifying areas where momentum has exhausted during a certain trend direction, the indicator highlights opportunities for traders to enter trades early in a reversal or continuation phase.
⚙️ USAGES
Divergence + Sweep
This is an example of combining Devergence & Sweep in BTCUSDT (1 hour)
Wait for a divergence (regular or hidden) to form on the RSI. After the divergence is complete, look for a sweep to occur. A potential entry might be formed at the end of the sweep.
Divergences indicate a potential trend change, but confirmation is required to ensure the setup is valid. The RSI Sweep provides that confirmation by signaling a liquidity event, increasing the likelihood of a successful trade.
Sweep + MA Cross
This is an example of combining Devergence & Sweep in BTCUSDT (1 hour)
Wait for an RSI Sweep to form then a potential entry might be formed when the RSI crosses its MA.
The RSI Sweep highlights a potential turning point in the market. The MA cross serves as additional confirmation that momentum has shifted, providing a more reliable and more potential entry signal for trend continuations.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur. Therefore, one should always exercise caution and judgment when making decisions based on past performance.
RSI based MAGot it! Here’s some information in English specifically about the **RSI-based Moving Average (RSI-based MA)** that we wrote the Pine Script code for:
### RSI-Based Moving Average (RSI-based MA)
An **RSI-based Moving Average (RSI-based MA)** is a technical analysis tool that combines the Relative Strength Index (RSI) with moving averages to provide more insight into market trends and potential reversals. This indicator can be particularly useful for identifying the beginning and end of trends, allowing traders to make more informed decisions.
### How RSI-based MA Works
The RSI-based MA indicator calculates the moving average of the RSI values rather than the asset's price itself. In the script you asked for, we implemented two RSI-based moving averages: one for a 1-minute timeframe and another for a 5-minute timeframe. This dual timeframe approach can help traders spot trends more accurately and identify shifts in momentum across different time periods.
#### Key Features of RSI-based MA:
1. **Dual Timeframe Analysis**:
- The script plots two RSI-based moving averages on the same chart:
- **1-minute RSI-based MA**: A moving average calculated based on RSI values over a 1-minute interval.
- **5-minute RSI-based MA**: A moving average calculated based on RSI values over a 5-minute interval.
- Using different timeframes helps traders see both short-term and longer-term trends simultaneously.
2. **RSI Levels**:
- The RSI-based MA plots values between 0 and 100, similar to the RSI itself. Traders can use typical RSI levels, such as 70 (overbought) and 30 (oversold), to identify potential entry and exit points.
- **Overbought condition**: When the RSI-based MA moves above 70, it indicates the asset might be overbought, suggesting a potential for price to drop.
- **Oversold condition**: When the RSI-based MA drops below 30, it signals that the asset might be oversold, indicating a potential price increase.
3. **Crossovers**:
- **Bullish signal**: If the shorter 1-minute RSI-based MA crosses above the longer 5-minute RSI-based MA, this could indicate a new upward trend beginning.
- **Bearish signal**: Conversely, if the 1-minute RSI-based MA crosses below the 5-minute RSI-based MA, it could suggest the beginning of a downward trend.
### Potential Advantages
- **Smoother Trend Identification**: By applying moving averages to RSI, you can smooth out the short-term fluctuations in RSI values, making it easier to identify the underlying trend.
- **Versatility**: The indicator can be customized for different timeframes and settings, allowing it to be tailored to various trading strategies and asset classes.
- **Enhanced Signals**: Combining RSI and moving averages helps filter out noise, providing more reliable signals for potential trend changes or continuations.
### Potential Limitations
- **Lagging Indicator**: Like most moving averages, RSI-based MAs are lagging indicators. They tend to react after price movements have already begun, which could result in delayed signals.
- **False Signals**: In ranging or highly volatile markets, RSI-based MA may give false signals, indicating a trend reversal or continuation that does not occur.
- **Should Not Be Used Alone**: It's often recommended to use RSI-based MA alongside other technical indicators (like MACD, Bollinger Bands, or moving average crossovers) to confirm signals and reduce the risk of false readings.
### Conclusion
The RSI-based MA can be a powerful tool for traders looking to enhance their understanding of market trends and momentum. By combining RSI with moving averages, traders can smooth out RSI readings and gain a clearer view of the market’s direction. However, as with any indicator, it should be used in conjunction with other tools and strategies to maximize its effectiveness and reduce risk.
RSI Multiple TimeFrame, Version 1.0RSI Multiple TimeFrame, Version 1.0
Overview
The RSI Multiple TimeFrame script is designed to enhance trading decisions by providing a comprehensive view of the Relative Strength Index (RSI) across multiple timeframes. This tool helps traders identify overbought and oversold conditions more accurately by analyzing RSI values on different intervals simultaneously. This is particularly useful for traders who employ multi-timeframe analysis to confirm signals and make more informed trading decisions.
Unique Feature of the new script (described in detail below)
Multi-Timeframe RSI Analysis
Customizable Timeframes
Visual Signal Indicators (dots)
Overbought and Oversold Layers with gradual Background Fill
Enhanced Trend Confirmation
Originality and Usefulness
This script combines the RSI indicator across three distinct timeframes into a single view, providing traders with a multi-dimensional perspective of market momentum. It also provides associated signals to better time dips and peaks. Unlike standard RSI indicators that focus on a single timeframe, this script allows users to observe RSI trends across short, medium, and long-term intervals, thereby improving the accuracy of entry and exit signals. This is particularly valuable for traders looking to align their short-term strategies with longer-term market trends.
Signal Description
The script also includes a unique signal feature that plots green and red dots on the chart to highlight potential buy and sell opportunities:
Green Dots : These appear when all three RSI values are under specific thresholds (RSI of the shortest timeframe < 30, the medium timeframe < 40, and the longest timeframe < 50) and the RSI of the shortest timeframe is showing an upward trend (current value is greater than the previous value, and the value two periods ago is greater than the previous value). This indicates a potential buying opportunity as the market may be shifting from an oversold condition.
Red Dots : These appear when all three RSI values are above specific thresholds (RSI of the shortest timeframe > 70, the medium timeframe > 60, and the longest timeframe > 50) and the RSI of the shortest timeframe is showing a downward trend (current value is less than the previous value, and the value two periods ago is less than the previous value). This indicates a potential selling opportunity as the market may be shifting from an overbought condition.
These signals help traders identify high-probability turning points in the market by ensuring that momentum is aligned across multiple timeframes.
Detailed Description
Input Variables
RSI Period (`len`) : The number of periods to calculate the RSI. Default is 14.
RSI Source (`src`) : The price source for RSI calculation, defaulting to the average of the high and low prices (`hl2`).
Timeframes (`tf1`, `tf2`, `tf3`) : The different timeframes for which the RSI is calculated, defaulting to 5 minutes, 1 hour, and 8 hours respectively.
Functionality
RSI Calculations : The script calculates the RSI for each of the three specified timeframes using the `request.security` function. This allows the RSI to be plotted for multiple intervals, providing a layered view of market momentum.
```pine
rsi_tf1 = request.security(syminfo.tickerid, tf1, ta.rsi(src, len))
rsi_tf2 = request.security(syminfo.tickerid, tf2, ta.rsi(src, len))
rsi_tf3 = request.security(syminfo.tickerid, tf3, ta.rsi(src, len))
```
Plotting : The RSI values for the three timeframes are plotted with different colors and line widths for clear visual distinction. This makes it easy to compare RSI values across different intervals.
```pine
p1 = plot(rsi_tf1, title="RSI 5m", color=color.rgb(200, 200, 255), linewidth=2)
p2 = plot(rsi_tf2, title="RSI 1h", color=color.rgb(125, 125, 255), linewidth=2)
p3 = plot(rsi_tf3, title="RSI 8h", color=color.rgb(0, 0, 255), linewidth=2)
```
Overbought and Oversold Levels : Horizontal lines are plotted at standard RSI levels (20, 30, 40, 50, 60, 70, 80) to visually identify overbought and oversold conditions. The areas between these levels are filled with varying shades of blue for better visualization.
```pine
h80 = hline(80, title="RSI threshold 80", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
h70 = hline(70, title="RSI threshold 70", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
...
fill(h70, h80, color=color.rgb(33, 150, 243, 95), title="Background")
```
Signal Plotting : The script adds green and red dots to indicate potential buy and sell signals, respectively. A green dot is plotted when all RSI values are under specific thresholds and the RSI of the shortest timeframe is rising. Conversely, a red dot is plotted when all RSI values are above specific thresholds and the RSI of the shortest timeframe is falling.
```pine
plotshape(series=(rsi_tf1 < 30 and rsi_tf2 < 40 and rsi_tf3 < 50 and (rsi_tf1 > rsi_tf1 ) and (rsi_tf1 > rsi_tf1 )) ? 1 : na, location=location.bottom, color=color.green, style=shape.circle, size=size.tiny)
plotshape(series=(rsi_tf1 > 70 and rsi_tf2 > 60 and rsi_tf3 > 50 and (rsi_tf1 < rsi_tf1 ) and (rsi_tf1 < rsi_tf1 )) ? 1 : na, location=location.top, color=color.red, style=shape.circle, size=size.tiny)
```
How to Use
Configuring Inputs : Adjust the RSI period and source as needed. Modify the timeframes to suit your trading strategy.
Interpreting the Indicator : Use the plotted RSI values to gauge momentum across different timeframes. Look for overbought conditions (RSI above 70, 60 and 50) and oversold conditions (RSI below 30, 40 and 50) across multiple intervals to confirm trade signals.
Signal Confirmation : Pay attention to the green and red dots that provide signals to better time dips and peaks. dots are printed when the lower timeframe (5mn by default) shows sign of reversal.
These signals are more reliable when confirmed across all three timeframes.
This script provides a nuanced view of RSI, helping traders make more informed decisions by considering multiple timeframes simultaneously. By combining short, medium, and long-term RSI values, traders can better align their strategies with overarching market trends, thus improving the precision of their trading actions.
RSI PRECISION v.3RSI PRECISION v.3 (MACD, StochRSI, SMA Signals)
Developed by Giorgos Protonotarios (2021-2023)
RSI PRECISION is an alternative to the classic Relative Strength Index (RSI). The indicator aims to enhance the classic RSI and make it more accurate on longer timeframes. Additionally, the indicator works as an advanced signaling machine, offering five different categories of leading trading signals. RSI PRECISION is an ideal tool for analyzing highly volatile markets, such as cryptocurrency and small-cap stocks.
In this 3rd version, the core formula remains the same, however, there are new trading signals and a great number of new parameters. Traders have the opportunity to fully customize the indicator according to their needs.
What is new ?
The RSI formula remains the same, however, there are additional features:
• Selected StochRSI signals
• Low-timeframe SMA signal (<60 minutes)
• High-timeframe SMA signal (>60 minutes)
• SMA on the RSI PRECISION readings
• Ability to customize everything in settings (tooltips added)
Note: You can turn off any trading signal by unselecting it in Settings>Style.
□ NEW TRADING SIGNALS (v.3)
■ SELECTED STOCHRSI SIGNALS
The selected StochRSI signals are visualized by a cross (+) on the top and bottom of the indicator. The settings for StochRSI are the classic 8.5.3 (customizable). By default, the crossover is generated when StochRSI crosses above 25, and the crossunder when StochRSI crosses below 75.
(i) Bullish StochRSI cross
• Symbol: Cross (+) on the Top
• Event: StochRSI crosses above level 25
(ii) Bearish StochRSI cross
• Symbol: Cross (+) on the Bottom
• Event: StochRSI crosses below level 75
■ SMA CROSSOVERS (LOW/HIGH TIMEFRAMES)
These trading signals are generated when the price of an asset crosses above or below a preset SMA.
There are two different SMAs, one shown on low timeframes, and one on high timeframes. You can adjust the periods for both, by default 200 periods.
(i) Low-Timeframe SMA Cross (<60 minutes)
• Symbol: Bullish (↥) on the top of the indicator and bearish (↧) on the bottom
• Event: The price crosses above or below the selected SMA on low timeframes
(ii) High-Timeframe SMA Cross (>60 minutes)
• Symbol: Bullish (↥) on the top of the indicator and bearish (↧) on the bottom
• Event: The price crosses above or below the selected SMA on high timeframes
■ SMA LINE ON RSI PRECISION
This is just a simple SMA line on the RSI PRECISION readings. By default, it is set at 50 periods.
• SMA Line (blue-dashed)
You can turn it off by unselecting it in Settings>Style.
□ OLDER TRADING SIGNALS
The 3rd version of RSI PRECISION also includes all previous signals.
■ RSI PRECISION CROSSES
This signal corresponds to a bullish/bearish RSI PRECISION cross. By default, it is 5 for a bullish crossover and 100 for a bearish crossunder. These numbers are indicative and can be customized.
(i) Bullish RSI PRECISION Cross
• Symbol: Green arrow (▲) on the Top
• Event: RSI PRECISION crosses above level 5
(ii) Bearish RSI PRECISION Cross
• Symbol: Red arrow (▼) on the Bottom
• Event: RSI PRECISION crosses below level 100
■ MACD CROSSOVER SIGNALS
The MACD signals are visualized by a green/red dot (•). The default settings are the standard MACD settings (12,6,9).
(i) Bullish MACD cross
• Symbol: Green Dot (•) on the Top
• Event: MACD crosses above its signal line
(ii) Bearish MACD cross
• Symbol: Red Dot (•) on the Bottom
• Event: MACD crosses below its signal line
NOTE: In lower timeframes, MACD generates too many signals. You can switch off “MACD BULLISH & BEARISH CROSSOVERS” by clicking on ‘SETTINGS’, then ‘STYLE’, and then unselecting ‘Bullish MACD Cross’ and ‘Bearish MACD Cross’.
■ GOLDEN/DEATH CROSSES (SMA CROSSOVERS)
The cross of the 50-day moving average above the 200-day moving average is called a golden cross, and it is considered a bullish signal. The cross of the 50-day moving average below the 200-day moving average is called a death cross, and it is considered a bearish signal.
The Golden/Death crosses are visualized by (X). By default, 50 periods for the fast SMA and 200 periods for the slow SMA (both are customizable).
(i) Bullish SMA Cross
• Symbol: (X) on the Top
• Event: The fast SMA crosses above the Slow SMA
(ii) Bearish RSI Cross
• Symbol: (X) on the Bottom
• Event: The fast SMA crosses below the Slow SMA
□ More about the Indicator
■ MISSION
Enhancing the classic Relative Strength Index (RSI) and making it more accurate on longer timeframes, during choppy market conditions, and especially near market tops/bottoms.
■ OBJECTIVES
(1) Creating a better RSI that works as an “All-in-one” indicator
(2) Identifying overbought/oversold market levels in a simple and user-friendly manner
(3) Making precise calculations near market tops and bottoms, where price volatility is always booming
(4) Making precise calculations on longer timeframes (weekly, monthly) where the classic RSI readings are hardly readable
(5) Offering five different categories of trading signals (RSI, StochRSI, MACD, Golden/Death Crosses, SMAs) in a single indicator
■ RSI PRECISION CALCULATIONS
The RSI PRECISION formula consists of three (3) different components:
(a) Relative Strength Index component (the classic RSI)
(b) Periodic Price Volatility component (PPV, essential)
(c) RSI Volatility component (less important)
RSI PRECISION FORMULA ADJUSTMENTS
(i) CLASSIC RSI
This measurement corresponds to the classic RSI. If the other two components of the formula are set to zero (0%), then by entering 100% here, the RSI PRECISION becomes identical to the classic RSI.
-By default, 100%
(ii) PERIODIC PRICE VOLATILITY -PPV
The Periodic Price Volatility (PPV) is an advanced measurement of price volatility and an essential component of the core RSI PRECISION formula. You can easily adjust the weight of PPV in the formula.
-By default, 100%
(iii) RSI VOLATILITY
This is an extra measurement of volatility. This time the focus is exclusively on periodic RSI volatility, not on price volatility.
-By default, 5%
■ FINAL THOUGHTS
RSI PRECISION v.3 is an improved RSI indicator offering five leading trading signals. Everything is combined in one place to create an all-in-one TA tool. I have been using it as my only indicator for quite some time.
As always, happy trading, and remember, if you want to rule the world, create code, not war.
□ Giorgos Protonotarios,
Financial Analyst, Building Web
(October 5th 2023)
RSI - trendlines - div[vn]This is an indicator for traders of trendline analysis with RSI (the formula for calculating RSI I don't mention here anymore because every trader knows it)
-
The Pine Script strategy plots pivot points and trendlines on the RSI chart.
This strategy allows the user to specify the interval for calculating the pivot points and the number of pivot points used to generate the RSI trendlines.
As all traders know, the RSI line closely follows the actual price line, it is an indicator of momentum, the RSI often tells us the direction of the price line in advance, it often precedes and goes along with the price.
RSI is one of the indicators that predicts price trends very well when it crosses its trendline (except in case of divergence).
On the chart of the RSI indicator, I only show 2 trendlines closest to the RSI (1 increase, 1 decrease) and the trend lines far away from me are hidden so that traders can focus on observing better.
When an uptrend line of RSI (or a decrease of RSI) is drawn according to the settings in the settings of the indicator, then that line is support and resistance so that we can proceed to make a BUY or SELL point according to the indicator. RSI support and resistance strategy
When the RSI line breaks above the definitive uptrend line or breaks below the trendline definitively, the price signals a reversal to the nearest trendline.
When the RSI breaks the downtrend line of the RSI (definitively), it signals that the price has a high probability of reversing or approaching the nearest resistance area or possibly reversing from bearish to bullish.
When the RSI breaks the uptrend line of the RSI (definitively), it signals that the price is likely to reverse or reach the nearest resistance area or it may reverse from bullish to bearish.
In addition, I have integrated the normal divergence function of RSI for traders to use in case of divergence - combined with trendline to identify trend reversal more clearly.
-------------------------------------------------------------------------------------------------------
Vietnamese
-Đây là chỉ báo dành cho các trader thuộc trường phái phân tích đường xu hướng với RSI(công thức tính RSI tôi không nhắc ở đây nữa vì mọi trader đều biết)
-Chiến lược Pine Script vẽ các điểm trục và đường xu hướng trên biểu đồ RSI.
-Chiến lược này cho phép người dùng chỉ định khoảng thời gian tính toán các điểm xoay và số điểm xoay được sử dụng để tạo các đường xu hướng của RSI.
-Như các Trader đều biết đường RSI bám sát thực tế với đường giá, nó là chỉ báo về động lượng ,RSI nhiều khi cho chúng ta "biết trước" được hướng đi của đường giá, nó thường đi trước và đi cùng với giá
-RSI là một trong những chỉ báo dự đoán xu hướng giá rất tốt khi cắt đường xu hướng của nó (chỉ trừ trường hợp phân kì)
-Trên biểu đồ của chỉ báo RSI tôi chỉ đưa ra 2 đường trendline gần với đường RSI nhất (1 tăng , 1 giảm)còn các đường xu hướng cách xa tôi đều để ẩn để các Trader tập chung quan sát tốt hơn
-Khi đường xu hướng tăng của RSI (hoặc giảm của RSI) được vẽ ra theo các thiết lập trong cài đặt của chỉ báo,thì đường đó là hỗ trợ,kháng cự để ta có thể tiến hành thực hiện điểm BUY hoặc SELL theo chiến lược hỗ trợ và kháng cự của RSI
-Khi đường RSI mà phá vỡ lên trên đường xu hướng tăng dứt khoát hoặc phá xuống dưới đường xu hướng cách dứt khoát thì giá báo hiệu sắp đảo chiều ngược với đường xu hướng gần nhất
-Khi RSI phá vỡ đường xu hướng giảm của RSI (cách dứt khoát) thì báo hiệu sắp tới giá có khả năng cao sẽ đảo chiều hay tiến tới vùng kháng cự gần nhất hay có thể đảo chiều từ giảm thành tăng
-Khi RSI phá vỡ đường xu hướng tăng của RSI (cách dứt khoát) thì báo hiệu sắp tới giá có khả năng cao sẽ đảo chiều hay tiến tới vùng kháng cự gần nhất hay có thể đảo chiều từ tăng thành giảm
-ngoài ra tôi có tích hợp thêm vào công cụ chức năng phân kì thường của RSI để trader dùng trong trường hợp phân kì - kết hợp với đường trendline để xác định xu hướng đảo chiều rõ ràng hơn
RSI Integral by Hawkeye Charting**** German Description below ****
This is the RSI Integral indicator.
Basically, it's a normal RSI but improves the visualization of the strength in the market.
The upper shown RSI display the integral of the RSI (f(x)) and the neutral RSI level (50) (g(x)).
The blue background coloring visualizes the area as the integration of both the mentioned functions --> H(x) = F(x) - G(x) and indicates, how strong and directed the market currently is.
Markets regulate and bring them back to the mean by themselve; by that fact, the consideration is that remaining a longer time in e.g. the upper zone requires to "unleash" the collected energy from the upper levels to the downside and vice versa.
So the major advantage of this indicator is to monitor and compare the given areas above and below the neutral level and making imbalances visible.
Furthermore, the lower shown RSI shows the complete displaying of the indicators functions, as it displays possible long and short entry and exit areas.
Read the chart to understand the system. Please note that the program waits on interval after the actual cross event before it changes the background color. This is to avoid false signals that last only 1 candle.
The last components are the overbought and oversold zones. They are equal to the standard RSI overbought and oversold levels.
You have the following setting options:
--> Timeframe selection
--> Generally Displaying the RSI yes/ no
--> Changing source, length and color of the RSI itself
--> turning on/ off the neutral RSI level (50), changing the neutral level value and changing the background color. (Note: Undisplaying the neutral level will remove the background coloring as well).
--> turning on/ off the upper RSI zone, changing the zone-border-values and -colors and changing the background color. (Note: same as neutral RSI level)
--> turning on/ off the lower RSI zone, changing the zone-border-values and -colors and changing the background color. (Note: same as neutral RSI level)
--> turning on/ off the RSI average, changing the Moving Average type, length and color.
--> turning on/ off the Moving Average Long/ Short Background and changing the colors for long and short direction.
--> smoothing of the rsi itself. Note: it will affect the alert events as well, if the rsi smoothing function is selected.
Last but not least, you can set alerts:
--> Alert for overbought/ oversold area (cross in/ cross out, message: Check for divergences)
--> Alerts for open and close long
--> Alerts for open and close short
A complete "Alert-Set" requires 6 Alerts.
I'd like to know what you think! Please leave a comment, I will answer ASAP .
Please leave a like and a follow if you like this work and don't forget to check out my major work, the Market Maker Volatility Diameter, see the link below.
Enjoy and always happy trades.
Yours
Markus aka Hawkeye Waver from Hawkeye Charting
-------------------------------------------------------------------------------------
**** Deutsche Beschreibung ****
Das ist der RSI Integral Indikator.
Im Grunde handelt es sich hierbei um einen normalen RSI , allerdings verbessert er die Visualisierung der Stärke im Markt.
Der obere RSI im Beispielbild zeigt das Integral des RSI , bezogen auf den RSI f(x) selber sowie seines neutralen Levels beim Wert 50 = g(x).
Der blaue Hintergrund visualisiert die Flächenfunktion des Integrals der beiden genannten Funktionen --> H(x) = F(x) - G(x) und indiziert, wie stark und nach wohin der Markt gerade gerichtet ist.
Märkte regulieren sich selber und bringen sich auch immer wieder selber zum Durchschnitt und zur Balance zurück. Dieser Fakt führt zu der Überlegung, dass ein langes Aufhalten in z.B. der oberen Zone unweigerlich eine "Freisetzung" der gesammelten Energie der oberen Levels nach unten nach sich ziehen wird und umgekehrt.
Die Hauptvorteil dieses Indikators ist also, dass die entstandenen Flächen über und unter dem Neutralen RSI Level einfach beobachtet und verglichen werden können, um so Ungleichgewichte im Chart zu erkennen.
Desweiteren zeigt der unten im Chart abgebildete RSI die vollständige Anzeige der Indikatorfunktionen. Es ist nämlich auch möglich, Long und Short Signale für Einstieg und Ausstieg anzuzeigen.
Bitte lest den Chart, um das System zu verstehen. Beachtet: das Programm wartet 1 Intervall zur Bestätigung, bevor es einen Traderichtungswechsel auch anzeigt. Diese Maßnahme wurde getroffen, um falsche Signale zu reduzieren.
Die letzten Komponenten sind die Überkauft- und Überverkauftzonen. Sie sind gleich wie die Standard RSI überkauft und überverkauft Levels zu interpretieren.
Der Indikator bietet die folgenden Einstellmöglichkeiten:
--> Timeframe Auswahl
--> RSI generell anzeigen ja/ nein
--> Quelle, Länge und Farbe des RSI selber verändern
--> Neutrales RSI Level an- und ausschalten, Level-Wert verändern und die Hintergrund-Farbe ändern. (Anmerkung: Das Abschalten des Neutralen RSI Levels wird auch die Hintergrundfärbung abschalten.)
--> An- und Ausschalten der oberen RSI Zone, Zonengrenzwerte und -farben verändern und Hintergrundfarbe verändern. (Anmerkung: s. Neutrales RSI Level)
--> An- und Ausschalten der unteren RSI Zone, Zonengrenzwerte und -farben verändern und Hintergrundfarbe verändern. (Anmerkung: s. Neutrales RSI Level)
--> An- und Ausschalten des RSI Durchschnitts, verändern des Durchschnitt-Typs, der Länge und der Farbe
--> An- und Ausschalten der Durchschnitt Long und Short Hintergrundfärbung sowie Änderung der Hintergrund Farben für Long und Short Richtung
--> Glättung des RSI. Anmerkung: Die Alarme werden sich auf den geglätteten RSI und nicht auf den RSI selber beziehen, wenn die Funktion selektiert ist.
Zu guter Letzt, der Indikator bietet die Funktion, Alarme einzustellen:
--> Alarm für Überkauft/ Überverkauft Zonen (Einkreuzen/ Auskreuzen, Nachricht: Auf Divergenzen prüfen)
--> Alarme für Long Öffnen & Schließen
--> Alarme für Short Öffnen & Schließen
Ein vollständiges "Alarm-Set" benötigt 6 Alarme.
Ich möchte gerne wissen, was ihr über den Indikator denkt! Bitte hinterlasst eure Kommentare, ich werde asap antworten.
Bitte hinterlasst ein Like und ein Follow wenn euch diese Arbeit gefällt und vergesst nicht, meine Hauptarbeit, den Market Maker Volatility Diameter auszuchecken, s. Link unten.
Viel Spaß mit dem Indikator und allzeit gute Trades
Euer
Markus aka Hawkeye Waver von Hawkeye Charting
RSI PRECISION (MACD & SMA Signals)RSI PRECISION (Plus MACD & SMA Signals)
Codded by Giorgos Protonotarios, March 2022
This is an enhanced version of RSI PRECISION that incorporates RSI readings and key TA signals into a single oscillator.
■ RSI PRECISION SHORT DESCRIPTION & WHAT IS NEW
RSI PRECISION is an oscillator designed to enhance the classic RSI with price volatility and make it more accurate at longer time frames and during choppy market conditions. The oscillator is ideal for analyzing volatile markets, such as the cryptocurrency market.
In this second version, the RSI Precision formula remains the same, however, there are additional features.
The new oscillator now includes three different trading signals:
• MACD Crossovers (•) -New
• SMA Death/Golden Crosses (x) -New
• RSI Crossovers/Crossunders (▲▼)
■ MACD BULLISH & BEARISH CROSSOVERS
The MACD signals are visualized by a green/red dot (•). The default settings are the standard MACD settings (12,6,9).
NOTE: In lower timeframes, MACD generates too many signals. You can switch off “MACD BULLISH & BEARISH CROSSOVERS” by clicking on ‘SETTINGS’, then ‘STYLE’, and then unselecting ‘Bullish MACD Cross’ and ‘Bearish MACD Cross’.
(i) Bullish MACD cross
• Symbol: Green Dot (•) on the Top
• Event: MACD crosses above its signal line
(ii) Bearish MACD cross
• Symbol: Red Dot (•) on the Bottom
• Event: MACD crosses below its signal line
■ SMA CROSSOVERS
The SMA crossovers are visualized by (X). By default, 50 periods for the fast SMA and 200 periods for the slow SMA (both are customizable).
NOTE: If you change the fast SMA to 1 period, the fast SMA becomes the closing price. Therefore, you can receive signals when the price crosses a key MA, for example, SMA(200).
(i) Bullish SMA Cross
• Symbol: Green (X) on the Top
• Event: The fast SMA crosses above the Slow SMA
(ii) Bearish RSI Cross
• Symbol: Red (X) on the Bottom
• Event: The fast SMA crosses below the Slow SMA
You can adjust the periods for both SMAs (Settings).
■ RSI CROSSOVER/CROSSUNDER
This signal corresponds to a bullish/bearish RSI Precision cross. By default, it is 5 for a bullish crossover and 100 for a bearish crossunder. Of course, these numbers are indicative and can be customized.
(i) Bullish RSI Precision Cross
• Symbol: Green arrow (▲) on the Top
• Event: The RSI Precision crosses above level 5
(ii) Bearish RSI Precision Cross
• Symbol: Red arrow (▼) on the Bottom
• Event: The RSI Precision crosses below level 100
■ RSI PRECISION MISSION
To enhance RSI and make it more accurate on longer time frames, choppy market conditions, and especially during market tops/bottoms.
■ RSI PRECISION OBJECTIVES
(1) identify overbought/oversold market levels in a simple and user-friendly manner
(2) make precise calculations near market tops and bottoms, where price volatility is always booming
(3) make precise calculations on longer time frames (monthly, weekly) where RSI readings are hardly readable
(4) offer three types of trading signals (RSI, MACD, SMA)
■ RSI PRECISION CALCULATIONS
The RSI PRECISION formula consists of 3 different modules:
(a) Relative Strength Index readings
(b) Price Volatility module
(c) RSI Volatility module (optional)
■ BASIC SETTINGS
--RSI PERIODS: -By default, 14.
---RSI PRECISION FORMULA
(i) RSI FACTOR (%)
-You can adjust the weight of RSI readings in the formula.
-By default, 100%.
(ii) PERIODIC PRICE VOLATILITY (%)
-You can adjust the weight of Periodic Price Volatility in the formula.
-By default, 100%.
(iii) RSI VOLATILITY (%)
-This is an extra measurement of volatility. This time the focus is exclusively on periodic RSI volatility, not on price volatility.
-By default, 5%.
--RSI CROSSOVER/CROSSUNDER LEVELS
You can adjust the levels for an RSI PRECISION crossover/crossunder.
- By default, 5 for a bullish crossover and 100 for a bearish crossunder.
--PERIODS FOR SMA CROSSOVERS
You can adjust the periods for the two SMAs.
-By default, 50 periods for the fast SMA and 200 periods for the slow SMA. Some traders describe the crossing of these two SMAs (50/200) as the “Golden/Death Crosses”.
■ FINAL THOUGHTS
The new RSI Precision combines everything in one place. I have been using this enhanced version, myself, as my only oscillator.
As always, happy trading... and remember to make charts, not war.
□ Giorgos Protonotarios,
Financial Analyst, Building Web
(March 2022)
RSI WMA VWMA Divergence Indicator//@version=6
indicator(title="RSI WMA VWMA Divergence Indicator", shorttitle="Osc Div", format=format.price, precision=2)
oscType = input.string("RSI", "Oscillator Type", options = , group="General Settings")
// RSI Settings
rsiGroup = "RSI Settings"
rsiLengthInput = input.int(14, minval=1, title="RSI Length", group=rsiGroup)
rsiSourceInput = input.source(close, "Source", group=rsiGroup)
// WMA VWMA
wma9 = ta.wma(close, 9)
vwma3 = ta.vwma(close, 3)
useVWMA = input.bool(true, "Use VWMA3 for Divergence (when WMA9 + VWMA3 mode)", group="WMA Settings")
// Oscillator selection
rsi = ta.rsi(rsiSourceInput, rsiLengthInput) // Calculate RSI always, but use conditionally
osc = oscType == "RSI" ? rsi : useVWMA ? vwma3 : wma9
// RSI plots (conditional)
isRSI = oscType == "RSI"
rsiPlot = plot(isRSI ? rsi : na, "RSI", color=isRSI ? #7E57C2 : na)
rsiUpperBand = hline(isRSI ? 70 : na, "RSI Upper Band", color=isRSI ? #787B86 : na)
midline = hline(isRSI ? 50 : na, "RSI Middle Band", color=isRSI ? color.new(#787B86, 50) : na)
rsiLowerBand = hline(isRSI ? 30 : na, "RSI Lower Band", color=isRSI ? #787B86 : na)
fill(rsiUpperBand, rsiLowerBand, color=isRSI ? color.rgb(126, 87, 194, 90) : na, title="RSI Background Fill")
midLinePlot = plot(isRSI ? 50 : na, color = na, editable = false, display = display.none)
fill(rsiPlot, midLinePlot, 100, 70, top_color = isRSI ? color.new(color.green, 0) : na, bottom_color = isRSI ? color.new(color.green, 100) : na, title = "Overbought Gradient Fill")
fill(rsiPlot, midLinePlot, 30, 0, top_color = isRSI ? color.new(color.red, 100) : na, bottom_color = isRSI ? color.new(color.red, 0) : na, title = "Oversold Gradient Fill")
// WMA VWMA plots
plot(oscType != "RSI" ? wma9 : na, "WMA9", color=oscType != "RSI" ? color.blue : na)
plot(oscType != "RSI" ? vwma3 : na, "VWMA3", color=oscType != "RSI" ? color.orange : na)
// Smoothing MA inputs (only for RSI)
GRP = "Smoothing (RSI only)"
TT_BB = "Only applies when 'SMA + Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maTypeInput = input.string("SMA", "Type", options = , group = GRP, display = display.data_window)
maLengthInput = input.int(14, "Length", group = GRP, display = display.data_window)
bbMultInput = input.float(2.0, "BB StdDev", minval = 0.001, maxval = 50, step = 0.5, tooltip = TT_BB, group = GRP, display = display.data_window)
enableMA = maTypeInput != "None" and oscType == "RSI"
isBB = maTypeInput == "SMA + Bollinger Bands" and oscType == "RSI"
// Smoothing MA Calculation
ma(source, length, MAtype) =>
switch MAtype
"SMA" => ta.sma(source, length)
"SMA + Bollinger Bands" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
// Smoothing MA plots
smoothingMA = enableMA ? ma(rsi, maLengthInput, maTypeInput) : na
smoothingStDev = isBB ? ta.stdev(rsi, maLengthInput) * bbMultInput : na
plot(smoothingMA, "RSI-based MA", color=enableMA ? color.yellow : na, display = enableMA ? display.all : display.none, editable = enableMA)
bbUpperBand = plot(isBB ? smoothingMA + smoothingStDev : na, title = "Upper Bollinger Band", color=isBB ? color.green : na, display = isBB ? display.all : display.none, editable = isBB)
bbLowerBand = plot(isBB ? smoothingMA - smoothingStDev : na, title = "Lower Bollinger Band", color=isBB ? color.green : na, display = isBB ? display.all : display.none, editable = isBB)
fill(bbUpperBand, bbLowerBand, color= isBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display = isBB ? display.all : display.none, editable = isBB)
// Divergence Settings
divGroup = "Divergence Settings"
calculateDivergence = input.bool(true, title="Calculate Divergence", group=divGroup, tooltip = "Calculating divergences is needed in order for divergence alerts to fire.")
lookbackLeft = input.int(5, "Pivot Lookback Left", minval=1, group=divGroup)
lookbackRight = input.int(5, "Pivot Lookback Right", minval=1, group=divGroup)
rangeLower = input.int(5, "Min Range for Divergence", minval=0, group=divGroup)
rangeUpper = input.int(60, "Max Range for Divergence", minval=1, group=divGroup)
showHidden = input.bool(true, "Show Hidden Divergences", group=divGroup)
bearColor = color.red
bullColor = color.green
textColor = color.white
noneColor = color.new(color.white, 100)
_inRange(cond) =>
bars = ta.barssince(cond)
rangeLower <= bars and bars <= rangeUpper
bool plFound = false
bool phFound = false
bool bullCond = false
bool bearCond = false
bool hiddenBullCond = false
bool hiddenBearCond = false
float oscLBR = na
float lowLBR = na
float highLBR = na
float prevPlOsc = na
float prevPlLow = na
float prevPhOsc = na
float prevPhHigh = na
if calculateDivergence
plFound := not na(ta.pivotlow(osc, lookbackLeft, lookbackRight))
phFound := not na(ta.pivothigh(osc, lookbackLeft, lookbackRight))
oscLBR := osc
lowLBR := low
highLBR := high
prevPlOsc := ta.valuewhen(plFound, oscLBR, 1)
prevPlLow := ta.valuewhen(plFound, lowLBR, 1)
prevPhOsc := ta.valuewhen(phFound, oscLBR, 1)
prevPhHigh := ta.valuewhen(phFound, highLBR, 1)
// Regular Bullish
oscHL = oscLBR > prevPlOsc and _inRange(plFound )
priceLL = lowLBR < prevPlLow
bullCond := priceLL and oscHL and plFound
// Regular Bearish
oscLL = oscLBR < prevPhOsc and _inRange(phFound )
priceHH = highLBR > prevPhHigh
bearCond := priceHH and oscLL and phFound
// Hidden Bullish
oscLL_hidden = oscLBR < prevPlOsc and _inRange(plFound )
priceHL = lowLBR > prevPlLow
hiddenBullCond := priceHL and oscLL_hidden and plFound and showHidden
// Hidden Bearish
oscHH_hidden = oscLBR > prevPhOsc and _inRange(phFound )
priceLH = highLBR < prevPhHigh
hiddenBearCond := priceLH and oscHH_hidden and phFound and showHidden
// Plot divergences (lines and labels on pane)
if bullCond
leftBar = ta.valuewhen(plFound, bar_index , 1)
line.new(leftBar, prevPlOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bullColor, width=2)
label.new(bar_index , oscLBR, "R Bull", style=label.style_label_up, color=noneColor, textcolor=textColor)
if bearCond
leftBar = ta.valuewhen(phFound, bar_index , 1)
line.new(leftBar, prevPhOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bearColor, width=2)
label.new(bar_index , oscLBR, "R Bear", style=label.style_label_down, color=noneColor, textcolor=textColor)
if hiddenBullCond
leftBar = ta.valuewhen(plFound, bar_index , 1)
line.new(leftBar, prevPlOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bullColor, width=2, style=line.style_dashed)
label.new(bar_index , oscLBR, "H Bull", style=label.style_label_up, color=noneColor, textcolor=textColor)
if hiddenBearCond
leftBar = ta.valuewhen(phFound, bar_index , 1)
line.new(leftBar, prevPhOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bearColor, width=2, style=line.style_dashed)
label.new(bar_index , oscLBR, "H Bear", style=label.style_label_down, color=noneColor, textcolor=textColor)
// Alert conditions
alertcondition(bullCond, title="Regular Bullish Divergence", message="Found a new Regular Bullish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(bearCond, title="Regular Bearish Divergence", message="Found a new Regular Bearish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(hiddenBullCond, title="Hidden Bullish Divergence", message="Found a new Hidden Bullish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(hiddenBearCond, title="Hidden Bearish Divergence", message="Found a new Hidden Bearish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
RSI For LoopTitle: RSI For Loop
SurgeQuant’s RSI with Threshold Colors and Bar Coloring indicator is a sophisticated tool designed to identify overbought and oversold conditions using a customizable Relative Strength Index (RSI). By averaging RSI over a user-defined lookback period, this indicator provides clear visual signals for bullish and bearish market conditions. The RSI line and price bars are dynamically colored to highlight momentum, making it easier for traders to spot potential trading opportunities.
How It Works
RSI Calculation:
Computes RSI based on a user-selected price source (Close, High, Low, or Open) with a configurable length (default: 5). Optional moving average smoothing refines the RSI signal for smoother analysis.
Lookback Averaging:
Averages the RSI over a user-defined lookback period (default: 5) to generate a stable momentum indicator, reducing noise and enhancing signal reliability.
Threshold-Based Signals:
Long Signal: Triggered when the averaged RSI exceeds the upper threshold (default: 52), indicating overbought conditions.
Short Signal: Triggered when the averaged RSI falls below the lower threshold (default: 48), indicating oversold conditions.
Visual Representation
The indicator provides a clear and customizable visual interface: Green RSI Line and Bars: Indicate overbought conditions when the averaged RSI surpasses the upper threshold, signaling potential long opportunities.
Red RSI Line and Bars: Indicate oversold conditions when the averaged RSI drops below the lower threshold, signaling potential short opportunities.
Neutral Gray RSI Line: Represents RSI values between thresholds for neutral market conditions.
Threshold Lines: Dashed gray lines mark the upper and lower thresholds on the RSI panel for easy reference.
Customization & Parameters
The RSI with Threshold Colors and Bar Coloring indicator offers flexible parameters to suit
various trading styles: Source: Select the input price (default: Close; options: Close, High, Low, Open).
RSI Length: Adjust the RSI calculation period (default: 5).
Smoothing: Enable/disable moving average smoothing (default: enabled) and set the smoothing length (default: 10).
Moving Average Type: Choose from multiple types (SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, HMA, LSMA, ALMA; default: ALMA).
ALMA Sigma: Configure the ALMA smoothing parameter (default: 5).
Lookback Period: Set the period for averaging RSI (default: 5).
Thresholds: Customize the upper (default: 52) and lower (default: 48) thresholds for signal generation.
Color Settings: Transparent green and red colors (70% transparency) for bullish and bearish signals, with gray for neutral states.
Trading Applications
This indicator is versatile and can be applied across various markets and strategies: Momentum Trading: Highlights strong overbought or oversold conditions for potential entry or exit points.
Trend Confirmation: Use bar coloring to confirm RSI-based signals with price action on the main chart.
Reversal Detection: Identify potential reversals when RSI crosses the customizable thresholds.
Scalping and Swing Trading: Adjust parameters (e.g., RSI length, lookback) to suit short-term or longer-term strategies.
Final Note
SurgeQuant’s RSI with Threshold Colors and Bar Coloring indicator is a powerful tool for traders seeking to leverage RSI for momentum and reversal opportunities. Its combination of lookback-averaged RSI, dynamic threshold signals, and synchronized RSI and bar coloring offers a robust framework for informed trading decisions. As with all indicators, backtest thoroughly and integrate into a comprehensive trading strategy for optimal results.