OPEN-SOURCE SCRIPT
Güncellendi 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
Sürüm Notları
📊 RSI Calculation: Plots the standard RSI (Relative Strength Index) with customizable length and source.⚙️ Moving Average on RSI: Lets you smooth the RSI using different types of moving averages (SMA, EMA, RMA/SMMA, WMA, VWMA, or a custom “MMS”).
🔍 Pivot-Based Divergence Detection:
Identifies swing highs/lows (pivots) in RSI.
Compares price movement vs RSI movement to detect regular divergences (bullish/bearish) and hidden divergences (bullish/bearish).
Supports two independent pivot configurations (Config 1 and Config 2), so you can adjust how many candles are used to define pivots.
Adds controls for minimum/maximum distance between pivots.
🎨 Visuals:
Shades the RSI background (overbought/oversold zones).
Marks divergences on the RSI plot with colored dots/lines (green for bullish, red for bearish, blue/orange for the second configuration).
🔔 Alerts:
Triggers alerts when divergences appear (both general and configuration-specific).
👉 In short: This script is an advanced RSI divergence indicator that highlights bullish/bearish divergences with customizable settings, visualization, and alert notifications.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.