RSI deyvidholnik
📊 Overview
RSI deyvidholnik is an advanced technical indicator that combines the power of traditional RSI (Relative Strength Index) with automatic divergence detection to identify potential market reversal points. This indicator was developed by kingthies and offers clear visual analysis of overbought/oversold conditions along with highly precise divergence signals.
🔧 Key Features
Customizable RSI
Data Source: Configurable (default: close)
Period: Adjustable (default: 14)
Moving Average: Multiple types available (SMA, EMA, SMMA, WMA, VWMA, MMS)
MA Period: Configurable (default: 14)
Divergence Detection
The indicator identifies four types of divergences:
🟢 Bullish Divergence
Occurs when price makes lower lows, but RSI makes higher lows
Indicates possible trend reversal from bearish to bullish
Signaled with green dots on RSI
🔴 Bearish Divergence
Occurs when price makes higher highs, but RSI makes lower highs
Indicates possible trend reversal from bullish to bearish
Signaled with red dots on RSI
🟢 Hidden Bullish Divergence (Optional)
Price makes higher lows while RSI makes lower lows
Confirms continuation of bullish trend
Useful in trending markets
🔴 Hidden Bearish Divergence (Optional)
Price makes lower highs while RSI makes higher highs
Confirms continuation of bearish trend
Useful in trending markets
⚙️ Pivot Settings
Optimized Default Configuration
Right Bars: 1 (quick confirmation)
Left Bars: 5 (noise filtering)
Maximum Bars Between Pivots: 60
Minimum Bars Between Pivots: 3
These settings have been adjusted to provide:
✅ Faster and more responsive signals
✅ Reduction of false signals
✅ Better identification of significant pivots
🎨 Visual Interface
RSI Levels
Line 70: Overbought zone (red)
Line 50: Neutral centerline
Line 30: Oversold zone (green)
Gradient fill: Visually intensifies extreme zones
Graphical Elements
RSI: Main line in white
Moving Average: Smoothed yellow line
Divergence Points: Colored markers on pivots
Background: Subtle fill for better readability
📈 How to Use
For Reversal Trading
Enable only: Bullish and Bearish (default)
Look for: Divergences in overbought/oversold zones
Confirm with: Other indicators or price analysis
For Trend Trading
Enable: Hidden Bull and Hidden Bear
Use in: Markets with clear established trends
Combine with: Market structure analysis
Alert Configuration
The indicator includes automatic alerts for:
⚠️ Bullish Divergence
⚠️ Bearish Divergence
⚠️ Hidden Bullish Divergence
⚠️ Hidden Bearish Divergence
💡 Main Advantages
✅ Automatic Detection: Identifies divergences without manual interpretation
✅ Optimized Configuration: Default values tested for maximum efficiency
✅ Clean Interface: Clear and professional visual
✅ Integrated Alerts: Automatic signal notifications
✅ Flexibility: Multiple customization options
✅ Performance: Optimized code for efficient execution
🎯 Recommended Timeframes
Scalping: 1m, 5m (with more sensitive settings)
Intraday: 15m, 30m, 1h (default configuration)
Swing: 4h, 1D (for medium-term signals)
⚠️ Important Considerations
Not infallible: Always use in conjunction with other analysis methods
Sideways markets: More effective in markets with directional movement
Confirmation: Always wait for signal confirmation before trading
Risk management: Always implement adequate stop-loss and take-profit
Cari dalam skrip untuk "rsi"
RSI Momentum Divergence Zones [ChartPrime]⯁ OVERVIEW 
 RSI Momentum Divergence Zones   is a hybrid oscillator and chart overlay tool that detects RSI-based momentum divergences and projects them as key zones on the chart. By combining RSI divergence logic with horizontal level plotting, this indicator reveals high-probability support and resistance areas where price has historically reacted to hidden or classic divergences.
 ⯁ KEY FEATURES 
 
 Momentum-Based RSI Source: 
Instead of the classic RSI input, this tool uses the momentum of price as the RSI source:
 rsiSrc = ta.mom(close, 10) 
This emphasizes acceleration and deceleration of price moves, sharpening divergence signals and making them more responsive to early shifts in momentum.
 Automatic Divergence Detection (Optional): 
When enabled, the indicator continuously scans for:
—  Bullish Divergence : Price makes a Lower Low while RSI forms a Higher Low
—  Bearish Divergence : Price makes a Higher High while RSI forms a Lower High
It ensures divergence is valid by checking the spacing between pivots (min 5, max 50 bars).
 Divergence Labels & Markers (RSI Pane + Chart):
 When a valid divergence is detected:
— On RSI pane:
Labels appear at HL/LH points (“Bull” / “Bear”)
Colored lines show pivot structures
— On price chart:
  
Labels (“▲ Bull” / “Bear ▼”) mark price pivot that triggered the divergence
Lines highlight the exact price level at the divergence origin
  
 Divergence Zones / Levels (Toggleable):
 The indicator projects horizontal zones across the chart based on confirmed divergence points.
These levels dynamically extend as long as price respects them, and auto-expire once broken.
They act as S/R levels created by market imbalance caused by divergence reactions.
  
 Dynamic Zone Extension Logic: 
Once plotted, divergence levels will extend to the right:
— If price respects the level, the zone keeps growing
— If broken in the opposite direction, the level stops extending and turns dashed (visually showing break)
  
 Zone Layering and Limit Control: 
You can limit the number of simultaneous zones shown on the chart (e.g., 10 most recent).
Old zones automatically expire and are removed to keep the chart clean and focused.
  
 Color Customization and Intensity: 
Different colors for bullish and bearish zones let you easily distinguish trend direction.
Background fill, line width, and transparency are all adjustable.
 Clean Zone Management with Arrays: 
Behind the scenes, the script uses custom divLevel type arrays to manage plotted levels, ensuring they stay up-to-date, extend correctly, and delete once invalidated.
 
 ⯁ USAGE 
 
  Use bullish divergence zones as potential demand areas and bearish ones as supply zones.
  Combine RSI pane labels with price-level zones to confirm strength of reversal.
  Watch for price approaching a divergence level to anticipate reactions or breakouts.
  Use divergence levels as trade triggers, stop-loss guides, or take-profit markers.
  Limit signal count using the “Qty Divergence Zones” setting to reduce chart clutter.
  Enable divergence detection only when you want to focus on key structural zones — ideal for swing or positional setups.
 
 ⯁ CONCLUSION 
 RSI Momentum Divergence Zones   blends oscillator divergence logic with price action structure to uncover hidden strength or weakness in the market. With flexible zone plotting and clean visual signals, this tool empowers traders to identify where momentum turns into structure — turning hidden signals into tradable edges.
