SMT Custom by AlgoKings

RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT IS SMART MONEY TECHNIQUE (SMT)?
SMT identifies divergences between correlated market pairs when one asset makes a new high/low but its correlated counterpart fails to do so. These divergences often signal institutional repositioning and potential reversal points.
Example: NQ makes a new high at 15,200 but ES fails to exceed its previous high = Bearish SMT divergence
UNDERLYING METHODOLOGY
This indicator combines three analytical layers:
1. AUTOMATIC CORRELATION MAPPING
Built-in correlation intelligence for 40+ pairs:
- Futures: NQ, ES, YM cross-correlation | GC/SI | 6E/6B
- Forex: EURUSD/GBPUSD/DXY(inverse) | AUDUSD/NZDUSD
- Stocks: MAG7 (META, NVDA, MSFT, etc.) vs NDX
- Crypto: BTCUSD/ETHUSD
Algorithm automatically mirrors contract types (perpetual/quarterly futures) and exchange prefixes using regex-based parsing. Recognizes quarterly contracts (NQU2025), micro contracts (MNQ, MES), and perpetual syntax (NQ1!).
2. MULTI-TIMEFRAME CYCLE ANALYSIS
Proprietary cycle detection algorithm:
- Tracks price structure across 9 configurable timeframes simultaneously
- Maintains independent high/low tracking for each symbol pair using request.security()
- Identifies cycle completions with time-synchronized bar analysis
- Implements adaptive purge logic (1min to Monthly) to balance historical context vs performance
Technical implementation compares previous period extremes (high[1], low[1]) across correlated pairs and timestamps divergence formations at chart timeframe precision.
3. DIVERGENCE CLASSIFICATION SYSTEM
Bullish SMT: Chart symbol makes lower low, correlated pair does NOT = Institutional buying pressure
Bearish SMT: Chart symbol makes higher high, correlated pair does NOT = Institutional selling pressure
Advanced features include level tracking (monitors when extremes are revisited), automatic extension until both levels violated, overlap filtering to remove redundant signals, and inverse correlation support for DXY relationships.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Automatic symbol mapping: Custom logic for 40+ correlation pairs including futures contract recognition (expiration codes, micro contracts) and exchange inheritance
- Cycle synchronization engine: Complex timestamp matching ensures divergences only flagged when both symbols' cycle periods align perfectly (prevents false signals from data lag)
- Adaptive purge system: Timeframe-specific memory management (1S to 12M) optimized through backtesting
- Multi-level tracking: Simultaneous monitoring of multiple active divergences with state management for "taken" levels
- Overlap intelligence: Algorithm determines when to hide/combine signals from different timeframes while preserving information in tooltips
Standard divergence indicators simply compare two moving averages. This script performs real-time institutional flow analysis across correlated instruments.
HOW TO USE
Setup (Automatic Mode - Recommended):
1. Apply to chart of supported pair (see correlation list above)
2. Indicator automatically detects optimal comparison symbols
3. Enable/disable specific timeframes in settings
4. Adjust visual preferences (colors, line styles, labels)
Setup (Manual Mode):
1. Uncheck "Automatic Symbol Mode" in settings
2. Enter "Manual Symbol #1" (e.g., ES1! when chart shows NQ1!)
3. Optional: Enter "Manual Symbol #2" for three-way comparison
4. Check "Invert" if symbol is inversely correlated (e.g., DXY vs EURUSD)
Interpretation:
- Blue lines = Bullish SMT (chart made lower low, correlated pair held higher). Potential reversal up.
- Red lines = Bearish SMT (chart made higher high, correlated pair stayed lower). Potential reversal down.
- Dots in labels = Multiple SMT signals overlap. Hover to see all timeframes.
SETTINGS EXPLAINED
Symbols:
- Automatic Symbol Mode: Uses built-in correlation intelligence (recommended)
- Manual Symbol #1/2: Override automatic selection
- Invert: For inverse correlations (DXY vs majors)
- Hide Exact Overlap: Removes duplicate signals with identical start/end times
- Hide All Overlap: Hides lower timeframe SMT within higher timeframe ranges
Timeframes:
- 9 configurable timeframe rows
- Toggle each symbol independently (Sym #1, Sym #2 checkboxes)
- Default: Chart TF, 1m, 5m, 15m, 1H, 4H, Daily, Weekly, Monthly
Display:
- Bull/Bear: Enable/disable directional signals
- Line colors, styles (solid/dashed/dotted), widths
- Label: Show/hide text labels with color and size options
- SMT formation time: Displays timestamp in tooltip (New York time)
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact AlgoKings_Official directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact AlgoKings_Official directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.