OPEN-SOURCE SCRIPT
SDR Dashboard v3.1: 结构距离与节奏

SDR Dashboard v3.1: User Guide & Trading Strategy
1. Introduction
The SDR Dashboard is a comprehensive technical indicator designed to identify high-probability trend-following trade opportunities. It is built on the core principle of "buying the dip in an uptrend" and "selling the rally in a downtrend."
To achieve this, the indicator combines three key elements of market analysis:
Rhythm (The Long-Term Trend): Determines the overall market direction.
Distance (The Pullback Location): Identifies when the price has pulled back to an area of potential value.
Momentum (The Entry Trigger): Provides the final confirmation to enter a trade.
A signal is only generated when all three conditions align, providing a clear and disciplined approach to trading.
2. Core Components Explained
The indicator's logic is visualized through the background color and the oscillator at the bottom of the chart.
Rhythm: The Background Color
The background color is determined by the 200-period Exponential Moving Average (EMA), which defines the long-term trend.
🟦 Blue Background: The price is above the 200 EMA. The market is in an uptrend. You should ONLY look for BUY signals.
🟥 Red Background: The price is below the 200 EMA. The market is in a downtrend. You should ONLY look for SELL signals.
⬜ Gray Background: The price is hovering around the 200 EMA. The trend is unclear or the market is in a consolidation phase. You should STAY OUT and wait for a clear trend to establish.
Distance: The Oscillator & Zones
The multi-colored line at the bottom is the "Distance Oscillator." It measures how overbought or oversold the price is relative to its recent range (defaulting to the last 50 bars).
Overbought Zone (Red Area > +80): In a downtrend, this indicates the price has rallied to a potential resistance level and may be due for a turn back down.
Oversold Zone (Green Area < -80): In an uptrend, this indicates the price has dipped to a potential support level and may be due for a turn back up.
Momentum: The Stochastic Cross (The Hidden Trigger)
This indicator uses a standard Stochastic Oscillator in the background (not plotted to keep the chart clean) as the final entry trigger.
A bullish crossover (K-line crossing above D-line) confirms that downside momentum is fading and buying pressure is returning.
A bearish crossunder (K-line crossing below D-line) confirms that upside momentum is fading and selling pressure is returning.
3. How to Use: Trading Rules
BUY Signal (Long Entry)
Look for a green "▲" arrow below a candle. This signal appears ONLY when the following three conditions are met in order:
Rhythm is Bullish: The chart background must be BLUE.
Distance is Oversold: The Distance Oscillator must have recently dipped into the green "Support Zone" (below -80) within the last 3 bars. This shows a pullback has occurred.
Momentum Confirms: The Stochastic Oscillator has just executed a bullish crossover. This is the trigger.
Strategy: In a clear uptrend (blue background), wait for a price dip into the support area. Enter when the green arrow appears, confirming the dip is likely over and the uptrend is resuming.
SELL Signal (Short Entry)
Look for a red "▼" arrow above a candle. This signal appears ONLY when the following three conditions are met in order:
Rhythm is Bearish: The chart background must be RED.
Distance is Overbought: The Distance Oscillator must have recently pushed into the red "Resistance Zone" (above +80) within the last 3 bars. This shows a rally has occurred.
Momentum Confirms: The Stochastic Oscillator has just executed a bearish crossunder. This is the trigger.
Strategy: In a clear downtrend (red background), wait for a price rally into the resistance area. Enter when the red arrow appears, confirming the rally is likely over and the downtrend is resuming.
4. Best Practices & Risk Management
No Indicator is Perfect: This tool provides high-probability setups, not guaranteed wins. Always use proper risk management, including setting a stop-loss for every trade.
Context is Key: The indicator works best in trending markets. Be cautious during periods of low volatility or sideways chop (gray background).
Parameter Tuning: The default settings are a balanced starting point. Feel free to experiment with the lookback periods and thresholds in the indicator's settings to optimize for different assets and timeframes.
1. Introduction
The SDR Dashboard is a comprehensive technical indicator designed to identify high-probability trend-following trade opportunities. It is built on the core principle of "buying the dip in an uptrend" and "selling the rally in a downtrend."
To achieve this, the indicator combines three key elements of market analysis:
Rhythm (The Long-Term Trend): Determines the overall market direction.
Distance (The Pullback Location): Identifies when the price has pulled back to an area of potential value.
Momentum (The Entry Trigger): Provides the final confirmation to enter a trade.
A signal is only generated when all three conditions align, providing a clear and disciplined approach to trading.
2. Core Components Explained
The indicator's logic is visualized through the background color and the oscillator at the bottom of the chart.
Rhythm: The Background Color
The background color is determined by the 200-period Exponential Moving Average (EMA), which defines the long-term trend.
🟦 Blue Background: The price is above the 200 EMA. The market is in an uptrend. You should ONLY look for BUY signals.
🟥 Red Background: The price is below the 200 EMA. The market is in a downtrend. You should ONLY look for SELL signals.
⬜ Gray Background: The price is hovering around the 200 EMA. The trend is unclear or the market is in a consolidation phase. You should STAY OUT and wait for a clear trend to establish.
Distance: The Oscillator & Zones
The multi-colored line at the bottom is the "Distance Oscillator." It measures how overbought or oversold the price is relative to its recent range (defaulting to the last 50 bars).
Overbought Zone (Red Area > +80): In a downtrend, this indicates the price has rallied to a potential resistance level and may be due for a turn back down.
Oversold Zone (Green Area < -80): In an uptrend, this indicates the price has dipped to a potential support level and may be due for a turn back up.
Momentum: The Stochastic Cross (The Hidden Trigger)
This indicator uses a standard Stochastic Oscillator in the background (not plotted to keep the chart clean) as the final entry trigger.
A bullish crossover (K-line crossing above D-line) confirms that downside momentum is fading and buying pressure is returning.
A bearish crossunder (K-line crossing below D-line) confirms that upside momentum is fading and selling pressure is returning.
3. How to Use: Trading Rules
BUY Signal (Long Entry)
Look for a green "▲" arrow below a candle. This signal appears ONLY when the following three conditions are met in order:
Rhythm is Bullish: The chart background must be BLUE.
Distance is Oversold: The Distance Oscillator must have recently dipped into the green "Support Zone" (below -80) within the last 3 bars. This shows a pullback has occurred.
Momentum Confirms: The Stochastic Oscillator has just executed a bullish crossover. This is the trigger.
Strategy: In a clear uptrend (blue background), wait for a price dip into the support area. Enter when the green arrow appears, confirming the dip is likely over and the uptrend is resuming.
SELL Signal (Short Entry)
Look for a red "▼" arrow above a candle. This signal appears ONLY when the following three conditions are met in order:
Rhythm is Bearish: The chart background must be RED.
Distance is Overbought: The Distance Oscillator must have recently pushed into the red "Resistance Zone" (above +80) within the last 3 bars. This shows a rally has occurred.
Momentum Confirms: The Stochastic Oscillator has just executed a bearish crossunder. This is the trigger.
Strategy: In a clear downtrend (red background), wait for a price rally into the resistance area. Enter when the red arrow appears, confirming the rally is likely over and the downtrend is resuming.
4. Best Practices & Risk Management
No Indicator is Perfect: This tool provides high-probability setups, not guaranteed wins. Always use proper risk management, including setting a stop-loss for every trade.
Context is Key: The indicator works best in trending markets. Be cautious during periods of low volatility or sideways chop (gray background).
Parameter Tuning: The default settings are a balanced starting point. Feel free to experiment with the lookback periods and thresholds in the indicator's settings to optimize for different assets and timeframes.
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.