RSI Slope RibbonThe RSI Slope Ribbon is an advanced momentum indicator designed to visually highlight shifts in market momentum by comparing the slopes of two RSI calculations: a fast RSI and a slow RSI. Unlike standard RSI indicators that track price strength, this script focuses on the rate of change (slope) of these RSI values, offering a dynamic way to identify evolving market trends earlier.
Key Features:
Dual RSI Periods: Calculates both a short-term (fast) and a long-term (slow) RSI, allowing users to see momentum shifts across different timeframes.
Slope Calculation with SWMA Smoothing: Instead of raw RSI values, the indicator derives the slope of each RSI (current minus previous value) and smooths these slopes using a Symmetrically Weighted Moving Average to reduce noise and volatility spikes.
Oscillator Normalization: Slopes are normalized over a configurable lookback window, making comparisons intuitive and visually consistent regardless of market conditions.
Ribbon Visualization: A colored ribbon fills the area between the normalized fast and slow RSI slopes:
Green when short-term momentum exceeds long-term momentum (suggesting bullish conditions).
Red when short-term momentum lags behind long-term momentum (indicating bearish conditions).
Critical Levels: Horizontal lines marking overbought (80), oversold (20), and neutral (50) zones aid traders in judging the strength and extremes of momentum shifts.
Usage and Interpretation:
The crossover of the fast slope above the slow slope signals a potential bullish momentum shift.
Conversely, a fast slope crossing below the slow slope may indicate bearish momentum onset.
The normalized scale lets traders quickly assess whether momentum changes occur near critical overbought or oversold thresholds.
Adjustable input parameters (RSI lengths, smoothing period, normalization window, and price type) enable customization suited for various assets and trading styles.
RSI Multi-Timeframe Dashboard by giua64)### Summary
This is an advanced dashboard that provides a comprehensive overview of market strength and momentum, based on the Relative Strength Index (RSI) analyzed across 6 different timeframes simultaneously (from 5 minutes to the daily chart).
The purpose of this script is to offer traders an immediate and easy-to-read summary of market conditions, helping to identify the prevailing trend direction, overbought/oversold levels, and potential reversals through divergence detection. All of this is available in a single panel, eliminating the need to switch timeframes on your main chart.
### Key Features
* **Multi-Timeframe Analysis:** Simultaneously monitors the 5m, 15m, 30m, 1H, 4H, and Daily timeframes.
* **Scoring System:** Each timeframe is assigned a score based on multiple RSI conditions (e.g., above/below 50, overbought/oversold status, direction) to quantify bullish or bearish strength.
* **Aggregated Signal:** The dashboard calculates a total percentage score and provides a clear summary signal: **LONG**, **SHORT**, or **WAIT**.
* **Divergence Detection:** Automatically identifies Bullish and Bearish divergences between price and RSI for each timeframe.
* **Non-Repainting Option:** In the settings, you can choose to base calculations on the close of the previous candle (`Use RSI on Closed Candle`). This ensures that past signals (like status and score) do not change, providing more reliable data for analysis.
* **Fully Customizable:** Users can modify the RSI period, overbought/oversold thresholds, divergence detection settings, and the appearance of the table.
### How to Read the Dashboard
The table consists of 6 columns, each providing specific information:
* **% (Total Score):**
* **Header:** Shows the overall strength as a percentage. A positive value indicates bullish momentum, while a negative value indicates bearish momentum. The background color changes based on intensity.
* **Rows:** Displays the numerical score for the individual timeframe.
* **RSI:**
* **Header:** The background color indicates the average of all RSI values. Green if the average is > 50, Red if < 50.
* **Rows:** Shows the real-time RSI value for that timeframe.
* **Signal (Status):**
* **Header:** This is the final operational signal. It turns **🟢 LONG** when bullish strength is high, **🔴 SHORT** when bearish strength is high, and **⚪ WAIT** in neutral conditions.
* **Rows:** Describes the RSI status for that timeframe (e.g., Bullish, Bearish, Overbought, Oversold).
* **Dir (Direction):**
* **Header:** Displays an arrow representing the majority direction across all timeframes.
* **Rows:** Shows the instantaneous direction of the RSI (↗️ for rising, ↘️ for falling).
* **Diverg (Divergence):**
* Indicates if a bullish (`🟢 Bull`) or bearish (`🔴 Bear`) divergence has been detected on that timeframe.
* **TF (Timeframe):**
* Indicates the reference timeframe for that row.
### Advantages and Practical Use
This tool was created to solve a common problem: the need to analyze multiple charts to understand the bigger picture. With this dashboard, you can:
1. **Confirm a Trend:** A predominance of green and a "LONG" signal provides strong confirmation of bullish sentiment.
2. **Identify Weakness:** Red signals on higher timeframes can warn of an impending loss of momentum.
3. **Spot Turning Points:** A divergence on a major timeframe can signal an excellent reversal opportunity.
### Originality and Acknowledgements
This script is an original work, written from scratch by giua64. The idea was to create a comprehensive and visually intuitive tool for RSI analysis.
Any feedback, comments, or suggestions to improve the script are welcome!
**Disclaimer:** This is a technical analysis tool and should not be considered financial advice. Always do your own research and backtest any tool before using it in a live trading environment.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
giua64
borsamercati.it – Educational tools by giua64
Anche su:
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
RSI-Adaptive T3 [ChartPrime]The  RSI-Adaptive T3  is a precision trend-following tool built around the legendary  T3 smoothing algorithm  developed by  Tim Tillson , designed to enhance responsiveness while reducing lag compared to traditional moving averages. Current implementation takes it a step further by dynamically adapting the smoothing length based on real-time RSI conditions — allowing the T3 to “breathe” with market volatility. This dynamic length makes the curve faster in trending moves and smoother during consolidations.
To help traders visualize volatility and directional momentum, adaptive volatility bands are plotted around the T3 line, with visual crossover markers and a dynamic info panel on the chart. It’s ideal for identifying trend shifts, spotting momentum surges, and adapting strategy execution to the pace of the market.
 HOIW IT WORKS 
At its core, this indicator fuses two ideas:
 
 The  T3 Moving Average  — a 6-stage recursively smoothed exponential average created by  Tim Tillson , designed to reduce lag without sacrificing smoothness. It uses a volume factor to control curvature.
 A  Dynamic Length Engine  — powered by the RSI. When RSI is low (market oversold), the T3 becomes shorter and more reactive. When RSI is high (overbought), the T3 becomes longer and smoother. This creates a feedback loop between price momentum and trend sensitivity.
 
// Step 1: Adaptive length via RSI
rsi = ta.rsi(src, rsiLen)
rsi_scale = 1 - rsi / 100
len = math.round(minLen + (maxLen - minLen) * rsi_scale)
pine_ema(src, length) =>
    alpha = 2 / (length + 1)
    sum = 0.0
    sum := na(sum ) ? src : alpha * src + (1 - alpha) * nz(sum )
    sum
// Step 2: T3 with adaptive length
e1 = pine_ema(src, len)
e2 = pine_ema(e1, len)
e3 = pine_ema(e2, len)
e4 = pine_ema(e3, len)
e5 = pine_ema(e4, len)
e6 = pine_ema(e5, len)
c1 = -v * v * v
c2 = 3 * v * v + 3 * v * v * v
c3 = -6 * v * v - 3 * v - 3 * v * v * v
c4 = 1 + 3 * v + v * v * v + 3 * v * v
t3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3
 
 
The result: an evolving trend line that adapts to market tempo in real-time.
 KEY FEATURES 
 ⯁ RSI-Based Adaptive Smoothing 
 
 The length of the T3 calculation dynamically adjusts between a  Min Length  and  Max Length , based on the current RSI.
 When RSI is low → the T3 shortens, tracking reversals faster.
 When RSI is high → the T3 stretches, filtering out noise during euphoria phases.
 Displayed length is shown in a floating table, colored on a gradient between min/max values.
 
 ⯁ T3 Calculation (Tim Tillson Method) 
 
 The script uses a 6-stage EMA cascade with a customizable  Volume Factor (v) , as designed by  Tillson (1998) .
 Formula:
 
