Tanh Clamped Momentum Oscillator [Alpha Extract]A sophisticated momentum measurement system that combines dual EMA trend analysis with volatility-weighted pressure calculations, applying hyperbolic tangent normalization for bounded oscillator output with adaptive signal generation. Utilizing ATR-based volatility regime detection and candle pressure metrics, this indicator delivers institutional-grade momentum assessment with multi-tiered band structure and pulse-based envelope visualization. The system's tanh clamping methodology prevents extreme outliers while maintaining sensitivity to genuine momentum shifts, combined with histogram divergence detection and comprehensive alert framework for high-probability reversal and continuation signals.
🔶 Advanced Dual-Component Momentum Engine
Implements hybrid calculation combining EMA trend differential with candle pressure analysis, weighted by volatility regime assessment for context-aware momentum measurement. The system calculates fast and slow EMA difference normalized by ATR, measures intrabar pressure as close-open relative to range, applies volatility-based weighting between trend and pressure components, and produces composite raw momentum capturing both directional bias and internal candle dynamics.
// Core Momentum Framework
EMA_Fast = ta.ema(src, Fast_Length)
EMA_Slow = ta.ema(src, Slow_Length)
Trend = EMA_Fast - EMA_Slow
// Volatility Regime Detection
ATR_Short = ta.atr(ATR_Length)
ATR_Long = ta.atr(ATR_Length * 2)
Vol_Ratio = ATR_Short / ATR_Long
Vol_Weight = clamp((Vol_Ratio - 0.5) / 1.0, 0, 1)
// Pressure Component
Pressure = (close - open) / (high - low)
// Composite Momentum
Raw = Trend_Normalized * Vol_Weight + Pressure_Scaled * (1 - Vol_Weight)
🔶 Hyperbolic Tangent Normalization Framework
Features sophisticated tanh transformation that clamps raw momentum into bounded range while preserving proportional sensitivity across varying market conditions. The system applies safe exponential calculations with input capping to prevent overflow, computes hyperbolic tangent to compress extreme values while maintaining linearity near zero, and scales output by configurable factor creating oscillator with enhanced dynamic range and reduced outlier distortion.
// Tanh Clamping Logic
tanh(x) =>
x_clamped = clamp(x, -5.0, 5.0)
e = exp(2.0 * x_clamped)
(e - 1.0) / (e + 1.0)
Oscillator = tanh(Smoothed_Momentum / Clamp_Factor) * Scale
🔶 Volatility Regime Weighting System
Implements intelligent volatility assessment comparing short-term and long-term ATR to determine market regime, dynamically adjusting weight between trend and pressure components. The system calculates ATR ratio, normalizes to 0-1 range, and uses this weight factor to emphasize trend component during high-volatility regimes and pressure component during low-volatility consolidations, creating adaptive momentum sensitive to market microstructure.
🔶 Multi-Tiered Band Architecture
Provides comprehensive threshold structure with soft, hard, and maximum bands marking progressive momentum extremes for graduated overbought/oversold assessment. The system establishes configurable levels at soft zones (initial caution), hard zones (strong extreme), and maximum zones (critical overextension) with visual differentiation through line styles and background highlighting, enabling nuanced interpretation beyond binary extreme detection.
🔶 Pulse Envelope Visualization
Features dynamic envelope bands calculated from exponential moving average of absolute oscillator value, creating adaptive boundary that expands during momentum acceleration and contracts during deceleration. The system applies configurable length and width multiplier to pulse calculation, fills area between positive and negative pulse bounds with gradient coloring matching oscillator direction, providing visual context for momentum magnitude relative to recent activity.
🔶 Signal Line Integration Framework
Implements dual-mode signal line supporting both EMA and SMA smoothing of primary oscillator for crossover-based swing detection. The system calculates configurable-length moving average, generates histogram differential between oscillator and signal, applies additional smoothing to histogram for noise reduction, and uses crossovers/crossunders as momentum swing indicators distinguishing bullish and bearish momentum shifts.
🔶 Histogram Divergence Display
Creates column-style histogram visualization showing oscillator-signal differential with intensity-based coloring reflecting momentum acceleration or deceleration. The system plots histogram bars in bright colors when expanding (accelerating momentum) and faded colors when contracting (decelerating momentum), enabling instant visual identification of momentum divergences and convergences without numerical analysis.
🔶 Advanced Reversion Signal Logic
Generates overbought/oversold signals requiring both signal line crossover and extreme threshold breach for high-conviction reversal identification. The system triggers oversold when oscillator crosses above signal while below negative reversion level, triggers overbought when crossing below signal while above positive reversion level, and plots small circle markers at signal locations for clear visual confirmation of setup conditions.
🔶 Comprehensive Alert Framework
Provides six distinct alert conditions covering overbought/oversold reversions, midline trend changes, and oscillator-signal swings with configurable notification preferences. The system includes alerts for extreme reversions (OB/OS), zero-line crossovers (trend changes), and signal line crossovers (momentum swings), enabling traders to monitor critical oscillator events across multiple signal types without constant chart observation.
🔶 Adaptive Bar Coloring System
Implements four coloring modes including midline cross (trend direction), extremities (threshold breach), reversions (OB/OS signals), and slope (oscillator vs signal) for customizable visual integration. The system applies selected color scheme to candles providing chart-level momentum feedback, with option to disable coloring for minimal visual interference while maintaining oscillator pane analysis.
🔶 Performance Optimization Architecture
Utilizes efficient tanh calculation with safe clamping, streamlined EMA computations, and optimized ATR ratio processing for smooth real-time updates. The system includes intelligent null handling, minimal recalculation overhead through smart smoothing application, and configurable display toggles allowing users to disable unused visual elements for enhanced performance during extended historical analysis.
🔶 Why Choose Tanh-Clamped Momentum Oscillator ?
This indicator delivers sophisticated momentum analysis through hybrid trend-pressure calculation with volatility-adaptive weighting and hyperbolic tangent normalization. Unlike traditional momentum oscillators susceptible to extreme outlier distortion, the tanh clamping ensures bounded output while preserving sensitivity to genuine momentum shifts. The system's dual-component architecture combining directional trend with intrabar pressure, weighted by volatility regime assessment, creates context-aware momentum measurement that adapts to market microstructure. The multi-tiered band structure, pulse envelope visualization, and comprehensive signal framework make it essential for traders seeking nuanced momentum analysis with graduated extreme detection and high-probability reversal signals across cryptocurrency, forex, and equity markets.
ダイバージェンス
Volume Weighted LR Z ScoreThis indicator calculates the Volume Weighted Linear Regression
Z-Score (VWLRZS). Unlike a standard Z-Score which measures
deviation from a static mean, this oscillator measures the
statistical distance of price from a dynamic Volume-Weighted
Linear Regression Line (Analysis of Residuals).
Key Features:
1. **Volatility Decomposition:** The indicator separates volatility
based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
standard Regression Residuals using the selected `Source`
for both the regression line (baseline) and the signal.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):**
Uses a hybrid statistical approach:
a) **The Model (Baseline):** Uses an estimator to calculate
the 'within-bar' mean and fits the Linear Regression
through these statistical centers. This creates a
stable, trend-following expectation model.
b) **The Signal (Observation):** Compares the actual `Source`
(e.g., Close) against this regression line.
(Result: A Z-Score that measures deviations from the current
trend slope rather than a flat average).
2. **Visual Decomposition Logic:** Total Standard Deviation (of
Residuals) is the primary metric displayed. Since Standard
Deviations are not linearly additive (sqrt(a+b) != sqrt(a)+sqrt(b)),
this indicator calculates the *exact* Total Z-Score and partitions
the area underneath based on the Variance Ratio. This ensures the
displayed total volatility remains mathematically accurate while
showing relative composition.
3. **Normalization (Exponential Regression):** Includes an optional
'Normalize' mode. When enabled, the indicator calculates the
Linear Regression on logarithmic data. Mathematically, this
transforms the baseline into an **Exponential Regression Curve**,
making it ideal for analyzing assets with compounding growth
characteristics (constant percentage trend).
4. **Full Divergence Suite (Class A, B, C):** The indicator's
primary feature is its integrated divergence engine. It
automatically detects and plots all three major divergence
classes between price and the Z-Score:
- Regular (A): Signals potential trend exhaustion and reversals.
- Hidden (B): Signals potential trend continuations during pullbacks.
- Exaggerated (C): Signals weakness at double tops/bottoms.
5. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the oscillator level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
6. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Calculation:** The Z-Score line *itself* can be calculated on a
higher timeframe, with standard options to handle gaps
(`Fill Gaps`) and prevent repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is designed for the active timeframe. Using it in MTF mode
is not recommended as step-data can lead to inaccurate
pivot detection.
8. **Integrated Alerts:** Includes a comprehensive set of built-in
alerts for the Z-Score crossing the neutral line, the configured
Threshold levels, and the start/end of all divergence types.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Ease of MovementThis indicator provides an implementation of the Ease of Movement
(EOM) indicator, enhanced with a built-in divergence detection
engine.
The EOM highlights the relationship between volume and price change.
High positive values indicate that the price is increasing with
low resistance (ease), while low negative values indicate the
price is dropping with ease.
Key Features:
1. **Full Divergence Suite (Class A, B, C):** The primary feature
is the integrated divergence engine. It automatically
detects and plots all three major types of divergences:
- Regular (A): Signals potential trend reversals (e.g., price
rising but "ease" of movement is diminishing).
- Hidden (B): Signals potential trend continuations.
- Exaggerated (C): Signals weakness at double tops/bottoms.
2. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the EOM level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
3. **Customizable Signal Line:** Includes an optional moving average
of the EOM, which serves as a signal line. The type of
MA (`Signal Smoothing`) and its length can be customized.
This signal line can also be optionally volume-weighted
(`Volume weighted`).
4. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
5. **Multi-Timeframe (MTF) Capability:**
- **MTF EOM & Signal Lines:** The EOM and its signal line
can be calculated on a higher timeframe, with standard
options to handle gaps (`Fill Gaps`) and prevent
repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is **disabled** if a timeframe other than the chart's
timeframe is selected. Divergences are only calculated
on the active chart timeframe.
6. **Integrated Alerts:** Includes comprehensive alerts for:
- The *start* and *end* of all divergence types.
- The EOM crossing its signal line.
- The EOM crossing the zero line.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Volume Price TrendThis indicator provides an implementation of the Volume Price
Trend (VPT) momentum indicator, enhanced with a built-in
divergence detection engine.
Key Features:
1. **Full Divergence Suite (Class A, B, C):** The primary feature
is the integrated divergence engine. It automatically
detects and plots all three major types of divergences:
- Regular (A): Signals potential trend reversals.
- Hidden (B): Signals potential trend continuations.
- Exaggerated (C): Signals weakness at double tops/bottoms.
2. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the VPT level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
3. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
4. **Multi-Timeframe (MTF) Capability:**
- **MTF VPT Line:** The VPT line *itself* can be calculated on a
higher timeframe, with standard options to handle gaps
(`Fill Gaps`) and prevent repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is **disabled** if a timeframe other than the chart's
timeframe is selected. Divergences are only calculated
on the active chart timeframe.
5. **Integrated Alerts:** Includes comprehensive alerts that
trigger on the *start* and *end* of all divergence types
(e.g., "Regular Bullish Started", "Regular Bullish Ended").
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Volume Weighted Z ScoreThis indicator calculates the Volume Weighted Z-Score (VWZS), a
statistical oscillator that measures the number of standard deviations
the price is removed from its mean. It combines robust volatility
decomposition with advanced divergence detection.
Key Features:
1. **Volatility Decomposition:** The indicator separates volatility
based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
a simple (Volume-Weighted) Standard Deviation using the
selected `Source` for both the baseline and the signal.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):**
Uses a hybrid statistical approach:
a) **The Model (Baseline):** Uses an estimator to calculate
the 'within-bar' mean and volatility. This creates a
stable, mathematically idealized expectation value (mu).
b) **The Signal (Observation):** Compares the actual `Source`
(e.g., Close) against this statistical baseline.
(Result: A Z-Score that combines a noise-filtered trend
baseline with a highly reactive price signal).
2. **Visual Decomposition Logic:** Total Standard Deviation is the
primary metric displayed. Since Standard Deviations are not
linearly additive (sqrt(a+b) != sqrt(a)+sqrt(b)), this indicator
plots the *exact* Total StdDev and partitions the area underneath
based on the Variance Ratio. This ensures the displayed total
volatility remains mathematically accurate while showing relative
composition.
3. **Normalization (Geometric Average):** Includes an optional
'Normalize' mode. When enabled, the indicator uses a
Geometric Moving Average (GMA) as its baseline and applies a
statistical correction for the log-normal distribution
ensuring symmetry between upside and downside movements.
4. **Full Divergence Suite (Class A, B, C):** The indicator's
primary feature is its integrated divergence engine. It
automatically detects and plots all three major divergence
classes between price and the Z-Score:
- Regular (A): Signals potential trend exhaustion and reversals.
- Hidden (B): Signals potential trend continuations during pullbacks.
- Exaggerated (C): Signals weakness at double tops/bottoms.
5. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the oscillator level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
6. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Calculation:** The Z-Score line *itself* can be calculated on a
higher timeframe, with standard options to handle gaps
(`Fill Gaps`) and prevent repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is designed for the active timeframe. Using it in MTF mode
is not recommended as step-data can lead to inaccurate
pivot detection.
8. **Integrated Alerts:** Includes a comprehensive set of built-in
alerts for the Z-Score crossing the neutral line, the configured
Threshold levels, and the start/end of all divergence types.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
MACD Extreme V1[CoinTadpole]MACD Extreme
MACD Extreme is an advanced momentum exhaustion indicator that detects potential trend reversal zones by applying statistical analysis to MACD histogram divergence. Instead of relying on traditional crossover signals, this indicator identifies when the gap between MACD line (K) and Signal line (D) expands to statistically extreme levels, then confirms directional reversal before generating signals.
The indicator displays MACD components with statistical exhaustion detection and filtered reversal signals.
🔶 WHAT MAKES THIS DIFFERENT FROM EXISTING INDICATORS
This is NOT a simple MACD crossover alert, histogram color changer, or basic divergence detector.
Most open-source MACD tools provide:
- Crossover signals only (inherently lagging, triggering after price movement)
- Fixed threshold alerts without statistical context
- Visual histogram display without extremity measurement
- No quantification of "how extreme" current divergence actually is
- Signals on every crossover regardless of market conditions
MACD Extreme provides capabilities that standard MACD indicators cannot offer:
1. Statistical Extremity Detection
Measures current histogram magnitude against a rolling statistical baseline. The algorithm calculates whether current K-D divergence exceeds N standard deviations from the historical mean over a configurable lookback period. This transforms raw histogram values into statistically meaningful measurements, objectively identifying when divergence enters "extreme" territory.
2. Dual Detection Methodology
Offers two distinct statistical approaches:
- Standard Deviation Mode (Default): Triggers when histogram exceeds the configured sensitivity multiplier times the historical standard deviation
- Percentile Mode (Alternative): Triggers when histogram ranks in the top X percentile of all values within the lookback window
Users can select the method that best suits their trading style and market conditions.
3. Multi-Bar Reversal Confirmation
Signals are not generated on extreme values alone. The algorithm implements a two-bar confirmation pattern: it waits for the histogram to show directional change (current bar reversing from previous bar's direction) before triggering. This significantly reduces false signals during strong trending conditions where divergence may remain extreme for extended periods.
4. Pre-Crossover Signal Generation
By detecting momentum exhaustion at extreme divergence levels, signals often appear BEFORE traditional Golden/Dead Cross occurs. This provides earlier entry opportunities with potentially better risk/reward positioning compared to waiting for lagging crossover confirmation.
5. Visual Exhaustion Zone Mapping
Background coloring dynamically highlights when histogram enters statistically extreme territory. Green background indicates extreme bearish divergence (potential bullish reversal zone), red background indicates extreme bullish divergence (potential bearish reversal zone). This visual layer prepares traders for potential signals before they trigger.
6. Consecutive Signal Filtering
Built-in logic prevents signal spam by filtering consecutive triggers. Only the first valid signal in a reversal sequence is displayed, eliminating redundant alerts during extended reversal zones.
🔶 THE PROBLEM THIS SOLVES
Traditional MACD trading relies on crossover signals:
- MACD crosses above Signal (Golden Cross) = Buy signal
- MACD crosses below Signal (Dead Cross) = Sell signal
However, crossovers are inherently lagging indicators. The mathematical nature of moving average crossovers means they can only confirm trend changes AFTER those changes have already begun.
The Challenge:
- Crossovers confirm reversals after significant price movement has occurred
- Entering at crossover points often means buying near local highs or selling near local lows
- No objective measurement of divergence extremity exists in standard MACD
- Traders cannot quantify "how overextended" current momentum actually is
- Subjective visual judgment of histogram size varies between individuals and timeframes
As shown above, entries based on traditional crossover signals often result in suboptimal timing, with price frequently moving against the position shortly after the crossover appears.
The Solution:
MACD Extreme approaches the problem differently. Instead of waiting for the lagging crossover confirmation, it monitors the statistical extremity of the K-D gap (histogram) itself. When this gap expands beyond normal historical ranges AND shows the first signs of contraction, a signal triggers - often well before the traditional crossover would appear.
This allows traders to:
- Identify momentum exhaustion zones in advance
- Prepare for potential reversals before they complete
- Enter positions with better risk/reward ratios
- Avoid the common trap of "buying the crossover, selling the bottom"
🔶 HOW THE ALGORITHM WORKS
The indicator applies statistical analysis to MACD histogram values through a multi-step process:
Step 1: Calculate Standard MACD Components
Computes the traditional MACD values using configurable EMA periods:
- Fast EMA (default: 7 periods) - Short-term price momentum
- Slow EMA (default: 25 periods) - Longer-term price momentum
- MACD Line (K) = Fast EMA - Slow EMA
- Signal Line (D) = EMA of MACD Line (default: 9 periods)
- Histogram = K - D (the divergence between MACD and Signal)
Step 2: Build Statistical Baseline
Over the specified lookback period (default: 50 bars), the algorithm calculates:
- Historical mean of histogram values
- Standard deviation of histogram distribution
This creates a dynamic baseline that automatically adapts to each asset's typical divergence behavior and volatility characteristics.
Step 3: Measure Statistical Extremity
For each bar, the algorithm compares current histogram magnitude against the statistical baseline:
Standard Deviation Method:
Identifies when |Histogram| > (Standard Deviation × Sensitivity Threshold)
A sensitivity of 2.0 means the current divergence must exceed 2 standard deviations - statistically, this occurs in approximately the top 5% of historical values.
Percentile Method (Alternative):
Ranks current absolute histogram value against all values in the lookback period. Signals when current value exceeds the specified percentile threshold (e.g., 95th percentile = top 5% of historical extremes).
Step 4: Confirm Reversal Direction
The algorithm does not signal on extreme values alone. It implements a multi-bar confirmation:
- For Bullish: Histogram must be negative (K below D) AND current bar rising while previous bar was falling or flat
- For Bearish: Histogram must be positive (K above D) AND current bar falling while previous bar was rising or flat
This confirmation step ensures signals occur at turning points rather than during continued extreme expansion.
Step 5: Filter Consecutive Signals
To prevent signal spam during extended reversal zones, only the first signal in a reversal sequence is displayed. Subsequent bars meeting the criteria are filtered until conditions reset.
🔶 THE SIGNALS
🟢 Bullish Signal (Green)
Trigger Conditions:
- Histogram is negative (MACD below Signal line)
- Histogram magnitude exceeds statistical threshold
- Histogram direction reverses upward (current > previous, previous ≤ two bars ago)
- First signal in current reversal sequence
Interpretation: Selling pressure has reached statistically extreme levels and shows initial signs of exhaustion. Potential bullish reversal zone - not a guarantee, but a statistically significant area for trend change.
🔴 Bearish Signal (Red)
Trigger Conditions:
- Histogram is positive (MACD above Signal line)
- Histogram magnitude exceeds statistical threshold
- Histogram direction reverses downward (current < previous, previous ≥ two bars ago)
- First signal in current reversal sequence
Interpretation: Buying pressure has reached statistically extreme levels and shows initial signs of exhaustion. Potential bearish reversal zone - not a guarantee, but a statistically significant area for trend change.
Signals appear when statistical exhaustion is detected AND directional reversal begins, providing early warning of potential trend changes.
🔶 BACKGROUND EXHAUSTION ZONES
The colored background provides continuous context about current market conditions:
🟩 Green Background Zone
Appears when histogram enters statistically extreme NEGATIVE territory. This indicates the K-D gap has expanded significantly in the bearish direction beyond normal historical ranges. Green zones often precede bullish reversals as they represent potential selling exhaustion.
Important: Green background does NOT mean "buy now." It means "selling pressure is statistically extreme - watch for reversal confirmation."
🟥 Red Background Zone
Appears when histogram enters statistically extreme POSITIVE territory. This indicates the K-D gap has expanded significantly in the bullish direction beyond normal historical ranges. Red zones often precede bearish reversals as they represent potential buying exhaustion.
Important: Red background does NOT mean "sell now." It means "buying pressure is statistically extreme - watch for reversal confirmation."
Background zones highlight when momentum reaches statistical extremes, preparing traders for potential reversals before signals trigger.
🔶 SETTINGS EXPLAINED
📊 MACD Settings
Fast EMA (Default: 7)
The shorter EMA period. Lower values make MACD more responsive to recent price changes. Default of 7 is more responsive than traditional 12.
Slow EMA (Default: 25)
The longer EMA period. The difference between Fast and Slow determines overall MACD sensitivity. Default of 25 is slightly faster than traditional 26.
Signal EMA (Default: 9)
Smoothing period for the Signal line. Standard value maintained for reliable crossover reference.
🔥 Signal Detection
Lookback Period (Default: 50)
Number of historical bars used to calculate statistical baseline (mean and standard deviation).
- Lower values (30-40): More responsive to recent market conditions, may produce more signals
- Higher values (60-80): More stable baseline, fewer but potentially more reliable signals
Recommended range: 30-80 depending on timeframe and asset volatility.
Sensitivity (Default: 2.0)
Standard deviation multiplier determining the threshold for "extreme" classification.
- 1.5: Lower threshold, more frequent signals, higher false positive rate
- 2.0: Balanced setting - recommended for most users
- 2.5+: Higher threshold, fewer signals, only the most extreme conditions
Think of this as a statistical confidence level: 2.0σ ≈ 95th percentile extremity.
Use Percentile Detection (Default: OFF)
Alternative statistical method. When enabled, uses percentile ranking instead of standard deviation approach.
Percentile Threshold (Default: 95%)
When percentile mode is active, signals trigger when histogram magnitude ranks in the top X% of all values within the lookback period.
- 90%: Top 10% of historical values
- 95%: Top 5% of historical values (recommended)
- 99%: Top 1% - only the most extreme cases
🔶 RECOMMENDED CONFIGURATIONS
Conservative (Swing Trading):
- Lookback: 60-80 bars
- Sensitivity: 2.0-2.5
- Timeframe: 4H, Daily
- Fewer signals with higher statistical significance
Balanced (Position Trading):
- Lookback: 50 bars
- Sensitivity: 2.0
- Timeframe: 1H, 4H
- Moderate signal frequency with good reliability
Active (Shorter-term Trading):
- Lookback: 30-40 bars
- Sensitivity: 1.5-1.8
- Timeframe: 1H
- More signals, requires additional confirmation from other methods
🔶 TIMEFRAME RECOMMENDATIONS
- Optimal: 4-Hour and Daily charts - Cleanest signals with strongest statistical significance
- Good: 1-Hour charts - Acceptable signal quality for active traders
- Not Recommended: 15-minute and below - Increased statistical noise reduces signal reliability
Lower timeframes produce more random fluctuations in histogram values, making statistical extremity detection less meaningful.
🔶 ALERT CONFIGURATION
Three alert conditions available for automated notification:
Bullish Reversal Alert
Triggers only on green (bullish) signals. Suitable for traders focusing on long positions.
Bearish Reversal Alert
Triggers only on red (bearish) signals. Suitable for traders focusing on short positions.
Any Reversal Alert
Triggers on both bullish and bearish signals. Single alert setup captures all opportunities.
To configure: Right-click indicator → Add Alert → Select desired condition → Choose notification method (popup, email, webhook, mobile push)
🔶 IMPORTANT LIMITATIONS
- Signals indicate statistically extreme divergence with reversal initiation - they do not guarantee actual price reversal will occur or continue
- Strong trends can produce multiple extreme readings before meaningful reversal occurs
- Statistical thresholds are calculated from historical data and may not accurately predict future market behavior
- The indicator performs best in ranging and mean-reverting market conditions
- Trending markets may produce early signals - consider using additional trend filters for confirmation
- Lower timeframes significantly increase noise and reduce signal reliability
- Past signal performance does not guarantee future results
- This is an analysis and planning tool, not a standalone trading system
- Always combine with other analysis methods including support/resistance levels, volume analysis, and broader trend context
🔶 RISK DISCLAIMER
Trading involves substantial risk of loss and is not suitable for all investors. This indicator is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Past indicator performance does not guarantee future results. Statistical patterns observed in historical data may not repeat in future market conditions. All investment and trading decisions are entirely your own responsibility. Never risk more than you can afford to lose.
🔶 HOW TO GET ACCESS
This script is provided as Invite-Only. To request access, please check the links in my TradingView profile or send me a direct message.
TDL: Wave Oscillator Confluence Pro════════════════════════════════════════════════════════
WAVE OSCILLATOR CONFLUENCE PRO
Multi-Factor Confluence Scoring System
════════════════════════════════════════════════════════
Wave Oscillator Confluence Pro is a multi-factor confluence scoring system that synthesizes five independent market dimensions into quantified Buy/Sell strength. Instead of stacking separate indicators and visually "guessing" alignment, this script runs a Confluence Scoring Engine that weights and sums agreement across Momentum, Volatility Regime, VWAP Context, and Order-Flow-style divergence to produce graded signals (Moderate vs Strong).
Why this is not a mashup: every module feeds a single decision framework (Buy score vs Sell score → Net Confluence → graded signals + background intensity). You can audit and tune the contribution of each factor via weights and thresholds.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 METHODOLOGY ATTRIBUTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RSI concepts based on J. Welles Wilder's RSI
TTM Squeeze mechanics inspired by John Carter's BB/KC volatility compression framework
Wave-style smoothing concepts popularized by LazyBear / WaveTrend-style presentations
CVD logic based on general order-flow principles, implemented here as a candle/volume-derived proxy
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔢 CONFLUENCE FACTORS (5)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ RSI State Machine (Momentum + Transitions)
Tracks overbought/oversold zones using a smoothed RSI "wave candle" view
Maintains state memory (last extreme) and detects transition behavior (e.g., first neutral candle after an extreme)
Scores extremes separately from transition states to reduce "staying extreme" noise
2️⃣ TTM Squeeze (Volatility Regime)
Compression detection using Bollinger Bands vs Keltner Channels
Three compression levels (Low / Medium / High)
Detects squeeze release ("firing") for volatility expansion timing
Optional higher timeframe squeeze mode
3️⃣ CVD Divergence Spikes (Order-Flow Proxy)
Builds a cumulative delta-style line using lower timeframe intrabar volume direction (via request.security_lower_tf)
Normalizes CVD vs price momentum and detects statistical spikes using StdDev thresholds
Includes session/anchor-based cumulative tracking to reset/segment flow
Note: This is an order-flow proxy derived from OHLC/volume behavior (not true bid/ask delta).
4️⃣ Session VWAP Deviation Context
Calculates a session-based VWAP (custom ET start/end) with standard deviation bands (σ)
Generates VWAP signals when price is extended beyond bands during RSI transition gating
Designed to provide context around mean-reversion/extension conditions
5️⃣ RSI Divergence Detection (Structure Confirmation)
Regular bullish/bearish divergence
Hidden bullish/bearish divergence (continuation patterns)
Automatic pivot detection with configurable lookback/range constraints
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 SIGNAL TYPES (LEGEND)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ Strong Confluence — Large Diamond → High-confidence multi-factor alignment (score ≥ Strong threshold)
◇ Moderate Confluence — Small Diamond → Moderate alignment (score ≥ Moderate threshold)
▲ VWAP Signal — Triangle → RSI transition + VWAP band breach (context layer)
● CVD Spike — Circle → CVD/price divergence spike (statistical outlier)
📍 Divergence — Label + line → Regular/hidden divergence detected
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 VISUAL ELEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RSI Candles: Green (oversold), Red (overbought), Gray (neutral)
Squeeze Dots (around the 50 line): show compression state vs release
Background Shading: intensity reflects Net Confluence (Buy − Sell)
Confluence Label (optional): displays Net score + Buy/Sell components
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Confluence Thresholds
Strong Signal (default 2.5): typically requires multiple aligned factors
Moderate Signal (default 1.5): fewer factors aligned
Weight Customization
Each factor's contribution is adjustable, including:
RSI Extreme vs RSI Transition
Squeeze Building vs Squeeze Fire
VWAP Deviation
CVD Spike
Regular vs Hidden Divergence
This lets you tune the engine for different instruments/timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 HOW TO USE (PRACTICAL WORKFLOW)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Start with Diamonds (permission layer):
Strong diamonds = highest agreement across modules; Moderate = partial agreement.
2. Use Squeeze regime for timing:
Compression = patience; release/expansion = momentum opportunity (or risk of chasing).
3. Use VWAP deviation for context:
Best interpreted as extension/mean-reversion context when paired with RSI transitions.
4. Use CVD spikes + divergence as confirmation or warning:
Spikes often highlight disagreement between flow proxy and price; divergence highlights momentum structure shifts.
5. Combine with price action & levels:
This tool quantifies confluence — it's strongest when used alongside structure/levels/risk management.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 NOTES & LIMITATIONS (TRANSPARENCY)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MTF Squeeze: if enabled, higher timeframe values can update until the HTF candle closes (expected HTF behavior).
Pivot-based divergence: divergence signals are confirmed with a right-lookback, so they appear after pivots are established.
CVD: this is not exchange bid/ask delta; results can vary by symbol/data feed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS AVAILABLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Strong/Moderate Buy/Sell Confluence
Regular/Hidden Bullish/Bearish Divergence
High Compression Squeeze + Squeeze Fired
VWAP Buy/Sell Signals
CVD Bullish/Bearish Spikes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ RISK DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Educational/informational use only. Trading involves substantial risk. Past performance is not indicative of future results. Do not trade solely based on indicator signals — always use risk management.
════════════════════════════════════════════════════════
VWAP Tension Bands + Osc Sigma Gap [MAXmks]Hello Traders,
This indicator started as an accident. I was building a different tool — a multi-metric dashboard — and added VWAP deviation as one of the components. I expected it to help catch falling knives. It didn't.
But I noticed something else. During cooling-off periods — when volatility fades and price just sits there, not really going anywhere — VWAP deviation on lower timeframes would start climbing quietly. And more often than not, a pullback followed. Sometimes a liquidity sweep first, then a pullback. I watched this pattern for months before deciding to build a dedicated tool around it, adding oscillator confirmation to filter the noise.
This is that tool.
The core idea
Markets act like a rubber band around VWAP — the further price stretches, the higher the tension. But raw deviation isn't enough. The real question: is momentum confirming the stretch, or lagging behind?
The σ-Gap captures when these two disagree — price pushed hard, but internals haven't caught up. That's where mean-reversion setups tend to appear.
The indicator tracks VWAP deviation across 2m / 5m / 15m simultaneously and compares it against a composite of momentum oscillators (Williams %R, CVD-based metrics). Signals require multi-timeframe consensus — no single timeframe can trigger alone.
Adaptive thresholds
What counts as "extreme" isn't fixed. Distance is measured in standard deviations (σ) , not pips or percentages — so the indicator adapts to volatility automatically. Thresholds scale with regime and historical distribution, adjusting to current market conditions in real time.
Two modes
Standard — adaptive thresholds, more signals. Good for active sessions and exploration.
High Precision — adds divergence confirmation from multiple oscillators (MFI, Delta RSI, CVD Z-Score). Fewer signals, higher selectivity.
Extreme Tension
When σ-Gap exceeds 1.6× the threshold, the indicator can fire without full confirmation. Rare, but these are the "overstretched" moments worth watching.
Filters (so you don't trade ghosts)
RVOL filter blocks signals during low activity. Session close filter avoids entries near VWAP reset. 24h volume filter skips illiquid instruments. Cooldown prevents signal clustering in the same direction.
Best use case
Built for short-term mean-reversion — quick snapback plays on 5m–15m charts where price overextends and reverts within a few candles. The engine is optimized for this rhythm, not for trend-following or swings.
On-chart
Tension Bands show dynamic threshold zones around VWAP. Signals are non-repainting and confirmed on bar close. Compact HUD displays all metrics, filter states, and signal status in real time.
Alerts
Pre-signal alerts when conditions start forming. Confirmed signal alerts with full breakdown: VWAP deviation values, σ-Gap readings, divergences detected, current mode.
Volume matters
This is a VWAP-based indicator. No volume data = no signal. If your instrument shows "No Volume" in the dashboard, switch to a data feed that provides it (crypto spot, futures, stocks with real volume).
A note on expectations
I use this logic in my own research and it has shown useful results for me in my backtesting scenarios. But this is an indicator for analysis , not a magic button. Your execution, fees, slippage, and market regime all matter. Treat signals as context, not commands. DYOR.
Feedback welcome.
For educational and analysis purposes only. Not financial advice.
Chaikin Oscillator Z-Score With Divergences [MAXmks]Hello Traders,
This is my take on the Chaikin Oscillator — statistically normalized into a Z-Score with built-in divergence detection.
The problem with raw Chaikin
The standard ChO is unbounded and extremely sensitive to volume spikes. A single anomalous bar can flatten the entire oscillator, making it hard to compare signals across time or between instruments.
The fix
Z-Score normalization with asinh (inverse hyperbolic sine) transformation. While standard Z-Scores assume a normal distribution, market data often features "fat tails" (extreme outliers). This transformation compresses those spikes effectively, ensuring the indicator remains responsive without getting stuck during high-volatility events. The result: a more comparable scale across instruments.
What's inside:
Adaptive normalization + EMA-based variance for smooth Z calculation
Regular and hidden divergence detection with segment validation (fewer false signals)
Gradient coloring that intensifies toward extremes
Dashboard with current Z value
Pre-built alerts for OB/OS entries/exits and all divergence types
Note: This is a volume-based indicator. No volume = no signal. If you see "No Volume Data" in the dashboard, switch to a data source that provides volume.
Works on any timeframe. Feedback welcome.
For analysis purposes, not financial advice.
Mounir Delta Wave HistogramMounir Delta Wave Histogram is a professional volume-based indicator designed to visualize directional market waves using estimated volume delta.
It accumulates buying and selling pressure across price movements to form clear histogram blocks that represent bullish and bearish waves. Each wave displays:
• Total traded volume
• Volume delta (buyers vs sellers)
• Delta percentage
• Time duration of each wave
This allows traders to quickly identify:
✔ Strong momentum moves
✔ Hidden divergence between price and volume
✔ Trend continuation and exhaustion
✔ Shifts in market pressure
The indicator offers multiple display modes, customizable colors, wave inversion options, and alert conditions for key thresholds and new wave formations.
📊 Compatible with all markets including Futures, Forex, Crypto, Stocks, and Indices — anywhere volume data is available.
Ideal for:
• Order flow analysis
• Momentum trading
• Scalping & swing trading
• Trend confirmation
Apex Adaptive RSIThe Apex Adaptive RSI is a next-generation momentum oscillator designed to solve the "lag vs. noise" problem found in traditional indicators. By utilizing an Efficiency Ratio (ER), the script dynamically adjusts its sensitivity based on current market volatility.
How it Works: Unlike a standard RSI that uses a fixed period (e.g., 14), the Apex Engine calculates the "Efficiency" of price action. In trending markets, it speeds up to catch entries early; in choppy or sideways markets, it slows down to filter out false signals. This is then smoothed using Volatility-Adjusted Heikin Ashi candles to provide a clear visual of momentum strength.
Key Features: The Apex Adaptive RSI is a high-performance momentum oscillator that replaces traditional static RSI logic with an Efficiency Ratio (ER) engine. It dynamically scales its sensitivity—speeding up to catch trend breakouts and slowing down to filter out noise during market consolidation.
Visual Guide & Features:
1. The Apex Heikin Ashi Candles Instead of a single line, momentum is visualized through HA candles.
Bright Colors (Neon Green/Red): High-velocity momentum.
Dark Colors: Waning momentum or consolidation.
Wicks: Show the "reach" of RSI before the internal smoothing takes over.
2. The Volatility Cloud (Purple Shaded Area) This is your "Market Safety Zone."
The Cloud: Represents 2 standard deviations of RSI movement.
The Logic: When the RSI candles exit this cloud, the market is in an extreme state. Divergences that occur outside or at the edge of this cloud are statistically much more likely to result in significant reversals.
3. TOP & BOT Triangles (Labels)
TOP (Red Triangle): Marks a confirmed Pivot High in momentum.
BOT (Lime Triangle): Marks a confirmed Pivot Low in momentum.
These labels appear once the "Pivot Strength" (lookback) is satisfied, confirming a structural turning point.
4. TM & BM Dots (The Apex Markers)
TM (Top Marker - Red Circle): The exact "ceiling" of an RSI pulse.
BM (Bottom Marker - Green Circle): The exact "floor" of an RSI pulse.
Trading Tip: Use these dots to draw manual trendlines or to identify "Liquidity Grabs" (where price breaks a high but the TM dot remains lower than the previous peak).
5. Divergence Lines (Customizable)
Solid Lines (Regular Divergence): Indicates a potential trend reversal.
Dashed/Dotted Lines (Hidden Divergence): Indicates trend continuation.
Historical Memory: The script retains these lines on your chart for backtesting and structural analysis.
Unified Alert System:
The script includes a "Any Divergence" alert. This allows you to set a single notification for your ticker that triggers for all four types of signals (Reg Bull, Hid Bull, Reg Bear, Hid Bear) on the close of the confirmation bar.
Adaptive Sensitivity: Automatically scales between fast and slow periods based on market speed.
Heikin Ashi RSI Candles: Integrated "Apex Candles" that change color based on momentum velocity, making trend shifts easy to spot.
Unified Divergence Engine: Automatically detects and plots Regular (Reversal) and Hidden (Continuation) divergences.
Historical Backtesting: Divergence lines remain on the chart, allowing for thorough historical analysis.
Volatility Bands: Real-time statistical "Guardrails" (Bollinger-style) that identify extreme overbought and oversold conditions.
Smart Alerts: A unified "Any Divergence" alert that notifies you the moment a signal is confirmed.
How to Trade:
Reversals: Look for Regular Divergence when the RSI is outside the Volatility Bands.
Trend Following: Use Hidden Divergence (dashed lines) as high-probability entries in an existing trend.
Momentum: Watch the Apex Candle colors; a shift from dark to bright green/red indicates a "Pulse" in momentum.
Enjoy
Cemmec
Legacy Oscillator | Lyro RSOverview
The ⚜️Legacy Oscillator is a volatility momentum indicator designed to evaluate price behavior relative to its dynamically smoothed mean. By measuring standardized price displacement and filtering it through adaptive moving averages, the oscillator provides insight into trend direction, momentum strength, and cyclical shifts in market structure. This approach allows traders to assess when price is expanding, contracting, or transitioning between regime.
Originality
The core structure of the Legacy Oscillator is built around a volatility WaveFlow calculation that measures standardized price displacement from a dynamically smoothed mean. Rather than relying on raw price momentum or fixed oscillators, the indicator adapts to changing market conditions by combining adaptive moving averages with statistical normalization. This foundation enables the oscillator to respond consistently across different volatility regimes while preserving sensitivity to momentum shifts and structural transitions.
From this base, the script integrates multiple analytical layers within a single framework. These include a WaveFlow oscillator with signal-line interaction, a momentum histogram that captures acceleration and deceleration, an optional volume-weighted Alternative WaveFlow derived from the Money Flow Index, and automated detection of both regular and hidden divergences. Visual context is enhanced through configurable background regimes, dynamic color palettes, zone highlighting, reversal markers, and extensive alert logic. Rather than separating these techniques into isolated tools, the Legacy Oscillator unifies trend, momentum, divergence, and volume-influenced analysis into a cohesive and flexible system suitable for a wide range of trading styles.
Key Features
The indicator includes a wide array of inputs for customization. Users can select the source price for calculations and choose a preferred signal mode from Trend, Slope Trend, Reversion, Extremes and more!
In WaveFlow mode, traders configure the channel length used for volatility normalization, the smoothing length of the oscillator, and the signal length that defines crossover sensitivity. This mode evaluates momentum and trend direction by measuring standardized price displacement relative to a dynamically smoothed mean.
In Reversal & Extremes mode, users define overbought and oversold thresholds that classify statistically stretched conditions. These thresholds are used to highlight potential reversal zones through background states, markers, and alerts when momentum reaches extreme levels.
In Slope & Trend mode, the oscillator’s position relative to its signal line or zero line is used to determine directional bias. This mode emphasizes trend continuation and momentum alignment rather than mean-reversion behavior.
In Alternative WaveFlow mode, traders enable a volume-weighted momentum model derived from a transformed Money Flow Index. This mode incorporates volume dynamics into the oscillator framework, providing an additional perspective for confirming or challenging price-based momentum signals.
In addition, the script provides multiple visualization regimes, including background coloring and zone highlighting, alongside customizable color palettes. Predefined themes or user-defined colors ensure clarity and consistency across different chart environments.
Summary
In summary, the Legacy Oscillator combines volatility momentum analysis with multiple integrated modes, including WaveFlow trend evaluation, extreme-level reversal detection, volume-weighted Alternative WaveFlow, and automated divergence recognition. Its design emphasizes adaptability, visual clarity, and structured signal generation through dynamic coloring, zone highlighting, and alert logic. This makes it a practical framework for traders seeking to assess momentum, trend structure, and potential reversals from multiple perspectives within a single unified tool.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
SMT Cycles by AlgoKingsSMT Cycles 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 ARE SMT CYCLES?
This indicator identifies Smart Money Technique divergences using cycle-based analysis rather than standard timeframes. Cycles represent natural market rhythms (sessions, 90-minute institutional windows, true daily periods) that better align with institutional trading patterns than arbitrary timeframe bars.
Example: During the London session, NQ makes a new high but ES fails to follow = Bearish SMT divergence within the London cycle
UNDERLYING METHODOLOGY
This indicator combines four analytical layers:
1. AUTOMATIC CORRELATION MAPPING
Built-in correlation intelligence for 40+ pairs (identical to SMT Custom):
- 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 and exchange prefixes using regex-based parsing for futures contracts and micro variants.
2. CYCLE-BASED PERIOD DETECTION
Unlike standard timeframe analysis, this indicator uses market structure cycles:
SWING CYCLES (Position Trading):
- Yearly: 12-month institutional rebalancing periods
- Quarterly: 3-month earnings and fund rotation cycles
- Monthly: Calendar month institutional flows
- Weekly: 7-day swing trading cycles
- Daily: Standard 18:00-18:00 EST bars
- TrueDay: 00:00-00:00 EST for 24-hour markets (futures, forex, crypto)
INTRADAY CYCLES (Day Trading):
- Session: Asia (18:00-02:00), London (02:00-08:30), NY AM (08:30-12:00), NY PM (12:00-17:00) EST
- 90m: Three 90-minute windows per trading day (02:00-03:30, 03:30-05:00, etc.)
- 30m: 30-minute institutional order flow windows
- 10m, 3m, 1m: Scalping cycles for precise entry timing
Technical implementation:
- TrueDay calculation: Detects candle closes at exactly 00:00 EST using time modulo arithmetic on 24-hour markets. Differs from standard Daily bars which use futures settlement times (18:00 EST).
- Session detection: Regex pattern matching on hour/minute timestamps to identify cycle boundaries (e.g., h==2 and m==0 triggers Asia session end)
- 90m hierarchy: Groups sub-90m cycles (30m, 10m, 3m, 1m) under their parent 90m window using group timestamp tracking (gx field)
- Intermediate accumulation: For multi-bar cycles (TrueDay, Sessions, 90m), maintains running high/low (nh1, nl1) across constituent bars until cycle completion
3. MULTI-TIMEFRAME CYCLE ANALYSIS
Proprietary cycle synchronization:
- Tracks price structure across up to 11 configurable cycles simultaneously
- Maintains independent high/low tracking for each symbol pair using request.security()
- Compares previous cycle extremes (high , low ) across correlated pairs
- Timestamps divergence formations at chart timeframe precision
- Implements adaptive purge logic (1min to 12M) based on cycle type
4. DIVERGENCE CLASSIFICATION SYSTEM
Bullish SMT: Chart symbol makes lower low within cycle, correlated pair does NOT = Institutional buying pressure
Bearish SMT: Chart symbol makes higher high within cycle, correlated pair does NOT = Institutional selling pressure
Advanced features include level tracking (monitors when extremes are revisited), automatic extension until both levels violated, 90m hierarchy overlap filtering (hides sub-90m SMT within parent 90m window), and inverse correlation support for DXY relationships.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Cycle boundary detection: Custom logic for TrueDay calculation (00:00 EST candle close detection using modulo arithmetic on 24h markets), Session identification (time-based regex for Asia/London/NY periods), and 90m window calculation (minute offset from 02:00 EST baseline)
- Intermediate cycle accumulation: Complex state management for multi-bar cycles (Sessions, 90m, TrueDay) that build complete cycle values across constituent bars before finalizing
- 90m hierarchy system: Proprietary grouping algorithm (gtype, gca, gx fields) that links sub-90m cycles to parent windows for intelligent overlap filtering
- Automatic symbol mapping: Custom logic for 40+ correlation pairs including futures contract recognition and exchange inheritance
- Adaptive purge system: Cycle-specific memory management (1S to 12M) optimized through backtesting
- Multi-level tracking: Simultaneous monitoring of multiple active divergences across different cycle types with state management for "taken" levels
Standard SMT indicators use fixed timeframes. This script analyzes institutional cycles that don't align with standard bar periods, requiring complex time arithmetic and multi-bar aggregation logic.
TECHNICAL COMPONENTS
Core structures:
- Cycle Object: Tracks high/low/time for each cycle type with intermediate values (nh1, nl1) for multi-bar cycles and complete cycle values (h1, l1, t1) upon cycle completion
- CycleType Enum: Defines 11 cycle types (year, quarter, month, week, day, trueday, session, m90, m30, m10, m3, m1) with associated period strings and purge thresholds
- Point Object: Stores divergence formation data for chart symbol level and correlated symbol level with "taken" status tracking
- SMT Object: Visual representation with line extension, tooltip showing formation time (EST), and optional 90m group timestamp (gx) for hierarchy filtering
Cycle detection logic:
- TrueDay: Tests if hour==0, minute==0 at candle close OR day-of-week changes (with Monday exception for markets closed weekends)
- Session: Matches specific hour:minute combinations (16:30=Void, 02:00=Asia end, 06:30=London end, 11:00=NY AM end, 15:30=NY PM end)
- 90m: Calculates (hour*60 + minute - 120) % 90 == 0 to detect 90-minute boundaries from 02:00 EST baseline
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 cycle categories (Swing or Intraday) in settings
4. Enable/disable individual cycles within each category
5. 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)
Chart Timeframe Requirements:
- Swing cycles: Chart TF must be <= cycle period (e.g., Daily cycle requires 1H or lower chart)
- Intraday cycles: Chart TF must divide evenly into cycle (e.g., 90m cycle requires 30m, 15m, 10m, 5m, or lower chart)
- TrueDay: Automatically selected for 1H and below chart TF on 24-hour markets (futures, forex, crypto)
Interpretation:
- Blue lines = Bullish SMT (chart made lower low within cycle, correlated pair held higher). Potential reversal up.
- Red lines = Bearish SMT (chart made higher high within cycle, correlated pair stayed lower). Potential reversal down.
- Dots in labels = Multiple SMT signals overlap. Hover to see all cycles showing divergence.
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 90m Hierarchy Overlap: Hides sub-90m SMT (30m, 10m, 3m, 1m) when contained within parent 90m window
- Hide All Overlap: Hides lower precedence SMT when start/end points overlap higher precedence SMT
Intraday Cycles (Enable/Disable per symbol):
- Session: Asia (18:00-02:00), London (02:00-08:30), NY AM (08:30-12:00), NY PM (12:00-17:00) EST
- 90m: Three 90-minute institutional windows per day
- 30m: 30-minute cycles
- 10m, 3m, 1m: Scalping cycles
- Each cycle has two checkboxes: left for Symbol #1, right for Symbol #2
Swing Cycles (Enable/Disable per symbol):
- Yearly: 12-month cycles
- Quarterly: 3-month cycles
- Monthly: Calendar month cycles
- Weekly: 7-day cycles
- Daily: Standard daily bars (18:00-18:00 EST) OR TrueDay (00:00-00:00 EST on 1H and below chart TF for 24h markets)
- Each cycle has two checkboxes: left for Symbol #1, right for Symbol #2
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.
SMT Custom by AlgoKingsSMT 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 , low ) 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.
RSI [Hash Capital Research]RSI is a visually enhanced momentum indicator built on the classic Relative Strength Index.
This version expands RSI into a more flexible analytical tool through smoothing options, adaptive zone-based coloring, optional signal line overlays, and divergence detection.
It is designed as a context-building indicator, not a standalone entry system.
What This Indicator Does
This script calculates a smoothed RSI using user-defined parameters and then provides multiple optional enhancements:
1. Adaptive RSI Visualization
The core RSI is plotted with:
Zone-based color changes (neutral, oversold, overbought)
Optional glow effects to emphasize extreme conditions
User-defined color intensity and midline visibility
The goal is to provide clearer visual segmentation of trend strength and momentum behavior.
2. Custom Smoothing & Signal Line Options
The indicator allows:
Multi-layer smoothing for RSI stability
An optional signal line using the trader’s preferred moving-average method (SMA, EMA, SMMA/RMA, WMA, VWMA)
This helps operators examine whether momentum is accelerating or stabilizing relative to its mean.
3. Overbought/Oversold Tools
User-defined thresholds determine:
Highlighted zones
Optional markers for extreme reversals (based on RSI + momentum + velocity criteria)
Midline (50) cross highlights for trend-bias transitions
These features help contextualize where the RSI sits relative to broader momentum regimes.
4. Divergence Detection (Optional)
When enabled, the script scans for regular bullish and bearish divergences using pivot-based structure.
It compares:
Price making lower lows vs RSI making higher lows (bullish)
Price making higher highs vs RSI making lower highs (bearish)
Detected divergences are plotted on the RSI panel with visual labels.
This detection uses pivot lookbacks and range limits defined by the user.
5. Alerts
The indicator provides optional alerts for:
Extreme reversals
Overbought/oversold momentum shifts
Midline (50) crossovers
Bullish / bearish divergences
Alerts are intended for monitoring, not for automated execution.
How to Use It
This RSI modification is intended to support broader analysis workflows, including:
Identifying regime shifts using midline crosses
Monitoring momentum structure across trend phases
Highlighting oversold or overbought clustering
Adding a visual signal line to interpret momentum smoothing
Spotting divergence between price and RSI
As with all indicators, this tool should be used as one component of a complete analysis framework.
What Makes This Version Distinct
This script maintains the core behavior of RSI but introduces:
A multi-layer smoothing system
Adaptive colors calibrated to oversold/neutral/overbought zones
Optional glow visualizations
A modular signal-line engine with multiple MA types
Configurable divergence detection with visual labels
Multiple marker placement modes for extreme conditions
These features expand RSI’s readability while keeping its underlying logic transparent and consistent with common operator workflows.
Important Notes
This is an indicator, not a strategy. It does not execute trades or calculate performance metrics.
The visual enhancements are designed to improve clarity, not to generate automated “buy” or “sell” systems.
Divergence detection is optional because divergence is inherently contextual and may not apply equally across all markets or timeframes.
ICT SMT [Pro] (fadi)Smart Money Technique (SMT) is a powerful tool used to identify institutional accumulation or distribution. It occurs when one asset makes a lower low (or higher high) while a correlated asset fails to do so, making a higher low (or lower high) instead. This divergence shows strong buying or selling pressure on the asset that failed to break its level.
While SMT is a high-probability confluence, tracking it manually is a distraction. It forces you to take your focus away from price action to constantly monitor highs and lows across two or more different charts.
ICT SMT automates this entire process , identifying the "crack in correlation" in real-time so you can stay focused on your trade execution, and draws the SMT levels right on your chart.
Core Functionality & Logic
✅ Intelligent Symbols Matching
When you load a chart, ICT SMT will look for the best matching symbols by parsing your current chart to understand its asset type and exchange. It will then run propriety logic to match contract size and exchange, if needed.
It intelligently recognizes contract sizes. If you are viewing NQ, it automatically compares it against ES. If you switch to MNQ (Micro), it instantly adapts to compare against MES (Micro).
And if you are trading Forex or Crypto for example, accuracy in SMT is often ruined by comparing data from different liquidity providers. ICT SMT automatically identifies your current chart's provider and reuses that same exchange for the target asset whenever possible (e.g., OANDA to OANDA). This ensures the divergence is based on synchronized price feeds, eliminating "fake" signals caused by exchange price gaps.
Global Mapping: This system works across all asset classes. While it provides optimized defaults, traders have full control via a flexible mapping system to pair any symbol or override the defaults as needed.
✅ Live SMT Detection
ICT SMT evaluates price action as the current candle develops. An SMT is identified the moment one asset breaks its logical level while the other fails to do so, providing real-time feedback before the candle even closes.
Depth Sensitivity: Users can select the depth of analysis via a dropdown menu (Small, Medium, or Large) to define how the engine builds its logical levels.
✅ Session-Specific Filtering
To ensure the highest probability setups, ICT SMT uses time-based logic to enable or disable the calculation engine. You can configure up to four custom trading sessions (e.g., London, NY AM, NY PM). SMTs are only processed within these windows, keeping the chart clean and optimized for peak performance.
✅Alert Engine
Stay informed of market shifts without needing to hover over the screen. The script includes a professional alert suite:
• SMT Detected (Intra-Candle): Triggers the moment a divergence begins forming in real-time.
• SMT Confirmed: Triggers once the candle closes, validating that the divergence held through the completion of the interval.
How it Works
Add the indicator to your chart
Make sure the assets you trade are on the list, modify it if needed
You are done! Trade and navigate your charts as usual
When a new symbol is loaded, the indicator identifies the symbol type and exchange
Performs a lookup to find matching pairs in the mapping list
Based on the type, automatically adjusts the matching pairs to match the exchange and size for data consistency.
As new candles are formed, the indicator builds a list of the best logical levels to compare from each symbol and compares the two in real-time to identify the divergence.
Settings & Configurations
✅ General Settings
Show no more than - Limits the number of active SMT labels visible on the chart at once to prevent visual clutter.
Type of SMT to show - Choose between Bullish SMT, Bearish SMT, or \'Both\' to filter the signals based on your current market bias.
Lookback depth - Determines the lookback period for our proprietary pivot logic. Higher values analyze a longer history; lower values prioritize the most recent institutional movements.
Show 2 Candles SMT - When enabled, the indicator looks for SMT divergences occurring within a tight 2-candle window, ideal for high-speed \'Intra-Candle\' scalping setups.
Detect one SMT per pivot - Ensures that each logical swing high or low only generates a single signal, preventing duplicate labels on the same price move.
Delete irrelevant SMT - Automatically removes SMT labels if price moves past the pivot point, keeping your chart focused only on valid, tradeable confluences.
✅ Display Settings
Link - Customizes the appearance of the line connecting the two assets\' price points. Adjust the color and thickness to match your chart theme.
Label - Toggles the SMT text labels. You can adjust the color, size, and transparency to ensure the signals are visible but not distracting.
✅ Session
Sessions 1 to 4 - Defines a specific trading window. Enable to filter SMT detection within your chosen times to minimize market noise.
✅ Alerts
Alert on real-time SMT (Noisy) - Triggers the moment a divergence is detected in real-time. This provides an early warning during the formation of a wick, but may disappear if price action recovers before the candle closes
Alert on confirmed SMT - Triggers only after the candle closes. This ensures the SMT is locked in and validated by the final price, eliminating temporary signals.
✅ Pairing
Pairs - This is the Global Mapping engine. By default, it automatically detects your chart (e.g., NQ to ES). Use these fields to manually override or add specific pairs (e.g., DXY or specific Crypto exchanges). Invert: "Flips the price calculation for the secondary symbol. This is essential when comparing positively correlated assets against negatively correlated ones, such as EURUSD vs. DXY.
🔥 Usage Methodology
In ICT theory, SMT is a powerful confluence, not a standalone signal. It is important to note that Traders should not rely on SMT alone for entries. This tool is designed to support existing trade ideas, such as confirming a daily bias, a Fair Value Gap (FVG), or a run on liquidity. It acts as a "confirmation of intent" within your broader trading framework.
Disclaimer: Trading involves significant risk. ICT SMT is a technical analysis tool and does not constitute financial advice or a guarantee of profit.
LakyFx Delta Divergence Bands V2.24LakyFx Delta Bands (Multi-Source Delta Aggregator)
What this indicator is
LakyFx Delta Bands is a volume-delta analytics tool designed to estimate buy vs sell pressure by decomposing volume into “buy volume” and “sell volume” per candle, then computing Delta = Buy − Sell. It can aggregate data from multiple exchanges/venues (for crypto) or switch to a single-source mode (for stocks/indices) using the chart symbol or a manual proxy symbol.
This indicator does not generate guaranteed trade signals. It is built to help you:
Understand whether participation is dominated by buying or selling pressure,
Spot momentum shifts when delta trends change,
Detect regular and hidden divergences between price action and delta flow,
Smooth delta with configurable moving averages to reduce noise,
Use lower-timeframe aggregation to approximate intra-bar delta (when enabled).
Key concepts explained
1) Delta (estimated)
TradingView typically provides OHLCV (Open/High/Low/Close/Volume) per candle, not true order-by-order “aggressive buy/sell” tape for most symbols.
So this indicator estimates buy/sell volume from candle structure using one of these methods:
Simple method (directional volume):
If Close > Open: treat most volume as buying.
If Close < Open: treat most volume as selling.
If Close == Open: treat volume as neutral/0 split (or minimal split depending on implementation).
Candle Anatomy method (body + wicks weighting):
Attempts to distribute volume based on candle body size and wick structure.
Intuition: stronger directional bodies imply stronger directional participation; wicks represent rejection.
Result: Delta = BuyVolume − SellVolume
Positive delta suggests net buying pressure; negative delta suggests net selling pressure.
Important: This is an estimation model, not true executed market delta.
2) Aggregation (crypto multi-exchange)
In crypto mode, delta can be computed from multiple data sources and summed into a single composite delta:
Spot venues (e.g., Binance Spot)
Perpetual venues (e.g., Binance Perp)
If a venue does not list the symbol, the script ignores it (treats as 0 contribution) instead of erroring.
3) Single-source mode (stocks/indices)
When Stocks/Indices mode is enabled, the indicator ignores the crypto exchange list and uses one data source:
Either the chart’s symbol (syminfo.tickerid)
Or a Proxy Symbol you provide (example: use SPY or ES1! as a proxy for SPX).
This is crucial because many indices (like SPX) do not have real trade volume in the same way an ETF or futures contract does.
4) LTF Delta aggregation (intra-bar approximation)
Instead of computing delta only from the chart timeframe candle, the indicator can compute delta from lower timeframe candles and sum them to approximate the delta inside each higher-timeframe candle.
To mitigate limited 1-minute history, the LTF timeframe is chosen dynamically:
Chart TF ≤ 1H → use 1m
1H < Chart TF ≤ 4H → use 15m
Chart TF > 4H → use 1H
This increases stability and reduces the “not enough 1m history” problem.
Note: LTF aggregation is still an approximation and depends heavily on available historical data and session structure (especially for stocks).
What you see on the chart
A) Zero line (baseline)
A horizontal centerline represents Delta = 0:
Above 0 = net buying pressure
Below 0 = net selling pressure
B) Delta histogram
A histogram shows current candle delta (aggregated):
Positive bars above zero = net buying
Negative bars below zero = net selling
The histogram may be visually scaled (shortened) to improve readability if the raw delta is extremely spiky.
C) Delta Moving Averages (3 lines)
Three delta moving averages (MA1 / MA2 / MA3) are plotted on top of the histogram:
They smooth delta to highlight trend and momentum.
MA types and lengths are fully configurable.
Color/thickness settings help you visually detect:
MA crossing above/below 0,
MA slope changes (momentum shift),
MA separation (trend strength).
D) Divergences (regular + hidden)
The script detects divergences between:
Price pivots (swing highs/lows)
Delta signal pivots (delta or chosen MA / cumulative delta)
It can display:
Regular bullish divergence: price makes a lower low, delta makes a higher low
Regular bearish divergence: price makes a higher high, delta makes a lower high
And also:
Hidden bullish divergence: price makes a higher low, delta makes a lower low
Hidden bearish divergence: price makes a lower high, delta makes a higher high
Hidden divergences are typically shown with lighter / more transparent colors because they are usually treated as lower priority than regular divergences.
E) Value Box (top right)
A small table shows current values (minimal, readable):
MA2 (in millions if configured that way)
Delta (human formatted)
Optionally also shows debug information:
SYM: the active symbol used for computation (auto symbol or manual)
Sources: how many sources are enabled vs how many are actually active (valid data)
Δ TF: what timeframe is currently used for delta calculation (chart TF if not LTF, otherwise 1m/15m/1H)
Settings & what they do (explained)
1) Sources / Venues (Crypto list)
Enable 1..10: toggles each exchange feed on/off.
Symbol input per source: defines the venue ticker (e.g., BINANCE:BTCUSDT, BYBIT:ETHUSDT.P).
If Auto Symbols from Chart is enabled, the script derives tickers from the chart’s base currency and constructs venue tickers internally.
Why you still see BTCUSDT in settings:
TradingView does not allow scripts to programmatically rewrite the UI input fields. Auto symbols work internally, not by changing what you see in input boxes.
2) Auto Symbols from Chart
When enabled:
The script reads the chart’s base currency (e.g., BTC, ETH, SOL)
Builds venue tickers for each configured exchange (spot/perp format)
Uses those computed tickers (“used symbols”) for requests
When disabled:
Uses the manually typed sym1..sym10 values exactly as they appear.
3) Stocks/Indices Mode (Single source)
When enabled:
Crypto exchange list is ignored.
The script uses:
Proxy symbol if provided
Otherwise the chart symbol
Use cases:
Stocks: AAPL, TSLA, MSFT, etc. (chart symbol is enough)
Indices: SPX → set proxy to SPY or ES1! for meaningful volume
ETFs: SPY/QQQ (chart symbol is enough)
4) Proxy Symbol (optional)
Only used in Stocks/Indices mode:
If empty: uses chart symbol
If set: uses the proxy symbol for all delta calculations
Examples:
SPX proxy: AMEX:SPY or CME:ES1!
NDX proxy: NASDAQ:QQQ or CME:NQ1!
5) Delta Mode (calculation method)
You typically have:
Simple (directional candle)
Candle Anatomy
LTF Delta — Simple
LTF Delta — Anatomy
(Names may vary slightly, but the behavior matches.)
When to use what:
Simple: robust, easy to interpret, less “model risk”
Anatomy: potentially more nuanced, but more sensitive to candle structure
LTF versions: more granular delta estimate, but depends on data availability
6) Normalize Volume to Quote Currency (if present)
Some scripts multiply volume by price to approximate “quote volume”:
If ON: uses volume * close
If OFF: uses raw volume
For crypto, quote volume can sometimes give a more comparable magnitude across price regimes.
For stocks, raw share volume may be fine; quote volume can help compare capital flow.
7) Moving Averages (MA1/MA2/MA3)
Each MA usually includes:
Length: number of bars
Type: SMA / EMA / RMA / WMA / VWMA (depending on what you enabled)
Line width: thickness for readability
Color style: optionally dynamic by slope (e.g., bright when rising, muted when falling)
How to interpret:
MA above 0 = persistent net buying pressure
MA below 0 = persistent net selling pressure
MA slope turning = flow shift
MA compression (lines converging) = reduced directional dominance
MA expansion = strengthening trend
8) Divergence settings
Typical controls include:
Pivot length (left/right): how “swing points” are detected
Max lookback / range: divergence search window
Signal source for divergence: Raw Delta, MA2, or Cumulative Delta
Regular divergence ON/OFF
Hidden divergence ON/OFF
Hidden divergence sensitivity: often separate pivot length or confirmation conditions
Why pivots matter:
Divergence logic needs “confirmed” swing highs/lows, so it inherently lags by the pivot confirmation amount.
9) Visual controls
Histogram visibility
Histogram transparency
Histogram scaling (shortening) to reduce extreme spikes visually
Zero line color/opacity
Value Box on/off
Debug lines on/off
Practical usage tips
Crypto (multi-exchange)
Use a balanced set of spot + perp venues for broad participation.
If the token is small/mid cap and listed only on a few venues, the “Sources active” debug line will tell you why delta looks weak or flat.
Stocks
Use Stocks/Indices mode ON.
Prefer HTF Simple/Anatomy first.
Use LTF only on intraday charts where 1m/15m history is sufficiently available.
Indices
Use a proxy (SPY/ES1!) because index volume can be non-representative or missing.
Known limitations (important)
Delta is estimated, not true traded delta.
LTF data availability can be limited, especially for stocks.
Session gaps can make LTF aggregation less smooth on stocks.
If most venues do not list a token, multi-exchange delta will naturally be small/flat (sources ignored).
Summary
LakyFx Delta Bands gives you a clean, highly configurable way to visualize:
multi-source aggregated delta,
smoothed delta flow via configurable MAs,
divergence signals (regular + hidden),
and debugging feedback about what symbol and how many sources are actually driving the calculation.
If you want, I can also rewrite this documentation into a shorter “TradingView script description” format (less technical, more marketing style) or a “README” format with sections and examples.
Bear Lines: Liquidity Rails & Momentum [Premium]ACCESS: This is a restricted, invite-only institutional toolkit. To purchase a license and unlock this script immediately, visit: whop.com
What is Bear Lines? Bear Lines is a complete "Code Guardian" system designed to automate institutional price analysis. It removes the noise from your charts by plotting high-probability liquidity rails, momentum shifts, and market imbalances (FVGs) in real-time. It is designed to save traders hours of manual charting every day.
Key Features
1. Automated Liquidity Rails (The "Sandwich" Logic) Stop manually drawing lines every morning. Bear Lines automatically identifies and plots the most critical structural levels where price is likely to reverse or sweep:
Outer Shell: Weekly Highs & Lows (Major Structure).
Inner Shell: Daily Highs & Lows (Intraday Targets).
Visual Constitution: The script uses a strict non-overlapping label system to keep your chart clean and readable at all times.
2. Institutional Momentum (Sticky Glow) Visualize the true trend with our "Sticky Glow" technology.
Bullish Trend (Neon Green): Activates when a structural Bullish Divergence (Price Lower Low + RSI Higher Low) is detected. The glow persists until the structure is broken.
Bearish Trend (Neon Red): Activates when a structural Bearish Divergence is detected. The glow persists until the trend is invalidated.
Note: Includes "Bull" and "Bear" icons to signal the exact moment of a momentum shift.
3. Smart FVG Detection Automatically highlights Fair Value Gaps (Imbalances) that act as magnets for price.
Dynamic Cleanup: The system intelligently removes gaps that have been filled or are no longer relevant, ensuring your chart remains performant and clutter-free.
How to Trade This System
Identify the Bias: Use the "Sticky Glow" background to determine if the market is structurally Bullish or Bearish.
Wait for the Sweep: Look for price to interact with the Daily or Weekly Rails. These levels often act as the "Trigger" for a reversal.
Confirm the Entry: Wait for a Bull/Bear icon or an FVG rejection at the Rail to execute your trade.
Get Access This script is protected. To join the community and use Bear Lines on your chart today: Go to: whop.com
WhaleHunter: AO Cycle Monitor & MTF ScannerConcept & Utility
This script is a professional workspace designed for traders who utilize the Awesome Oscillator (AO) for Elliott Wave analysis and momentum trading. Unlike standard open-source divergence indicators, this tool solves three major problems: Signal Persistence (Missing signals), Wave Isolation (False signals across zero), and Multi-Timeframe Awareness.
Key Features & Innovation
1. Strict Divergence Engine (With Zero-Reset) Most automated divergence scripts incorrectly connect peaks from different market cycles.
The Fix: This algorithm includes a Reset on Zero logic. If the AO histogram crosses the Zero Line, the pivot memory is cleared. This ensures that divergences are only detected within the current wave structure (e.g., Wave 3 vs Wave 5), drastically reducing false positives during complex corrections.
2. "Sticky" MTF Scanner Monitoring divergences across 8 timeframes simultaneously is difficult because signals often appear and disappear quickly.
The Solution: The built-in Dashboard Table features a "Signal Memory" (Stickiness) system. When a divergence is confirmed on any timeframe (from 1m to 1 Month), the alert stays visible in the table for a user-defined number of bars (default: 5). This ensures you never miss a signal even if you aren't staring at the chart the moment it closes.
3. Automated Cycle Counter The script counts momentum waves (Zero crosses) starting from a specific user-defined Start Date.
Utility: This helps analysts track the maturity of a trend. The script highlights the "Golden Cycle" (3rd wave iterations) where momentum is statistically strongest.
How to Use
The Scanner: Place the indicator on a standard chart (e.g., 15m). The table will show you the status of trends on higher timeframes (4h, 1D).
The Setup: When you see a "BULL" signal on the 4H timeframe in the scanner, drop down to the 15m timeframe and look for a local divergence entry in the same direction.
Wave Counting: Set the Start Date to the beginning of a major trend (e.g., the low of the year) to see how many momentum cycles have passed.
Settings
Pivot Lookback: Adjust Left/Right bars to tune the sensitivity of peaks.
Stickiness: Increase this value to keep signals in the table longer.
Scanned Timeframes: Toggle specific timeframes on/off in the settings to save screen space.
Disclaimer: This tool is for market analysis only and does not guarantee profits.
SPY / DIA Divergence Z-Score (30s Optimized)SPY / DIA Divergence Z-Score (30s Optimized) is a short-term relative strength indicator designed for opening-range mean reversion trading.
This script measures normalized return divergence between SPY and DIA, converts it into a Z-score, and highlights statistically extreme conditions where short-term reversion is more likely to occur.
Key characteristics:
Optimized specifically for the 30-second timeframe
Uses EMA-smoothed returns to reduce microstructure noise
Focuses on divergence and reversion, not trend-following
Includes a session filter targeting the early NYSE open
Designed as a decision-support tool, not an automated strategy
Intended use:
Best used between 9:32–9:45 ET
Works best when combined with VWAP and price action
Signals indicate potential exhaustion and reversion zones, not guaranteed entries
Important notes:
No trade entries or exits are provided
No repainting
Not financial advice
Meant for discretionary traders who understand execution risk on lower timeframes
This indicator is most effective when used with disciplined risk management and strict time-of-day constraints.
How to Use:
Apply the indicator to a 30-second chart (designed for 30s only)
Trade only during the early NYSE session (approx. 9:32–9:45 ET)
Watch for Z-Score extremes beyond the upper or lower thresholds
Look for stalling behavior (loss of momentum) at extreme readings
Use in confluence with VWAP and price action for confirmation
Signals highlight potential mean-reversion zones, not automatic entries
Use tight risk management and avoid overtrading
Disclaimer:
This script is provided for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or trade signals. Past performance is not indicative of future results. Use at your own risk.
Teemo RSI DivergenceTeemo RSI Divergence
Teemo RSI Divergence is a comprehensive trading system designed to visualize market momentum and structural shifts instantly. By combining a Momentum Shift Zone with a Dual Divergence Engine, it helps traders identify both high-probability reversals and trend continuations.
Key Features
RSI Shift Zone (Momentum Bars): Automatically colors price bars when RSI breaks into Overbought (70+) or Oversold (30-) zones. This signals strong momentum, suggesting a trend is active rather than just exhaustion.
🟢 Mint Bars: Strong Bullish Momentum.
🟣 Purple Bars: Strong Bearish Momentum.
Dual Divergence Engine:
"R" (Regular): Detects Trend Reversals (e.g., Price Lower Low + RSI Higher Low).
"H" (Hidden): Detects Trend Continuations (e.g., Price Higher Low + RSI Lower Low).
Real-Time Monitor: Displays dotted lines for potential divergences while the candle is forming, allowing you to anticipate market structure before the close.
Smart Filtering: Includes options to filter out weak signals near the neutral zone (RSI 50) and remove duplicate noise for cleaner charts.
How to Use
Trend Following: Look for Hidden Divergences (H) appearing while the bars are colored (Mint/Purple) to join the trend on pullbacks.
Reversal Trading: Look for Regular Divergences (R) appearing against the colored momentum bars to spot trend exhaustion.
Teemo RSI Divergence는 시장의 모멘텀과 추세 구조를 직관적으로 시각화하는 트레이딩 시스템입니다. 단순한 RSI 지표를 넘어, **모멘텀 시프트 존(캔들 색상)**과 이중 다이버전스 엔진을 결합하여 트레이더가 추세의 반전과 지속 타점을 모두 포착할 수 있도록 설계되었습니다.
주요 기능
RSI Shift Zone (모멘텀 캔들): RSI가 과매수(70+) 또는 과매도(30-) 구간을 강하게 돌파할 때 캔들 색상을 변경합니다. 이는 단순 과열이 아닌 '강한 추세'가 진행 중임을 의미합니다.
🟢 민트색 캔들: 강력한 상승 모멘텀.
🟣 보라색 캔들: 강력한 하락 모멘텀.
이중 다이버전스 엔진:
"R" (Regular/일반): 추세 반전 신호를 감지합니다 (예: 가격 저점 하락 + RSI 저점 상승).
"H" (Hidden/히든): 추세 지속(눌림목) 신호를 감지합니다 (예: 가격 저점 상승 + RSI 저점 하락).
실시간 모니터 (RT): 캔들이 마감되기 전, 형성 중인 다이버전스를 점선으로 미리 표시하여 시장의 움직임을 한발 앞서 예측할 수 있습니다.
스마트 필터링: 중립 구간(RSI 50) 근처의 약한 신호를 무시하고, 중복된 라인을 제거하여 차트를 깔끔하게 유지합니다.
사용 전략
추세 추종: 캔들이 민트색이나 보라색으로 칠해진 강한 추세 구간에서 **히든 다이버전스(H)**가 발생하면, 추세 지속을 위한 진입 기회로 활용하세요.
반전 매매: 강한 모멘텀(색상 캔들)이 지속되던 중 **일반 다이버전스(R)**가 발생하면, 추세가 힘을 잃고 반전될 가능성을 대비하세요.
Capital Rotational Event (CRE)What is a Capital Rotational Event (CRE)?
A Capital Rotational Event is when money shifts from one asset to another — e.g., rotation from stocks into bonds, from tech into commodities, or from one sector into another.
In technical terms it typically shows:
✔ Divergence between two asset price series
✔ Relative strength switching direction
✔ Volume/flow confirming rotation
✔ Often precedes trend acceleration in the “receiver” asset
CandelaCharts - SMT 📝 Overview
The CandelaCharts – SMT indicator is a professional-grade Smart Money Technique (SMT) divergence detector designed to compare price action between correlated markets (intermarket analysis).
It identifies moments where the main chart makes a swing high or low while one or more comparison symbols fail to confirm the move—revealing potential institutional imbalance, distribution, or accumulation .
By automatically detecting pivot-based divergences and drawing clean, contextual lines and labels directly on price, SMT helps traders spot high-probability reversal or continuation zones driven by relative strength and weakness across markets.
📦 Features
Automatic SMT divergence detection – Identifies divergences between the main chart and up to two comparison symbols.
Pivot-based logic – Uses swing highs and swing lows to ensure structurally meaningful SMT signals.
Dual-symbol comparison – Compare the main market against one or two correlated instruments simultaneously.
Bullish & bearish SMT filtering – Show only bullish, bearish, or both divergence types.
Clear visual mapping – Divergence lines are drawn directly between pivots for intuitive price-context reading.
Smart labels – Compact labels display symbol(s), volume, and directional markers.
Detailed tooltips – Hover tooltips include divergence type, symbols involved, prices, volume, timestamps, and pivot settings.
Highly customizable visuals – Control colors, line width, and label styling.
⚙️ Settings
Lookback – Pivot lookback length used to detect swing highs and lows. Higher values produce fewer but more significant SMT signals.
Bias – Control which SMTs are displayed: Both, Bearish or Bullish
Swing High Color – Line and label color for SMT at swing highs.
Swing Low Color – Line and label color for SMT at swing lows.
Line Width – Thickness of SMT divergence lines.
Symbol 1 – Enable and select the first comparison instrument (e.g., NQ vs ES).
Symbol 2 – Enable and select the second comparison instrument (optional).
⚡️ Showcase
Bullish and Bearish SMTs
Bearish SMTs
Bullish SMTs
🚨 Alerts
This indicator does not include built-in alert conditions.
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. Trading and investing involve substantial risk, and losses can exceed expectations. Past performance is not indicative of future results. You are solely responsible for your trading decisions. CandelaCharts assumes no liability for any outcomes resulting from the use of this indicator.






















