OPEN-SOURCE SCRIPT
Обновлено TCD - Trade Consistent & Disciplined

# TCD - Trade Consistent & Disciplined
Multi-timeframe trading dashboard that scores the market from both bull and bear perspectives, detects counter-trend exhaustion, and generates trade setups with specific Entry, Stop Loss, and Target levels.
## What it does
### Scoring Engine
- **BUY Score (0-10)**: Measures bullish alignment across 4 timeframes — trend direction, SMA alignment, momentum, and value zone detection.
- **SELL Score (0-10)**: Mirror bearish scoring.
- **CT Buy/Sell Score (0-18)**: Measures exhaustion using stretched, structural, and completion signals. Counter-trend trades only activate with structural evidence (failed breakdowns/breakouts or targets exhausted).
### Trade Setups
- **Scalp (With Trend)**: Entry at the mode-aligned TF's stop level (buying support / selling resistance). ATR-based stop loss. Targets cascade through aligned timeframes, skipping already-hit levels.
- **Scalp (Counter-Trend)**: Entry at exhaustion support/resistance levels. Requires CT score >= 5 with structural confirmation. Targets mean-revert to Base TF Open.
- **Swing**: Entry at Trend TF's stop level. Targets cascade Trend → Base timeframe.
- All setups show **R:R ratio** and warn if major levels (SMAs, Murrey, Monthly Open) block the path to target.
### Key Signals
Real-time alerts when price is near important levels: SMA retests, trend stops, failed breakdowns/breakouts, Murrey extremes, exhaustion support/resistance, and big bar midpoints.
## Timeframe Profiles
TCD uses 4 timeframe roles — **Base** (anchor bias), **Trend** (primary direction), **Signal** (confirmation), and **Entry** (execution). Choose a profile or set custom timeframes:
| Profile | Base | Trend | Signal | Entry |
|------------------|------|-------|--------|-------|
| Swing | M | W | D | 4H |
| Intraday | W | D | 4H | 1H |
| Scalp | D | 4H | 1H | 15m |
| Aggressive Scalp | 4H | 1H | 15m | 5m |
| Custom | User-defined timeframes |
**How profiles work:**
- **Base TF Open** (e.g., Monthly Open) sets the primary directional bias — price above = bullish, below = bearish.
- **Trend TF** determines the main trend direction (BUY/SELL mode) and swing trade levels.
- **Signal TF** confirms the trend and provides scalp targets.
- **Entry TF** provides the most precise entry/stop levels for scalp trades.
## Parameters
### Timeframe Profile
- **Profile**: Select preset (Swing/Intraday/Scalp/Aggressive Scalp) or Custom.
- **Custom Base/Trend/Signal/Entry TF**: Set your own timeframes when using Custom profile.
### Bar Strength
- **ATR Length** (default 14): Period for ATR calculation used across all modules.
- **Min ATR Multiple** (default 1.0): Minimum ATR multiple to qualify as a significant ("big") bar. Used in key notes.
### Trend Mode
- **Trend Length** (default 10): Lookback period for BUY/SELL mode detection. Higher = smoother but slower signals.
- **Target Offset** (default 0): Adjusts target distance. 0 = default target calculation.
### Murrey Math
- **Frame Size** (default 64): Number of bars for Murrey Math level calculation. Larger = wider levels.
- **Frame Multiplier** (default 1.5): Scales the Murrey frame. Affects zone width.
### Failed Breakdown / Exhaustion
- **Exhaustion Swing Length** (default 40): Lookback for swing high/low detection in exhaustion analysis.
- **Exhaustion Bar Count** (default 10): Minimum bars for failed breakdown/breakout confirmation.
- **Break Lookback Bars** (default 5): How many bars back to check for a break of support/resistance.
### Monthly Bias
- **Mean Reversion % Threshold** (default 1.5%): Distance from Base TF Open (as %) to flag mean reversion opportunity.
### Trend Filter (Two Poles)
- **Alpha** (default 0.10): Smoothing factor for the Two Poles momentum filter. Lower = smoother, higher = more responsive.
### Retest Detection & Trade Levels
- **Retest ATR Multiple** (default 1.0): How close price must be to a level (in ATR multiples) to trigger a Key Signal alert.
- **Min Bars Away** (default 10): Minimum bars since last cross before a retest signal fires. Prevents noise from recent crossovers.
- **Overextended ATR Multiple** (default 3.0): Distance from SMA89/200 (in ATR multiples) to flag overextension. Used in CT exhaustion scoring. Lower = triggers more often.
- **SL Fallback ATR Multiple** (default 1.5): ATR multiple used for stop loss calculation across all trade types. Applies when cascading through timeframes.
### Display
- **Show Trade Setups**: Toggle the trade recommendations row (Entry/SL/T1/T2 for scalp and swing).
- **Show Key Signals**: Toggle the key signals row (SMA retests, Murrey extremes, etc.).
- **Show Metrics**: Toggle the metrics row (RSI, SMA positions, etc.).
- **Show Debug Info**: Toggle debug output for troubleshooting.
- **Table Position**: Where to place the dashboard on the chart (default: top right).
- **Font Size**: Dashboard text size (tiny/small/normal/large/huge).
## How to use
1. **Pick your profile** — Swing for position trades, Intraday for day trades, Scalp for quick trades.
2. **Read the scores** — BUY/SELL scores show market bias. 8-10 = strong, 5-7 = moderate, 0-4 = weak.
3. **Watch for CT signals** — When CT Buy/Sell scores appear, exhaustion is building. These are counter-trend opportunities with structural evidence.
4. **Follow the trade setups** — Entry, SL, and Target levels are computed automatically. R:R ratio helps you evaluate risk. Level warnings flag obstacles in the trade path.
5. **Use Key Signals** — Real-time alerts when price reaches important levels. Great for timing entries.
## Credits & Acknowledgments
This indicator was built using concepts and logic adapted from the following open-source TradingView indicators. I converted them into PineScript v6 libraries and integrated them into this multi-timeframe scoring and trade setup system. Full credit to the original authors:
- **Target Trend by BigBeluga** — Trend direction, BUY/SELL mode with entry/SL/targets, and Two Poles momentum filter.
![Target Trend [BigBeluga]](https://s3.tradingview.com/q/QoUmKd1H_mid.png)
- **Murrey Math Lines by Nanda86** — Murrey Math level calculation and overbought/oversold zone detection.

- **Leledc Levels by InSilico** — Exhaustion detection, failed breakdown/breakout logic, and support/resistance levels.

Thank you to these authors for sharing their work openly. The scoring engine, trade recommendation system, and multi-timeframe integration are original work.
Multi-timeframe trading dashboard that scores the market from both bull and bear perspectives, detects counter-trend exhaustion, and generates trade setups with specific Entry, Stop Loss, and Target levels.
## What it does
### Scoring Engine
- **BUY Score (0-10)**: Measures bullish alignment across 4 timeframes — trend direction, SMA alignment, momentum, and value zone detection.
- **SELL Score (0-10)**: Mirror bearish scoring.
- **CT Buy/Sell Score (0-18)**: Measures exhaustion using stretched, structural, and completion signals. Counter-trend trades only activate with structural evidence (failed breakdowns/breakouts or targets exhausted).
### Trade Setups
- **Scalp (With Trend)**: Entry at the mode-aligned TF's stop level (buying support / selling resistance). ATR-based stop loss. Targets cascade through aligned timeframes, skipping already-hit levels.
- **Scalp (Counter-Trend)**: Entry at exhaustion support/resistance levels. Requires CT score >= 5 with structural confirmation. Targets mean-revert to Base TF Open.
- **Swing**: Entry at Trend TF's stop level. Targets cascade Trend → Base timeframe.
- All setups show **R:R ratio** and warn if major levels (SMAs, Murrey, Monthly Open) block the path to target.
### Key Signals
Real-time alerts when price is near important levels: SMA retests, trend stops, failed breakdowns/breakouts, Murrey extremes, exhaustion support/resistance, and big bar midpoints.
## Timeframe Profiles
TCD uses 4 timeframe roles — **Base** (anchor bias), **Trend** (primary direction), **Signal** (confirmation), and **Entry** (execution). Choose a profile or set custom timeframes:
| Profile | Base | Trend | Signal | Entry |
|------------------|------|-------|--------|-------|
| Swing | M | W | D | 4H |
| Intraday | W | D | 4H | 1H |
| Scalp | D | 4H | 1H | 15m |
| Aggressive Scalp | 4H | 1H | 15m | 5m |
| Custom | User-defined timeframes |
**How profiles work:**
- **Base TF Open** (e.g., Monthly Open) sets the primary directional bias — price above = bullish, below = bearish.
- **Trend TF** determines the main trend direction (BUY/SELL mode) and swing trade levels.
- **Signal TF** confirms the trend and provides scalp targets.
- **Entry TF** provides the most precise entry/stop levels for scalp trades.
## Parameters
### Timeframe Profile
- **Profile**: Select preset (Swing/Intraday/Scalp/Aggressive Scalp) or Custom.
- **Custom Base/Trend/Signal/Entry TF**: Set your own timeframes when using Custom profile.
### Bar Strength
- **ATR Length** (default 14): Period for ATR calculation used across all modules.
- **Min ATR Multiple** (default 1.0): Minimum ATR multiple to qualify as a significant ("big") bar. Used in key notes.
### Trend Mode
- **Trend Length** (default 10): Lookback period for BUY/SELL mode detection. Higher = smoother but slower signals.
- **Target Offset** (default 0): Adjusts target distance. 0 = default target calculation.
### Murrey Math
- **Frame Size** (default 64): Number of bars for Murrey Math level calculation. Larger = wider levels.
- **Frame Multiplier** (default 1.5): Scales the Murrey frame. Affects zone width.
### Failed Breakdown / Exhaustion
- **Exhaustion Swing Length** (default 40): Lookback for swing high/low detection in exhaustion analysis.
- **Exhaustion Bar Count** (default 10): Minimum bars for failed breakdown/breakout confirmation.
- **Break Lookback Bars** (default 5): How many bars back to check for a break of support/resistance.
### Monthly Bias
- **Mean Reversion % Threshold** (default 1.5%): Distance from Base TF Open (as %) to flag mean reversion opportunity.
### Trend Filter (Two Poles)
- **Alpha** (default 0.10): Smoothing factor for the Two Poles momentum filter. Lower = smoother, higher = more responsive.
### Retest Detection & Trade Levels
- **Retest ATR Multiple** (default 1.0): How close price must be to a level (in ATR multiples) to trigger a Key Signal alert.
- **Min Bars Away** (default 10): Minimum bars since last cross before a retest signal fires. Prevents noise from recent crossovers.
- **Overextended ATR Multiple** (default 3.0): Distance from SMA89/200 (in ATR multiples) to flag overextension. Used in CT exhaustion scoring. Lower = triggers more often.
- **SL Fallback ATR Multiple** (default 1.5): ATR multiple used for stop loss calculation across all trade types. Applies when cascading through timeframes.
### Display
- **Show Trade Setups**: Toggle the trade recommendations row (Entry/SL/T1/T2 for scalp and swing).
- **Show Key Signals**: Toggle the key signals row (SMA retests, Murrey extremes, etc.).
- **Show Metrics**: Toggle the metrics row (RSI, SMA positions, etc.).
- **Show Debug Info**: Toggle debug output for troubleshooting.
- **Table Position**: Where to place the dashboard on the chart (default: top right).
- **Font Size**: Dashboard text size (tiny/small/normal/large/huge).
## How to use
1. **Pick your profile** — Swing for position trades, Intraday for day trades, Scalp for quick trades.
2. **Read the scores** — BUY/SELL scores show market bias. 8-10 = strong, 5-7 = moderate, 0-4 = weak.
3. **Watch for CT signals** — When CT Buy/Sell scores appear, exhaustion is building. These are counter-trend opportunities with structural evidence.
4. **Follow the trade setups** — Entry, SL, and Target levels are computed automatically. R:R ratio helps you evaluate risk. Level warnings flag obstacles in the trade path.
5. **Use Key Signals** — Real-time alerts when price reaches important levels. Great for timing entries.
## Credits & Acknowledgments
This indicator was built using concepts and logic adapted from the following open-source TradingView indicators. I converted them into PineScript v6 libraries and integrated them into this multi-timeframe scoring and trade setup system. Full credit to the original authors:
- **Target Trend by BigBeluga** — Trend direction, BUY/SELL mode with entry/SL/targets, and Two Poles momentum filter.
![Target Trend [BigBeluga]](https://s3.tradingview.com/q/QoUmKd1H_mid.png)
- **Murrey Math Lines by Nanda86** — Murrey Math level calculation and overbought/oversold zone detection.

- **Leledc Levels by InSilico** — Exhaustion detection, failed breakdown/breakout logic, and support/resistance levels.

Thank you to these authors for sharing their work openly. The scoring engine, trade recommendation system, and multi-timeframe integration are original work.
Информация о релизе
# TCD - Trade Consistent & DisciplinedMulti-timeframe trading dashboard that scores the market from both bull and bear perspectives, detects counter-trend exhaustion, and generates trade setups with specific Entry, Stop Loss, and Target levels.
## What it does
### Scoring Engine
- **BUY Score (0-10)**: Measures bullish alignment across 4 timeframes — trend direction, SMA alignment, momentum, and value zone detection.
- **SELL Score (0-10)**: Mirror bearish scoring.
- **CT Buy/Sell Score (0-18)**: Measures exhaustion using stretched, structural, and completion signals. Counter-trend trades only activate with structural evidence (failed breakdowns/breakouts or targets exhausted).
### Trade Setups
- **Scalp (With Trend)**: Entry at the mode-aligned TF's stop level (buying support / selling resistance). ATR-based stop loss. Targets cascade through aligned timeframes, skipping already-hit levels.
- **Scalp (Counter-Trend)**: Entry at exhaustion support/resistance levels. Requires CT score >= 5 with structural confirmation. Targets mean-revert to Base TF Open.
- **Swing**: Entry at Trend TF's stop level. Targets cascade Trend → Base timeframe.
- All setups show **R:R ratio** and warn if major levels (SMAs, Murrey, Monthly Open) block the path to target.
### Key Signals
Real-time alerts when price is near important levels: SMA retests, trend stops, failed breakdowns/breakouts, Murrey extremes, exhaustion support/resistance, and big bar midpoints.
## Timeframe Profiles
TCD uses 4 timeframe roles — **Base** (anchor bias), **Trend** (primary direction), **Signal** (confirmation), and **Entry** (execution). Choose a profile or set custom timeframes:
| Profile | Base | Trend | Signal | Entry |
|------------------|------|-------|--------|-------|
| Swing | M | W | D | 4H |
| Intraday | W | D | 4H | 1H |
| Scalp | D | 4H | 1H | 15m |
| Aggressive Scalp | 4H | 1H | 15m | 5m |
| Custom | User-defined timeframes |
**How profiles work:**
- **Base TF Open** (e.g., Monthly Open) sets the primary directional bias — price above = bullish, below = bearish.
- **Trend TF** determines the main trend direction (BUY/SELL mode) and swing trade levels.
- **Signal TF** confirms the trend and provides scalp targets.
- **Entry TF** provides the most precise entry/stop levels for scalp trades.
## Parameters
### Timeframe Profile
- **Profile**: Select preset (Swing/Intraday/Scalp/Aggressive Scalp) or Custom.
- **Custom Base/Trend/Signal/Entry TF**: Set your own timeframes when using Custom profile.
### Bar Strength
- **ATR Length** (default 14): Period for ATR calculation used across all modules.
- **Min ATR Multiple** (default 1.0): Minimum ATR multiple to qualify as a significant ("big") bar. Used in key notes.
### Trend Mode
- **Trend Length** (default 10): Lookback period for BUY/SELL mode detection. Higher = smoother but slower signals.
- **Target Offset** (default 0): Adjusts target distance. 0 = default target calculation.
### Murrey Math
- **Frame Size** (default 64): Number of bars for Murrey Math level calculation. Larger = wider levels.
- **Frame Multiplier** (default 1.5): Scales the Murrey frame. Affects zone width.
### Failed Breakdown / Exhaustion
- **Exhaustion Swing Length** (default 40): Lookback for swing high/low detection in exhaustion analysis.
- **Exhaustion Bar Count** (default 10): Minimum bars for failed breakdown/breakout confirmation.
- **Break Lookback Bars** (default 5): How many bars back to check for a break of support/resistance.
### Monthly Bias
- **Mean Reversion % Threshold** (default 1.5%): Distance from Base TF Open (as %) to flag mean reversion opportunity.
### Trend Filter (Two Poles)
- **Alpha** (default 0.10): Smoothing factor for the Two Poles momentum filter. Lower = smoother, higher = more responsive.
### Retest Detection & Trade Levels
- **Retest ATR Multiple** (default 1.0): How close price must be to a level (in ATR multiples) to trigger a Key Signal alert.
- **Min Bars Away** (default 10): Minimum bars since last cross before a retest signal fires. Prevents noise from recent crossovers.
- **Overextended ATR Multiple** (default 3.0): Distance from SMA89/200 (in ATR multiples) to flag overextension. Used in CT exhaustion scoring. Lower = triggers more often.
- **SL Fallback ATR Multiple** (default 1.5): ATR multiple used for stop loss calculation across all trade types. Applies when cascading through timeframes.
### Display
- **Show Trade Setups**: Toggle the trade recommendations row (Entry/SL/T1/T2 for scalp and swing).
- **Show Key Signals**: Toggle the key signals row (SMA retests, Murrey extremes, etc.).
- **Show Metrics**: Toggle the metrics row (RSI, SMA positions, etc.).
- **Show Debug Info**: Toggle debug output for troubleshooting.
- **Table Position**: Where to place the dashboard on the chart (default: top right).
- **Font Size**: Dashboard text size (tiny/small/normal/large/huge).
## How to use
1. **Pick your profile** — Swing for position trades, Intraday for day trades, Scalp for quick trades.
2. **Read the scores** — BUY/SELL scores show market bias. 8-10 = strong, 5-7 = moderate, 0-4 = weak.
3. **Watch for CT signals** — When CT Buy/Sell scores appear, exhaustion is building. These are counter-trend opportunities with structural evidence.
4. **Follow the trade setups** — Entry, SL, and Target levels are computed automatically. R:R ratio helps you evaluate risk. Level warnings flag obstacles in the trade path.
5. **Use Key Signals** — Real-time alerts when price reaches important levels. Great for timing entries.
## Credits & Acknowledgments
This indicator was built using concepts and logic adapted from the following open-source TradingView indicators. I converted them into PineScript v6 libraries and integrated them into this multi-timeframe scoring and trade setup system. Full credit to the original authors:
- **Target Trend by BigBeluga** — Trend direction, BUY/SELL mode with entry/SL/targets, and Two Poles momentum filter.
![Target Trend [BigBeluga]](https://s3.tradingview.com/q/QoUmKd1H_mid.png)
- **Murrey Math Lines by Nanda86** — Murrey Math level calculation and overbought/oversold zone detection.

- **Leledc Levels by InSilico** — Exhaustion detection, failed breakdown/breakout logic, and support/resistance levels.

Thank you to these authors for sharing their work openly. The scoring engine, trade recommendation system, and multi-timeframe integration are original work.
Информация о релизе
New V3 Version with tool tip updatesСкрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.