T3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3
 
 This technique gives smoother yet faster curves than EMAs or DEMA/Triple EMA.
 
 ⯁ Visual Trend Direction & Transitions 
 
 The T3 line changes color dynamically:
 Color Up (default: blue) → bullish curvature
 Color Down (default: orange) → bearish curvature
 Plot fill between T3 and delayed T3 creates a gradient ribbon to show momentum expansion/contraction.
 Directional shift markers (“🞛”) are plotted when T3 crosses its own delayed value — helping traders spot trend flips or pullback entries.
  
 
 ⯁ Adaptive Volatility Bands 
 
 Optional upper/lower bands are plotted around the T3 line using a user-defined  volatility window  (default: 100).
 Bands widen when volatility rises, and contract during compression — similar to Bollinger logic but centered on the adaptive T3.
 Shaded band zones help frame breakout setups or mean-reversion zones.
  
 
 ⯁ Dynamic Info Table 
 
 A live stats panel shows:
 Current adaptive length
 Maximum smoothing (▲ MaxLen)
 Minimum smoothing (▼ MinLen)
 All values update in real time and are color-coded to match trend direction.
  
 
 HOW TO USE 
 
 Use T3 crossovers  to detect trend transitions, especially during periods of volatility compression.
 Watch for volatility contraction in the bands  — breakouts from narrow band periods often precede trend bursts.
  
 The  adaptive smoothing length  can also be used to assess current market tempo — tighter = faster; wider = slower.
 
 CONCLUSION 
 RSI-Adaptive T3   modernizes one of the most elegant smoothing algorithms in technical analysis with intelligent RSI responsiveness and built-in volatility bands. It gives traders a cleaner read on trend health, directional shifts, and expansion dynamics — all in a visually efficient package. Perfect for scalpers, swing traders, and algorithmic modelers alike, it delivers advanced logic in a plug-and-play format.
RSI Hybrid ProfileThis is a Hybrid Script designed on the basis of a well know Indicator RSI - Relative strength Index, ATR, Standard Deviations and Medians. Effort is being made to present RSI in a Profile based concept to leverage and elevate trading signals and identify potential trade while effectively managing the RISK.
Trend Colour Coding :-
Green = Bullish
Red = Bearish
Gray = Mean Reversion/ Rangebound Markets
The script includes the following Elements
1) Candlestick chart of RSI of current time frame in lower pane :-
It helps to effectively compare the price action with that of RSI to clearly identify early breakouts or breakdowns in RSI as compared to price chart and identify early trade opportunities as well as Divergences
2) Higher Time Frame RSI :-
The orange line in the lower pane to help take analysis of Higher Timeframe, to evaluate and assess trend in more refined manner.
3) Point of Control Zone :-
The middle horizontal band with colour coding to highlight the Point of Control of the price action based on its relative strength.
4) Black Circles - POC Change Markers - RSI profile Value area Shifts :-
All the Black Circles plotted on chart are RSI Point of Controls, which signal upcoming Trend and should be closely watched as it can help identify wonderful Entry/Exit Opportunities.
  
5) Value Area :-
The horizontal lines above and below the POC Zones are the Value areas, they are extremely useful to identify the potential support/resistance zones during the trending markets and potential target zones during the mean reverting markets. The width also helps assess the underlying volatility and risk and can help in determining the position size based on it. The setting can be adjusted based on Value area Range Multiplier. 1 is the ideal setting as it represents 1 Standard Deviation of Data.
  
6) Trailing Stops :-
The Green Trailing line helps as trailing stoploss in buying positions and Red Trailing Line helps as trailing SL in Selling Positions. These are especially useful when price is far away from the value area zones or when volatility is very high. The setting can be adjusted based on trail multiplier in the settings.
  
Here are the few examples of how to use the script on different asset classes
1) Gold Futures - Exhibiting the use of trend and SL and how to change positions based on retracement and RSI Interpretation.
  
2)Nifty 50 - Exhibiting the importance of POC , RSI Divergence and Breakout and SL Trail and POC Change Markers
  
3) Bitcoin/US Dollar - Showing the use of Value areas as support zones and using RSI overbought and oversold regions to manage pullbacks and retracement confirmations.
  
4) JSW Energy Limited - Stock - Showing the combined use of the scripts elements in trading environment.
  
Feel Free to use it on Charts and leverage the power of this wonderful Indicator.
RSI + Composite RSI with Regular & Hidden Divergences📌 Description (for TradingView Public Publishing):
RSI Composite Pro is a reimagined version of the classic RSI indicator, enhanced with deeper insights. This tool displays both the standard RSI of the current asset and a normalized RSI derived from a reference index (e.g., XU100, NDX, SPX), all on the same panel.
By default, the composite RSI source is automatically selected based on the exchange you're viewing (e.g., BIST → XU100, NASDAQ → NDX, NYSE → SPX). However, users can also manually input any symbol through the settings panel.
Additionally, you can apply smoothing filters such as SMA, EMA, or Bollinger Bands to both RSI lines.
The script also detects regular and hidden divergences on RSI, helping to identify potential trend reversal points.
Key Features:
Dual RSI view: asset RSI vs. composite market RSI
Auto or manual selection of composite RSI source
Supports MA smoothing and Bollinger Band overlays
Automatic detection of regular & hidden divergences
Clean and customizable visualization on a single chart
This indicator is flexible and can be tailored to your trading style, suitable for both short-term trading and trend analysis.
RSI Oversold ScannerPine Script Description for TradingView Publication
Title: RSI Oversold Scanner (1m, 5m, 15m)
Description:
The RSI Oversold Scanner is a powerful tool designed to identify stocks that are simultaneously oversold on the 1-minute, 5-minute, and 15-minute timeframes, based on the Relative Strength Index (RSI). This script is ideal for traders seeking short-term reversal or momentum opportunities across multiple intraday timeframes.
Key Features:
Multi-Timeframe RSI Analysis: Calculates RSI (default length: 14) on the 1m, 5m, and 15m timeframes and checks if all are below the oversold threshold (default: 30).
Visual Output: Displays a table in the top-right corner showing RSI values and oversold status ("Yes" or "No") for each timeframe, making it easy to verify conditions.
Scan Result: Plots a value of 1 when all three timeframes are oversold, or 0 otherwise, enabling quick identification of matching stocks.
Alert Support: Includes an alert condition that triggers when a stock is oversold on all timeframes, with a customizable message for real-time notifications.
User-Friendly: Built with Pine Script v6 for compatibility and reliability, with clear visual feedback for traders of all levels.
How It Works:
The script uses ta.rsi to compute RSI on the current chart’s timeframe (1m) and request.security to fetch RSI data for the 5m and 15m timeframes.
It checks if RSI is below the oversold level (default: 30) on all three timeframes.
A table displays the RSI values and oversold status for easy debugging.
The Scan Result plot (1 or 0) indicates whether the stock meets the oversold criteria, which can be used for manual scanning or alerts.
Usage Instructions:
Add the script to your chart via Pine Editor.
Use a watchlist to switch between stocks and check the table or Scan Result for oversold conditions.
Set alerts by selecting the script’s Scan Result condition (value = 1) to get notified when a stock is oversold on all timeframes.
Customize the RSI length or oversold level in the script’s code if needed (e.g., change rsiLength or oversoldLevel).
Notes:
Best used on intraday charts (e.g., 1m or higher) with a watchlist for manual scanning, as TradingView’s Stock Screener does not directly support custom Pine Scripts.
Real-time alerts and intraday data may require a TradingView paid plan.
The script uses only two request.security calls, staying well within Pine Script’s limits.
Ideal For:
Day traders and swing traders looking for oversold stocks across multiple intraday timeframes.
Users who want to combine technical analysis with visual and alert-based confirmation.
RSI Classic calculationClassic RSI with Moving Average
This script implements the Classic RSI (Relative Strength Index) method with the option to use either an Exponential Moving Average (EMA) or a Simple Moving Average (SMA) for smoothing the gains and losses. This custom implementation primarily aims to resolve a specific issue I encountered when cross-referencing RSI values with Python-based data, which is calculated differently than in Pine Script. However, the methodology here can benefit anyone who needs to align RSI calculations across different programming languages or platforms.
The Problem:
When working with Python for data analysis, the RSI values are calculated differently. The smoothing method, for example, can vary—RMA (Relative Moving Average) may be used instead of SMA or EMA, resulting in discrepancies when comparing RSI values across systems. To solve this problem, this script allows for the same type of smoothing to be applied (EMA or SMA) as used in Python, ensuring consistency in the data.
Why This Implementation:
The main goal of this approach was to align RSI calculations across Python and Pine Script so that I could cross-check the results accurately. By offering both EMA and SMA options, this script bridges the gap between Pine Script and Python, ensuring that the data is comparable and consistent. While this particular issue arose from my work with Python, this solution is valuable for anyone dealing with cross-platform RSI comparisons in different coding languages or systems.
Benefits:
Cross-Platform Consistency: This script ensures that RSI values calculated in Pine Script are directly comparable to those from Python (or any other platform), which is crucial for accurate analysis, especially in automated trading systems.
Flexibility: The ability to choose between EMA and SMA provides flexibility in line with the specific needs of your strategy or data source.
Ease of Use: The RSI is plotted with overbought and oversold levels clearly marked, making it easy to visualize and use in decision-making processes.
Limitations:
Calculation Differences: While this script bridges the gap between Pine Script and Python, if you're working with a different platform or coding language that uses variations like RMA, small discrepancies may still arise.
Sensitivity Trade-Off: The choice between EMA and SMA impacts the sensitivity of the RSI. EMA responds quicker to recent price changes, which could lead to faster signals, while SMA provides a more stable but slower response.
 Conclusion:
 This Classic RSI script, with its customizable moving average type (EMA or SMA), not only solves the issue I faced with Python-based calculations but also provides a solution for anyone needing consistency across different programming languages and platforms. Whether you're working with Pine Script, Python, or other languages, this script ensures that your RSI values are aligned for more accurate cross-platform analysis. However, always be mindful of the small differences that can arise when different smoothing techniques (like RMA) are used in other systems.
RSI of Accumulation/DistributionHow to Use the RSI of Accumulation/Distribution Indicator:
1. Identify Overbought/Oversold Conditions:
Overbought: When the RSI of the ADL is above 70, it indicates that the asset may be overbought and could be due for a pullback or correction.
Oversold: When the RSI of the ADL is below 30, it suggests that the asset may be oversold and could be poised for a rebound.
2. Look for Divergences:
Bullish Divergence: If the price is making lower lows while the RSI of the ADL is making higher lows, it can signal a potential reversal to the upside.
Bearish Divergence: If the price is making higher highs while the RSI of the ADL is making lower highs, it can indicate a potential reversal to the downside.
3. Confirm Trend Strength:
Use the RSI of the ADL to confirm the strength of a trend. For example, if the RSI is consistently above 50 during an uptrend, it suggests strong buying pressure and the trend is likely to continue.
Conversely, if the RSI is consistently below 50 during a downtrend, it indicates strong selling pressure and the trend is likely to persist.
4. Monitor for Reversals:
When the RSI of the ADL crosses above 50, it can signal a potential bullish reversal.
When the RSI of the ADL crosses below 50, it can signal a potential bearish reversal.
Is It Worth It?
The RSI of the Accumulation/Distribution Line can be a valuable tool for traders looking to gain insights into market momentum and trend strength. Here are a few reasons why it might be worth considering:
1. Volume and Price Combination: By combining price action (RSI) with volume-based analysis (ADL), this indicator provides a more comprehensive view of market dynamics.
2. Divergence Detection: It helps identify divergences between price and volume, which can be early signals of potential reversals.
3. Trend Confirmation: It offers additional confirmation of trend strength and potential reversal points, helping traders make more informed decisions.
However, like any indicator, it's important to use it in conjunction with other analysis methods and not rely on it solely for trading decisions. Backtesting the indicator on historical data and combining it with other technical analysis tools can improve its effectiveness.
Feel free to test the script in TradingView and see how it performs in different market conditions. If you have any specific questions or need further assistance, let me know! 😊
RSI OB/OS Strategy Analyzer█  OVERVIEW 
The  RSI OB/OS Strategy Analyzer  is a comprehensive trading tool designed to help traders identify and evaluate overbought/oversold reversal opportunities using the Relative Strength Index (RSI). It provides visual signals, performance metrics, and a detailed table to analyze the effectiveness of RSI-based strategies over a user-defined lookback period.
█  KEY FEATURES 
 RSI Calculation 
 
 Calculates RSI with customizable period (default 14)
 Plots dynamic overbought (70) and oversold (30) levels
 Adds background coloring for OB/OS regions
 
 Reversal Signals 
 
 Identifies signals based on RSI crossing OB/OS levels
 Two entry strategies available:
   
   Revert Cross:  Triggers when RSI exits OB/OS zone
   Cross Threshold:  Triggers when RSI enters OB/OS zone
   
 
 Trade Direction 
 
 Users can select a trade bias:
   
   Long:  Focuses on oversold reversals (bullish signals)
   Short:  Focuses on overbought reversals (bearish signals)
   
 
 Performance Metrics 
 
 Calculates three key statistics for each lookback period:
   
   Win Rate:  Percentage of profitable trades
   Mean Return:  Average return across all trades
   Median Return:  Median return across all trades
   
 Metrics calculated as percentage changes from entry price
 
 Visual Signals 
 
 Dual-layer signal display:
   
   BUY:  Green triangles + text labels below price
   SELL:  Red triangles + text labels above price
   
 Semi-transparent background highlighting in OB/OS zones
 
 Performance Table 
 
 Interactive table showing metrics for each lookback period
 Color-coded visualization:
   
   Win Rate: Gradient from red (low) to green (high)
   Returns: Green for positive, red for negative
   
 
 Time Filtering 
 
 Users can define a specific time window for the indicator to analyze trades, ensuring that performance metrics are calculated only for the desired period.
 
 Customizable Display 
 
 Adjustable table font sizes: Auto/Small/Normal/Large
 Toggle option for table visibility
 
█  PURPOSE 
The  RSI OB/OS Strategy Analyzer  helps traders:
 
 Identify mean-reversion opportunities through RSI extremes
 Backtest entry strategy effectiveness across multiple time horizons
 Optimize trade timing through visual historical performance data
 Quickly assess strategy robustness with color-coded metrics
 
█  IDEAL USERS 
 
 Counter-Trend Traders:  Looking to capitalize on RSI extremes
 Systematic Traders:  Needing quantitative strategy validation
 Educational Users:  Studying RSI behavior in different market conditions
 Multi-Timeframe Analysts:  Interested in forward returns analysis
RSI - EMA - WMA ( Phat-Truong )Indicator: RSI ( EMA - WMA )
This indicator, named "RSI ( EMA - WMA )", is a versatile tool designed to provide insights into market momentum and trend strength by combining multiple technical indicators.
The Relative Strength Index (RSI) is a popular momentum oscillator used to measure the speed and change of price movements. In this indicator, RSI is plotted alongside its Exponential Moving Average (EMA) and Weighted Moving Average (WMA). EMA and WMA are smoothing techniques applied to RSI to help identify trends more clearly.
Key features of this indicator include:
RSI: The main RSI line is plotted on the chart, offering insights into overbought and oversold conditions.
EMA of RSI: The Exponential Moving Average of RSI smooths out short-term fluctuations, aiding in trend identification.
WMA of RSI: The Weighted Moving Average of RSI gives more weight to recent data points, providing a faster response to price changes.
Additionally, this indicator marks specific RSI levels considered as bullish and bearish trends, helping traders identify potential entry or exit points based on market sentiment.
By combining these technical indicators, traders can gain a comprehensive understanding of market dynamics, helping them make more informed trading decisions.
RSI/MFI Divergence Finder [idahodev]Monitoring RSI (Relative Strength Index) and MFI (Money Flow Index) divergences on a stock or index chart offers several benefits to traders and analysts. Let's break down the advantages:
 
 Comprehensive Market View: Combining both indicators provides a more complete picture of market conditions, as they measure different aspects of price movement. RSI focuses on recent gains/losses relative to price change, while MFI incorporates volume data to assess money flow in and out of a security.
 Enhanced Signal Accuracy: When divergences occur simultaneously in both RSI and MFI, it may be considered a stronger signal than if only one indicator showed divergence. This can potentially lead to more reliable trading decisions.
 Identification of False Breakouts: Divergences between these indicators and price action can help identify false breakouts or misleading price movements that are not supported by underlying market strength or volume.
 More Nuanced Market Understanding: By examining divergent behavior between money flow (MFI) and momentum (RSI), traders gain a more detailed comprehension of the interplay between these factors in shaping market trends.
 Early Warning Signs: These divergences can act as early warning signs for potential trend reversals or changes in market sentiment, allowing traders to adjust their strategies proactively.
 
 It's important to note that RSI/MFI divergences should be used as part of a broader trading strategy rather than solely relying on them for buy/sell signals.  They can serve as valuable tools for confirming trends, identifying potential turning points, or warning against overbought/oversold conditions.
When using these indicators together, traders must  be cautious of false signals, especially in choppy markets or during periods of high volatility.  It's crucial to combine this analysis with other technical and fundamental factors before making trading decisions.
In summary, monitoring RSI/MFI divergences  may  offer a way to gain insights into the underlying strengths and weaknesses of market movements.
This utility differs from other in that it allows for a choke/threshold/sensitivity setting to help weed out noisy signals. This needs to be carefully adjusted per chart.
It also allows for tuning of the MFI smoothing length (number of bars on the current chart) as well as how many previous bars it will take into consideration when calculating RSI and MFI divergences. It will signal when it sees alignment forming between RSI and MFI divergences in a direction.  You will likely need to tune this script's settings every few days or at least anytime there is a change in overall market behavior or sustained volatility. 
Ultimately, the goal with this script is to provide an additional level of confirmation of weakness or strength. It should be combined with other indicators such as exhaustion, pivots, supply/demand, trendline breaks or tests, and structure changes, to name a few complementary tools or strategies.  It's not meant to be a standalone buy/sell signal indicator! 
Here are some settings for futures that may help you get started:
 ES (4m chart) 
 
 RSI Length: 26
 MFI Length: 8
 MFI Smoothing Length: 32
 Divergence Sensitivity: 124
 Left Bars for Pivot: 10
 Right Bars for Pivot: 1
 
NQ (4m chart)
 
 RSI Length: 14
 MFI Length: 14
 MFI Smoothing Length: 21
 Divergence Sensitivity: 400
 Left Bars for Pivot: 21
 Right Bars for Pivot: 1
 
YM (4m chart)
 
 RSI Length: 14
 MFI Length: 14
 MFI Smoothing Length: 21
 Divergence Sensitivity: 810
 Left Bars for Pivot: 33
 Right Bars for Pivot: 1
RSI Fakeout Filter with SMA Confirmation [CHE]  Introducing: RSI Fakeout Detection  
Are you tired of being caught in fakeouts that can lead to frustrating losses? The RSI Fakeout Detection   is here to enhance your trading strategy by filtering out false signals and providing you with more reliable entries. This innovative indicator is designed to help traders identify when market momentum, as indicated by the RSI, does not align with price movement – a key indicator of potential fakeouts!
  What Does It Do? 
The RSI Fakeout Detection focuses on one key goal: avoiding false signals. By monitoring when the RSI exceeds a customizable threshold (indicating strength) but the price remains below a moving average like the SMA, this indicator highlights situations where the market may seem strong, but the price action doesn't support that momentum. In other words, it saves you from those tricky fake breakouts.
  Key Benefits: 
1. Reduce Risk, Increase Confidence: Get an extra layer of protection against fakeouts by receiving signals only when both RSI and price confirm the market's true direction. Avoid entering false breakouts and trade with more confidence.
   
2. Dynamic Analysis of SMA Lengths: It doesn’t just rely on one SMA. The indicator automatically analyzes and sorts through different SMA lengths to find the most reliable one for your specific market condition, ensuring that you get the best possible signal.
3. Tailored for You: With customizable RSI thresholds, a choice of multiple moving average types (SMA, EMA, Bollinger Bands, and more), and vibrant color-coded visuals, this tool is built to fit your unique trading style and preferences.
4. Spot Fakeouts with Ease: Visual cues make it easy to see when the market might be tricking you. Labels, plotted lines, and a toggleable disclaimer keep everything transparent and easy to understand.
5. Friendly and Intuitive: Whether you’re new to trading or a seasoned pro, the RSI Fakeout Detection is designed to be simple and effective. The labels and plots are clear, the alerts are timely, and it seamlessly integrates into your chart without cluttering it.
 Why Choose RSI Fakeout Detection?
- Accuracy and Precision: By combining RSI and SMA analysis, this indicator minimizes the risk of following false trends and entering trades too early.
- Save Time and Reduce Guesswork: No more spending hours trying to figure out which SMA length works best – the RSI Fakeout Detection does it for you!
- Peace of Mind: Avoiding fakeouts means fewer bad trades, which can lead to more consistent performance and less stress.
Transform the way you trade, and step into a more confident trading future with RSI Fakeout Detection  . Whether you’re day trading or swing trading, this tool will give you an edge by helping you filter out the noise and make more informed decisions.
Best regards,  
Chervolino
 Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
RSI & ADX [deepakks444]This Pine Script is designed to provide a comprehensive view of market conditions by combining the Relative Strength Index (RSI) and the Average Directional Index (ADX) indicators. The script offers a range of customizable features to help traders analyze trends, identify overbought and oversold conditions, and make informed trading decisions.
Key Features:
RSI and ADX Calculation:
The script calculates the RSI and ADX values based on user-defined lengths.
The RSI indicator helps identify overbought and oversold conditions.
The ADX indicator measures the strength of the trend.
Trend Identification:
The script uses the Directional Movement Index (DMI) to determine bullish and bearish trends.
It highlights strong trends by changing the background color.
Customizable Colors:
Users can choose to color candles based on ADX or RSI values.
The RSI line can be displayed in a single color or change color based on its value.
Overbought and Oversold Zones:
The script visually represents overbought and oversold zones with fading color effects.
This helps traders quickly identify potential reversal points.
Dynamic Midline:
The midline (50) of the RSI changes color based on the trend direction, providing additional visual cues.
Side Panel for ADX and RSI Values:
A side panel displays the current RSI and ADX values with color-coded boxes for easy reference.
Customizable Parameters:
Users can adjust various parameters such as RSI length, ADX length, ADX threshold, and levels for overbought and oversold zones.
Usage:
Trend Analysis: Use the ADX and DMI to identify strong trends and their direction.
Overbought/Oversold Conditions: Monitor the RSI to spot potential reversal points.
Visual Aids: Utilize the color-coded candles, background, and fading zones to quickly assess market conditions.
This script is designed to be user-friendly and highly customizable, allowing traders to tailor the indicators to their specific trading strategies and preferences. By combining the strengths of RSI and ADX, this script provides a powerful tool for technical analysis.
RSI Momentum [CrossTrade]The RSI Momentum indicator generates buy and sell signals based on the Relative Strength Index (RSI) crossing specific thresholds. The Key difference is that we're using RSI overbought and oversold readings as the foundation for finding continuation signals in the same direction of that momentum. This solves the issue of trying to buy the bottom or sell the top and offsets any oscillators main weakness, divergence and false signals in a strong trend.
 Key Parameters: 
RSI Length: Determines the calculation period for the RSI.
Overbought Threshold: The RSI level above which the asset is considered overbought.
Momentum Loss Threshold for Buy: The RSI level below which a loss in upward momentum is indicated, triggering a potential buy signal.
Oversold Threshold: The RSI level below which the asset is considered oversold.
Momentum Loss Threshold for Sell: The RSI level above which a loss in downward momentum is indicated, triggering a potential sell signal.
Allow Additional Retracement Signals: A toggle to allow more than one signal within a certain number of bars after the first signal.
Max Additional Signals: The maximum number of additional signals allowed after the first signal.
 Buy Signal Logic: 
Initial Signal: Generated when the RSI first exceeds the overbought threshold and then falls below the momentum loss buy threshold. Defaults are 70 for the overbought threshold and 60 for the retracement level.
Additional Signals for Deeper Retracements: If enabled, the script shows additional buy signals within the maximum limit set by Max Additional Signals. These additional signals are shown only if each new signal's bar has a lower low than the previous signal's bar.
 Sell Signal Logic: 
Initial Signal: Similar to the buy signal, a sell signal is generated when the RSI first drops below the oversold threshold and then rises above the momentum loss sell threshold. Defaults are 30 for the oversold threshold and 40 for the retracement level.
Additional Signals for Deeper Retracements: If enabled, additional sell signals are shown, limited by Max Additional Signals, and only if each new signal's bar has a higher high than the previous signal's bar.
 Continuation Signals in Strong Trends: 
The script allows for a new series of signals (starting with the first signal again) when the RSI pattern repeats. For buy signals, this means going above the overbought and then below the momentum loss buy threshold. For sell signals, it's dropping below oversold and then above the momentum loss sell threshold.
 Alerts: 
The script includes alert conditions for both buy and sell signals, which can be configured in the TradingView alerts.
RSI Slope Filtered Signals [UAlgo]The "RSI Slope Filtered Signals  " is a technical analysis tool designed to enhance the accuracy of RSI (Relative Strength Index) signals by incorporating slope analysis. This indicator not only considers the RSI value but also analyzes the slope of the RSI over a specified number of bars, providing a more refined signal that accounts for the momentum and trend strength. By utilizing both positive and negative slope arrays, the indicator dynamically adjusts its thresholds, ensuring that signals are responsive to changing market conditions. This tool is particularly useful for traders looking to identify overbought and oversold conditions with a higher degree of precision, filtering out noise and providing clear visual cues for potential market reversals.
  
 🔶 Key Features 
 Dynamic Slope Analysis:  Measures the slope of RSI over a customizable number of bars, offering insights into the momentum and trend direction.
 Adaptive Thresholds:  Uses historical slope data to calculate dynamic thresholds, adjusting signal sensitivity based on market conditions.
 Normalized Slope Calculation:  Normalizes the slope values to provide a consistent measure across different market conditions, making the indicator more versatile.
 Clear Signal Visualization:  The indicator plots both positive and negative normalized slopes with color gradients, visually representing the strength of the trend.
 Overbought and Oversold Signals:  Plots overbought and oversold signals directly on the chart when the calculated value reaches the user-specified threshold, helping traders identify potential reversal points.
 Customizable Settings:  Allows users to adjust the RSI length, slope measurement bars, and lookback periods, providing flexibility to tailor the indicator to different trading strategies.
 🔶 Interpreting the Indicator 
The "RSI Slope Filtered Signals  " indicator is designed to be easy to interpret. Here's how you can use it:
 Normalized Slope:  The indicator plots the normalized slope of the RSI, with values above zero indicating positive momentum and values below zero indicating negative momentum. A higher positive slope suggests a strong upward trend, while a deeper negative slope indicates a strong downward trend.
 Reversal Signals:  The indicator plots several horizontal lines at different thresholds (+3, +2, +1, 0, -1, -2, -3). These levels are used to gauge the strength of the momentum based on the normalized slope. For example, a normalized slope crossing above the +2 threshold may indicate a strong bullish trend, while crossing below the -2 threshold may suggest a strong bearish trend. These thresholds help in understanding the intensity of the current trend and provide context for interpreting the indicator's signals. 
This indicator generates overbought and oversold signals not solely based on the RSI entering extreme levels (above 70 for overbought and below 30 for oversold), but also by considering the behavior of the normalized slope relative to specific thresholds. Specifically, the Overbought Signal (🔽) is triggered when the RSI is above 70 and the normalized slope from the previous bar is greater than or equal to the upper threshold, with the current slope being lower than the previous slope, indicating a potential bearish reversal as momentum may be slowing down. 
Similarly, the Oversold Signal (🔼) is generated when the RSI is below 30 and the normalized slope from the previous bar is less than or equal to the lower threshold, with the current slope being higher than the previous slope, signaling a potential bullish reversal as the downward momentum may be weakening.
  
  
 Area Plots:  The indicator also plots the positive and negative slopes as filled areas, providing a quick visual cue for the strength and direction of the trend. Green areas represent positive slopes (upward momentum), while red areas represent negative slopes (downward momentum).
  
By combining these elements, the "RSI Slope Filtered Signals  " provides a comprehensive view of the market's momentum, helping traders make more informed decisions by filtering out false signals and focusing on the significant trends.
 🔶 Disclaimer 
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
RSI EMA WMA (hieuhn)Indicator: RSI & EMA & WMA (14-9-45) 
This indicator, named "RSI & EMA & WMA", is a versatile tool designed to provide insights into market momentum and trend strength by combining multiple technical indicators.
The Relative Strength Index (RSI) is a popular momentum oscillator used to measure the speed and change of price movements. In this indicator, RSI is plotted alongside its Exponential Moving Average (EMA) and Weighted Moving Average (WMA). EMA and WMA are smoothing techniques applied to RSI to help identify trends more clearly.
Key features of this indicator include:
RSI: The main RSI line is plotted on the chart, offering insights into overbought and oversold conditions.
EMA of RSI: The Exponential Moving Average of RSI smooths out short-term fluctuations, aiding in trend identification.
WMA of RSI: The Weighted Moving Average of RSI gives more weight to recent data points, providing a faster response to price changes.
Additionally, this indicator marks specific RSI levels considered as bullish and bearish trends, helping traders identify potential entry or exit points based on market sentiment.
By combining these technical indicators, traders can gain a comprehensive understanding of market dynamics, helping them make more informed trading decisions.
RSI Volatility Bands [QuantraSystems]RSI Volatility Bands 
 Introduction 
The RSI Volatility Bands indicator introduces a unique approach to market analysis by combining the traditional Relative Strength Index (RSI) with dynamic, volatility adjusted deviation bands. It is designed to provide a highly customizable method of trend analysis, enabling investors to analyze potential entry and exit points in a new and profound way. 
The deviation bands are calculated and drawn in a manner which allows investors to view them as areas of dynamic support and resistance.
    
 Legend 
 
 Upper and Lower Bands  - A dynamic plot of the volatility-adjusted range around the current price.
 Signals  - Generated when the RSI volatility bands indicate a trend shift.
 
    
 Case Study 
 
 The chart highlights the occurrence of false signals, emphasizing the need for caution when the bands are contracted and market volatility is low.
 Juxtaposing this, during volatile market phases as shown, the indicator can effectively adapt to strong trends. This keeps an investor in a position even through a minor drawdown in order to exploit the entire price movement.
 
 Recommended Settings 
The RSI Volatility Bands are highly customisable and can be adapted to many assets with diverse behaviors.
The calibrations used in the above screenshots are as follows:
 
 Source = close
 RSI Length = 8
 RSI Smoothing MA = DEMA
 Bandwidth Type = DEMA
 Bandwidth Length = 24
 Bandwidth Smooth = 25
 
 Methodology 
 
 The indicator first calculates the RSI of the price data, and applies a custom moving average.
 The deviation bands are then calculated based upon the absolute difference between the RSI and its moving average - providing a unique volatility insight.
 The deviation bands are then adjusted with another smoothing function, providing clear visuals of the RSI’s trend within a volatility-adjusted context.
 
 
rsiVal    = ta.rsi(close, rsiLength)
rsiEma    = ma(rsiMA, rsiVal, bandLength)
bandwidth = ma(bandMA, math.abs(rsiVal - rsiEma), bandLength)
upperBand = ma(bandMA, rsiEma + bandwidth, smooth)
lowerBand = ma(bandMA, rsiEma - bandwidth, smooth)
long =      upperBand > 50 and not (lowerBand < lowerBand  and lowerBand < 50)
short= not (upperBand > 50 and not (lowerBand < lowerBand  and lowerBand < 50))
 
By dynamically adjusting to market conditions, the RSI trend bands offer a unique perspective on market trends, and reversal zones.
RSI Divergence AlertsIndicator Description: RSI Divergence Alerts
The RSI Divergence indicator is a technical analysis tool that identifies divergences between the Relative Strength Index (RSI) and the price of an asset. The RSI is a momentum indicator that measures the speed and magnitude of recent changes in an asset's price, while divergences occur when there is a disparity between price movements and the RSI.
Indicator Customization:
Overbought and Oversold: The indicator allows you to customize the overbought and oversold levels of the RSI. This allows traders to adjust parameters according to their preferences and the historical behavior of the asset in question.
Indicator Settings and Recommended Adjustments:
Max Bar Distance: This parameter determines the maximum distance allowed between two low or high points for a divergence to be recognized. A higher value may result in more signals, but may also increase the number of false signals. It is recommended to adjust this value based on the volatility of the asset and the time period in which it is being traded.
RSI Length: This is the time period used to calculate the RSI. A longer period smoothes the indicator, while a shorter period makes it more sensitive to price changes. The default value is 14, but traders can adjust it based on their trading strategy and the asset's volatility.
RSI Overbought and Oversold: These values determine the levels at which the RSI is considered overbought and oversold, respectively. The default value for overbought is 75 and for oversold is 35. Traders can adjust these values according to the asset's volatility and its historical analysis. For example, in more volatile assets, it may be useful to use more extreme levels, such as 80 for overbought and 20 for oversold.
When adjusting indicator settings, traders must consider the balance between sensitivity and accuracy. Careful tuning of these parameters can help filter out false signals and identify more reliable trading opportunities.
The alerts functionality in this RSI Divergence indicator is designed to notify traders when a bearish divergence or a bullish divergence is detected. Here's how it works:
Conditionally Triggered Alerts:
Alerts are triggered based on the boolean variables bearishDivergence and bullishDivergence.
If bearishDivergence is true, it indicates that a bearish divergence has been detected.
If bullishDivergence is true, it indicates that a bullish divergence has been detected.
Alert Message:
When a divergence is detected, an alert message is generated to inform the trader about the event.
The message includes details about the divergence, such as the difference in the RSI value between the two points forming the divergence.
For example, for a bearish divergence, the message will include the phrase "Bearish RSI Divergence Detected" and the RSI difference between the high and low points of the divergence.
Alert Frequency:
Alerts are configured to be triggered once per bar close (alert.freq_once_per_bar_close), which means the alert will only be sent once at the close of each bar.
This helps to avoid multiple alerts for the same divergence during the same time period.
Additional Alert Conditions:
In addition to conditionally triggered alert messages, alert conditions are defined for both bearish and bullish divergences.
These alert conditions are useful for configuring custom alerts on trading platforms that support running Pine Script code.
Overall, this alert functionality allows traders to stay informed about potential trading opportunities based on divergences detected by the indicator. This can help traders make faster and more informed decisions in their trading processes.
RSI+MA ALERTThis script is a custom indicator for use on the TradingView platform, which combines the Relative Strength Index (RSI) with a moving average applied to the RSI itself to smooth its movements and potentially identify trends or reversals more clearly.
The RSI is a momentum oscillator that measures the speed and variation of asset price movements. RSI values range from 0 to 100 and are generally considered overbought when above 70 and oversold when below 30. In our indicator, we adjust these levels to 80 and 20, respectively, to avoid premature or delayed signals. Furthermore, we have inserted customizable options within the script that allow the user to define their own overbought and oversold thresholds, thus improving compatibility with different strategies and market conditions.
The overbought metric means that the price may be at a point of downward reversal, while an oversold state may indicate an imminent upward reversal point. These levels are visualized as dotted horizontal lines on the indicator chart for guidance.
To capture the behavior of the RSI over time, we apply a simple moving average (SMA) to the RSI values, thereby smoothing the RSI graph and highlighting the broader trend of oscillator movement. This helps filter out the noise from smaller price movements and provides a clearer representation of trend momentum.
Regarding alerts, the indicator is programmed to send notifications when the RSI value crosses the defined overbought and oversold levels. This means that when the RSI drops below 20, the indicator triggers an oversold alert, while an RSI above 80 triggers an overbought alert. These levels, however, are user adjustable in code, allowing custom levels to be defined to match individual strategies.
Visually, the indicator plots two lines on the chart below the main price chart: a blue line for the RSI values and an orange line for the RSI moving average. The red (oversold - 20) and green (overbought - 80) horizontal lines delimit the critical levels, although these are also customizable. These are the fundamental features of this indicator that make it a useful tool for analyzing momentum and potentially identifying price reversals.
RSI MFI WPR Combo [The_lurker]The "RSI MFI WPR Combo" is a sophisticated trading indicator developed for the TradingView platform, which synergistically combines the insights of three renowned technical analysis tools: the Relative Strength Index (RSI), the Money Flow Index (MFI), and the Williams Percent Range (WPR). This indicator is meticulously designed to assist traders in identifying potential buying and selling opportunities through the nuanced interpretation of market momentum, volume, and price position relative to recent highs and lows.
Purpose
The primary objective of the "RSI MFI WPR Combo" indicator is to offer a comprehensive tool that leverages the combined power of RSI, MFI, and WPR to detect overbought and oversold conditions, signaling potential reversal points in the market. This multifaceted approach aims to provide traders with a more robust framework for making informed decisions, enhancing their trading strategy with a multi-indicator analysis.
Indicator Conditions Explained
The core of this indicator lies in its strategic conditions that signal potential entry and exit points:
Oversold Condition (condition): This is identified when the MFI and RSI are both below 30, and the WPR falls below -91, suggesting a strong oversold market state. Such a scenario typically indicates a buying opportunity, assuming the market might rebound from this excessively sold condition.
Divergence Condition (condition1): It checks if the MFI exceeds 1.93 times the RSI. This unique condition aims to spotlight instances where there's a significant influx of money into an asset, which is not proportionately reflected in its RSI, potentially signaling an upcoming price increase or highlighting an unusual market situation for further analysis.
Overbought Warning (conditionExit): The exit signal is triggered when both the MFI and RSI exceed 85, and the WPR is above -15. This combination is indicative of an overbought market condition, suggesting the asset might be overvalued and a price correction or reversal could be imminent, hence signaling a potential selling opportunity or a caution against initiating new positions.
Application and Visualization
The "RSI MFI WPR Combo" not only provides numerical insights but also visualizes these conditions on the TradingView chart. By employing color-coding and plotting shapes, it offers traders an intuitive way to discern market states, enabling quick and effective decision-making. The integration of alert conditions ensures that traders are promptly notified of significant market events, aligning with their strategic trading objectives.
Plotting and Alerts in "RSI MFI WPR Combo"
Combined Alert Condition
The combinedAlertCondition is a logical statement that consolidates all individual conditions (condition, condition1, conditionExit, and The_lurkerMFI_oversold) into a single alert trigger. This condition becomes true and triggers an alert if any of the specified conditions for potential trading opportunities or warnings are met. It's designed to provide a comprehensive alert system that notifies the trader of any significant signal identified by the indicator, encompassing both entry and exit signals as well as oversold conditions.
Visual Indicators
Background Color for Oversold Condition: The script sets the background color to a specific shade of blue (#13c2e9 with 90% transparency) when the custom MFI indicates an oversold condition (The_lurkerMFI_oversold). This visual cue helps traders quickly identify periods when the market might be undervalued and potentially poised for a rebound.
Plotting Warning and Exit Signals:
Entry Signals: For the condition and condition1, which identify potential entry points, the indicator plots upward-pointing triangles below the price bars. These triangles are colored in specific shades to differentiate between the signals from the basic oversold condition and the divergence condition, making it visually intuitive for traders to recognize the signal type.
Exit Signals: For the conditionExit, signaling overbought conditions that might suggest an imminent price correction, downward-pointing red triangles are plotted above the price bars. This acts as a clear visual warning to consider exiting positions or to proceed with caution.
Alert Configuration
The script utilizes the alertcondition function to create an alert based on the combinedAlertCondition. When this condition is met, indicating any of the predefined signa
Conclusion
In summary, the "RSI MFI WPR Combo" stands out as a versatile and dynamic indicator that enriches a trader's toolkit by combining the analytical strengths of RSI, MFI, and WPR. By delineating clear conditions for market entry and exit points, it facilitates a proactive approach to trading, grounded in a detailed examination of market dynamics. This indicator exemplifies how blending multiple technical tools can lead to a more informed and nuanced market analysis, aiming to elevate the trading experience on the TradingView platform
RSI-Divergence Goggles [Trendoscope®]🎲 Introducing the RSI-Divergence Goggle 
 🎯 Revolutionizing Divergence Analysis in Trading 
While the concept of divergence plays a crucial role in technical analysis, existing indicators in the community library have faced limitations, particularly in simultaneously displaying divergence lines on both price and oscillator graphs. This challenge stems from the fact that RSI and other oscillators are typically plotted in a separate pane from the price chart. Traditional Pine Script® indicators are confined to a single pane, thus restricting comprehensive divergence analysis.
 🎯 Our Innovative Solution: RSI on the Price Pane 
The RSI-Divergence Goggle breaks through these limitations. Our innovative approach involves plotting the RSI directly onto the price pane within a movable and resizable widget. This groundbreaking feature allows for the simultaneous drawing of zigzag patterns on both price and the oscillator, enabling the effective calculation and visualization of divergence lines on both.
 🎯 The Foundation: Our Divergence Research and Rules 
Our journey into divergence research began three years ago with the launch of the  "Zigzag Trend Divergence Detector."  The foundational rules established with this script remain pertinent and form the basis of all our subsequent divergence-based indicators.
 🎯 Understanding Divergence: Key Concepts 
 
   Divergence Varieties : We identify two main types - Bullish Divergence (and its hidden counterpart) occurs at pivot lows, while Bearish Divergence (and its hidden version) appears at pivot highs.
   Contextual Occurrence : Bullish divergence is a phenomenon of downtrends, whereas bearish divergence is unique to uptrend. Conversely, hidden bullish divergence arises in uptrends, and hidden bearish divergence in downtrends.
   Oscillator Behavior : In standard divergence scenarios, the oscillator lags behind price, signaling potential reversals. In hidden divergence cases, the oscillator leads, suggesting trend continuation.
 
 🎯 Visual Insights: Divergence and Hidden Divergence  
For a clearer understanding, refer to our visual guides:
 🎯 A Word of Caution 
While divergence is a powerful tool, it's not a standalone guarantee of trend reversals or continuations. We recommend using these patterns in conjunction with support and resistance levels, as demonstrated in our  "Divergence Based Support Resistance"  implementation.
 🎯 Using the RSI-Divergence Goggles 
Upon applying the indicator to your chart, you'll be prompted to select two corner points, defining the widget's placement and size. This widget is the stage for your RSI plotting and divergence calculations. Choose these points carefully to ensure they encompass your area of interest without overlapping important price bars.
An example as below.
 🎯 Innovative Features: 
 
   Plotting RSI:  RSI values are scaled from 0 to 100 within the widget. This unique plotting may not align with individual bar values, but pivot labels and tooltips provide detailed RSI and retracement ratio information.
   Zigzag and Pivots:  Our adjusted RSI plots determine the zigzag pivot highs and lows, which may not always correspond with visible price pivots. However, calculations based on close prices ensure minimal deviation.
   Divergence Display:  Divergence types are identified following our established rules, with a simple moving average employed to discern the prevailing trend.
 
 🎯 Trend Detection Mechanism 
A simple moving average is used as base for determining the trend. If the difference between moving averages of the alternate pivots is positive, then the sentiment is considered to be uptrend. Else, we consider the sentiment to be in downtrend.
This is a simple method to identify trend, implemented via this indicator. The indicator does not provide alternative methods to identify trend. This is something that we can explore in the future.
 🎯 Interactive and Customizable 
The RSI-Divergence Goggle isn't just a static tool; it's an interactive feature on your chart. You can move or resize the widget, allowing for dynamic analysis and focused study on different chart segments.
 






















