Volume Weighted Intra Bar LR SkewnessThis indicator analyzes market character by decomposing total
skewness (asymmetry) of a SINGLE BAR into four distinct,
interpretable components based on a Linear Regression model.
Key Features:
1. **Intra-Bar LR Skewness Decomposition:** For each bar on the chart,
the indicator analyzes the underlying price action on a smaller
timeframe ('Intra-Bar Timeframe'). It fits a Linear Regression
line through the intra-bar data to decompose the 3rd Moment:
- **Trend Skewness (Green/Red):** Asymmetry originating from
the slope of the intra-bar regression line. Indicates if the
price path within the bar is geometrically trend-driven.
- **Residual Skewness (Yellow):** Asymmetry of the noise
around the regression line. Captures "Tail Risk" or sudden
shocks within the bar that deviate from the main path.
- **Within-Bar Skewness (Blue):** Asymmetry derived from the
microstructure of individual intra-bar candles.
- **Interaction Skewness (Dark Grey):** Asymmetry caused by
the correlation between price levels and volatility within
the bar (e.g., volatility expanding as price drops).
2. **Visual Decomposition Logic:** Total Skewness is the
primary metric displayed. Since statistical moments are additive,
this indicator calculates the *exact* Total Skewness and partitions
the columns based on the Law of Total Moments.
3. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Plots the *total* skewness as a
stacked column chart. Stacking logic groups components with
the same sign to ensure visual clarity.
- **Relative Mode:** Plots the direct *contribution ratio*
(proportion) of each component relative to the total sum,
ideal for identifying the dominant driver (Trend vs. Noise).
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
transforms inputs into logarithmic space, analyzing the
skewness of *returns* rather than absolute prices.
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all regression and moment calculations,
emphasizing high-participation moves.
5. **Skewness Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (peaks/valleys) in
the *total* skewness line. (Note: This is only visible
in 'Absolute Mode').
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Analysis Lines:** The entire intra-bar analysis can be
run on a higher timeframe (using the `Timeframe` input),
with standard options to handle gaps (`Fill Gaps`) and
prevent repainting (`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes comprehensive alerts for:
- Skewness magnitude (High Positive / High Negative).
- Character changes (Trend vs. Noise dominance).
- Total Skewness pivot (High/Low) detection.
**Caution: Real-Time Data Behavior (Intra-Bar Repainting)**
This indicator uses high-resolution intra-bar data. As a result, the
values on the **current, unclosed bar** (the real-time bar) will
update dynamically as new intra-bar data arrives. This behavior is
normal and necessary for this type of analysis. Signals should only
be considered final **after the main chart bar has closed.**
---
**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.
Indicators and strategies
Volume Weighted Intra Bar SkewnessThis indicator analyzes market sentiment by providing a detailed
view of skewness (asymmetry). It uses data from a lower, intra-bar
timeframe to separate the total skewness of a single bar into
distinct, interpretable components.
Key Features:
1. **Intra-Bar Skewness Decomposition:** For each bar on the chart,
the indicator analyzes the underlying price action on a smaller
timeframe ('Intra-Bar Timeframe'). Unlike Variance, the Third
Central Moment (Skewness) decomposes into three parts:
- **Between-Bar Skewness (Gold):** Asymmetry of the price
path *between* the intra-bar candles. Indicates if the macro
movements within the bar accelerated in one direction.
- **Within-Bar Skewness (Blue):** Asymmetry of the
microstructure (wicks vs. tails) *inside* the intra-bar candles.
- **Interaction Skewness (Grey):** The component arising from
the comovement of local means and local variances (e.g.,
does volatility increase when price drops?).
2. **Visual Decomposition Logic:** Total Skewness is the
primary metric displayed. Since Skewness coefficients are not
linearly additive, this indicator calculates the *exact* Total
Skewness and partitions the columns based on the additive
Third Moment Decomposition (`M3Tot = M3Btw + M3Wtn + M3Int`).
3. **Dual Display Modes:** The indicator offers two modes to
visualize this information:
- **Absolute Mode:** Plots the *total* skewness as a
stacked column chart, showing the *absolute magnitude* of
asymmetry and the contribution of each component.
- **Relative Mode:** Plots the components as a 100% stacked
column chart (scaled from 0 to 1), focusing purely on the
*energy ratio* of the components.
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
calculates an **Exponential Regression Curve** (log-space),
making the analysis suitable for comparing assets with
different scales (e.g., BTC vs EURUSD).
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all mean and moment calculations.
5. **Skewness Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (highs and lows) in
the *total* skewness line. (Note: This is only visible
in 'Absolute Mode').
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Analysis Lines:** The entire intra-bar analysis can be
run on a higher timeframe (using the `Timeframe` input),
with standard options to handle gaps (`Fill Gaps`) and
prevent repainting (`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes alerts for:
- Skewness magnitude (High Positive / High Negative).
- Skewness character changes/emerging/fading.
- Total Skewness pivot (High/Low) detection.
**Caution: Real-Time Data Behavior (Intra-Bar Repainting)**
This indicator uses high-resolution intra-bar data. As a result, the
values on the **current, unclosed bar** (the real-time bar) will
update dynamically as new intra-bar data arrives. This behavior is
normal and necessary for this type of analysis. Signals should only
be considered final **after the main chart bar has closed.**
---
**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.
Global Bitcoin ETF Holdings Bitcoin ETF Tracker This indicator visualizes the total physical Bitcoin holdings of all major Spot ETFs globally (USA, Canada, Europe).
Key Features:
Precision: Uses "Shares Outstanding" data instead of AUM. This eliminates price volatility noise and shows actual inflows/outflows.
Smart Zoom: Dynamic scaling zooms into the active range (top 15%), making daily flows clearly visible.
Whale Dashboard: Real-time table showing Net Flows (24h & 7d) in BTC.
Customizable: Ticker symbols can be adjusted in settings to match your data feed (e.g., BATS vs. ARCA).
Volume Weighted SkewnessThis indicator analyzes market sentiment by decomposing total
skewness (asymmetry) into two distinct, interpretable components:
"Between-Bar" (Inter-Bar) and "Within-Bar" (Intra-Bar) skewness.
Key Features:
1. **Moment-Based Skewness decomposition:** The indicator
separates skewness based on the 'Estimate Bar Statistics' option.
It leverages the additive property of the Third Central Moment
to ensure mathematical rigor:
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
simple skewness of the selected `Source`.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):** The
indicator uses a statistical model ('Estimator') to
calculate *within-bar* skewness.
This separates the asymmetry into:
- **Between-Bar Skewness (Gold):** Asymmetry of the price
path itself. A positive value indicates that the trend
moves more aggressively upwards than downwards.
- **Within-Bar Skewness (Blue):** Asymmetry of the
microstructure (wicks vs. tails). A positive value implies
strong buying pressure within the bars (long tails).
2. **Visual Decomposition Logic:** Total Skewness is the
primary metric displayed. Since Skewness coefficients are not
linearly additive, this indicator calculates the *exact* Total
Skewness and partitions the area/ratios based on the additive
Third Moment Decomposition (`M3Tot = M3Btw + M3Wtn`). This
ensures the displayed total skewness remains mathematically accurate.
3. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Displays the *Total Skewness* as the main
line, with the background filled by the stacked components.
Shows the *magnitude* and direction of the tail risk.
- **Relative Mode:** Displays the **Contribution Ratios**
of each component (-1.0 to 1.0). This isolates the
*structure/quality* of the asymmetry (e.g., "Is the skewness
driven by the trend or by the candle shapes?").
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
transforms inputs into logarithmic space, analyzing the
skewness of *returns* rather than absolute prices.
(Essential for correct statistical properties).
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all moment calculations, emphasizing
high-participation moves.
5. **Skewness Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (peaks/valleys) in
the *Total Skewness* line. (Note: This is only visible
in 'Absolute Mode').
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Skewness Lines:** The skewness lines can be
calculated on a higher timeframe, with standard options
to handle gaps (`Fill Gaps`) and prevent repainting
(`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes comprehensive alerts for:
- Skewness magnitude (High Positive / High Negative).
- Character changes (Inter-Bar vs. Intra-Bar dominance).
- Total Skewness pivot (High/Low) detection.
---
**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 Intra Bar CorrelationThis indicator analyzes market character by providing a detailed
view of correlation. It uses data from a lower, intra-bar timeframe
to separate the total correlation of a single bar into two distinct
components.
Key Features:
1. **Intra-Bar Correlation Decomposition:** For each bar on the chart,
the indicator analyzes the underlying price action on a smaller
timeframe ('Intra-Bar Timeframe') and quantifies two types of correlation:
- **Between-Bar Correlation (Directional):** Calculated from price
movements *between* the intra-bar candles. This component
represents the **macro-movement** correlation within the main bar.
- **Within-Bar Correlation (Non-Directional):** Calculated from
price fluctuations *inside* each intra-bar candle. This
component represents the **microstructure/noise** correlation.
2. **Visual Decomposition Logic:** Total Correlation is the
primary metric displayed. Since Correlation Coefficients are not
linearly additive, this indicator plots the *exact* Total
Correlation and partitions the area underneath based on the
Covariance Ratio. This ensures the displayed total correlation
remains mathematically accurate while showing relative composition.
3. **Dual Display Modes:** The indicator offers two modes to
visualize this information:
- **Absolute Mode:** Plots the *total* correlation as a
stacked column chart, showing the *absolute magnitude* of
correlation and the contribution of each component.
- **Relative Mode:** Plots the components as a 100% stacked
column chart (scaled from 0 to 1), focusing purely on the
*energy ratio* of 'between-bar' (macro) and 'within-bar' (micro)
correlation.
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
calculates an **Exponential Regression Curve** (log-space),
making the analysis suitable for comparing assets with
different scales (e.g., BTC vs EURUSD).
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all mean and covariance calculations.
5. **Correlation Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (highs and lows) in
the *total* correlation line. (Note: This is only visible
in 'Absolute Mode').
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Analysis Lines:** The entire intra-bar analysis can be
run on a higher timeframe (using the `Timeframe` input),
with standard options to handle gaps (`Fill Gaps`) and
prevent repainting (`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes alerts for:
- Correlation magnitude (High Positive / High Inverse).
- Correlation character changes/emerging/fading.
- Total Correlation pivot (High/Low) detection.
**Caution: Real-Time Data Behavior (Intra-Bar Repainting)**
This indicator uses high-resolution intra-bar data. As a result, the
values on the **current, unclosed bar** (the real-time bar) will
update dynamically as new intra-bar data arrives. This behavior is
normal and necessary for this type of analysis. Signals should only
be considered final **after the main chart bar has closed.**
---
**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.
Jags_LibLibrary "Jags_Lib"
TODO: add library description here
ComplexRejBear(_can)
Returns whether candle is a rejection based on complex rules within library
Parameters:
_can (int)
Returns: true/false
ComplexRejBull(_can)
Returns whether candle is a rejection based on complex rules within library
Parameters:
_can (int)
Returns: true/false
bullHCS(_can, _lookback)
Returns whether current candle is creating a bull HCS
Parameters:
_can (int)
_lookback (int)
Returns: integer value representing the first candle in the HCS. 0 = no HCS
bearHCS(_can, _lookback)
Returns whether current candle is creating a bear HCS
Parameters:
_can (int)
_lookback (int)
Returns: integer value representing the first candle in the HCS. 0 = no HCS
bullIBLQtake(_can, _lookback)
Returns whether current candle is is a BullRej which has taken IB liquidiy in the last _lookback candles
Parameters:
_can (int)
_lookback (int)
Returns: integer value representing the first candle in the HCS. 0 = no HCS
bearIBLQtake(_can, _lookback)
Returns whether current candle is is a BearRej which has taken IB liquidiy in the last _lookback candles
Parameters:
_can (int)
_lookback (int)
Returns: integer value representing the first candle in the HCS. 0 = no HCS
Stage 2 Weinstein Entry + MACD Momentum (SNDK-like)beta test-
implement MAcd momentum signal to stage 2 indicator
VWMA 200 (HTF) + Fibonacci BandsVWMA 200 (HTF) + Fibonacci Bands + VWAP Trend Dashboard
This indicator combines a Higher Timeframe VWMA (default: 200) with volatility bands and Fibonacci-based internal levels, plus anchored VWAPs (Daily / Weekly / Monthly) and an optional trend dashboard table.
It was designed to help you quickly spot:
where price is relative to a major HTF VWMA mean
whether price is trading in normal / extreme zones
how price is positioned versus session/period VWAPs
a simple “at-a-glance” trend bias across multiple anchors
What’s included
1) VWMA 200 (HTF)
VWMA is calculated on a locked timeframe (HTF) using request.security.
Default source is HLC3, but you can change the source.
2) Volatility bands + Fibonacci levels
The outer bands are based on a scaled standard deviation (mult * stdev) around the HTF VWMA.
Internal bands use Fibonacci ratios:
11.8% / 23.6% / 38.2% / 50% / 61.8% / 76.4% / 88.6% / 100%
Clean labels on the right side show each level as a percentage.
3) Extreme candle highlighting
Candles can be highlighted when the close is beyond the 76.4% band (upper or lower).
Helps identify potential stretched conditions / breakout zones.
4) Anchored VWAPs
Optional Daily / Weekly / Monthly VWAP (anchored by period change).
Optional VWAP labels on the right side (toggle separately).
5) Trend Dashboard Table
Optional table showing Bullish / Bearish / Neutral for:
VWAP D, VWAP W, VWAP M, and VWMA HTF
Displays distance from each reference in points (price units).
Includes a Confluence row:
Bullish if price is above all references
Bearish if price is below all references
Mixed otherwise
Table position can be customized (Top Right / Top Left / Bottom Right / Bottom Left).
How to use (quick guide)
Mean reversion / structure: Use the HTF VWMA as the central “mean” reference.
Zones: Fibonacci bands show progressively stronger deviation zones from the mean.
Extremes: Candle coloring beyond 76.4% can highlight stretched price action.
Trend bias: The dashboard helps confirm whether price is aligned above or below key anchors (VWAPs + VWMA HTF).
Confluence: When multiple anchors agree, trend conviction tends to be higher.
Notes / Disclaimer
This tool is intended for context and decision support, not as a standalone strategy.
VWAP behavior may differ across markets/sessions depending on symbol and exchange rules.
Always combine with your own risk management and confirmation tools.
Leader Stock ScannerLeader Stock Scanner, Testing using AI
✅ How it works:
Relative Strength (RS) vs SPY – RS above 80 marks strong leaders.
Trend Alignment – 50 EMA > 150 EMA > 200 EMA and price above all EMAs.
Liquidity Filter – 20-day average volume > 500k.
Price Filter – avoids low-priced microcap traps (< $10).
Output – signals a “triangle up” on chart and can trigger alerts.
Inside Bar Zones by AAK (V6)📦 Smart Inside Bar Zones
Smart Inside Bar Zones is a price-action–based indicator designed to automatically detect, track, and visualize inside bar consolidation zones with full historical context.
Instead of marking single inside candles, this indicator groups consecutive inside bars into structured zones, locking the original mother candle range and extending it until price breaks out. This allows traders to clearly identify areas of compression, balance, and potential expansion.
🔍 Key Features
Automatic Inside Bar Detection
Identifies inside bars using candle bodies within the mother candle range, with an optional tick buffer.
Smart Zone Creation
Consecutive inside bars are grouped into a single zone, anchored to the original mother candle.
Unlimited Historical Storage (Data)
All previous inside bar zones are stored internally, enabling long-term analysis and backtesting.
Safe & Optimized Drawing
Zones are drawn using recyclable boxes to respect TradingView object limits while maintaining performance.
Highlight Inside Bars
Optional candle coloring for quick and clear visual confirmation.
Flexible Display Options
Show only the latest zone
Or display multiple zones with automatic recycling
📈 How Traders Use It
Identify consolidation before expansion
Spot compression zones for breakout or fakeout scenarios
Combine with SMC, order flow, support & resistance, or liquidity concepts
Use higher-timeframe zones for directional bias
Use lower-timeframe zones for entries and scalps
⚠️ Important Notes
This indicator does not predict direction — it highlights structure
Zones represent price balance, not buy or sell signals
Best used in confluence with your trading strategy and risk management
🧠 Designed For
Price action traders
SMC / market structure traders
Forex, crypto, indices, and futures
Any timeframe
⚠️ Risk Disclaimer
This indicator is for educational purposes only and is not financial advice. Trading involves significant risk, and losses may exceed expectations. Past performance does not guarantee future results. Always use proper risk management and trade at your own discretion.
Accumulation & Distribution Days HistogramWHAT IT TRACKS:
• Distribution Days (Selling Pressure): Price closes down >0.2% on higher volume than previous day
• Accumulation Days (Buying Pressure): Price closes up >0.2% on higher volume than previous day
HOW IT WORKS:
The histogram displays a rolling count of distribution and accumulation days within your chosen lookback period (default: 20 bars). Green bars show accumulation days above the zero line, while red bars show distribution days below the zero line. A white line plots the net difference (accumulation minus distribution) to show the overall balance.
SETTINGS:
• Lookback Period: Number of bars to count (default: 20)
• Price Threshold: Minimum % move required (default: 0.2%)
• Colors: Fully customizable histogram colors
USAGE:
Use this to gauge the balance between buying and selling pressure. When accumulation exceeds distribution, it suggests bullish pressure. When distribution exceeds accumulation, it suggests bearish pressure.
The indicator can also serve as a market health filter:
• 0-3 Distribution Days: Bullish market condition - healthy for long positions
• 4-5 Distribution Days: Cautious - monitor for potential trend change
• 6+ Distribution Days: Bearish signal - institutional selling intensifying
Other potential uses to explore:
• Divergence analysis: Price making new highs while distribution days cluster
• Sector rotation: Compare distribution/accumulation across different sectors
• Entry timing: Wait for accumulation to exceed distribution before entering
• Risk management: Reduce position size as distribution days increase
Experiment with different lookback periods and thresholds to match your trading timeframe and style.
If you discover effective ways to use this indicator, please share in the comments below - your insights could help others, enjoy.
Gold Trap Hunter (Auto-Structure & Liquidity Sweeps)The Concept: Stop Getting Trapped Have you ever bought a breakout, only to watch the price immediately reverse and hit your stop loss? This is called a Liquidity Trap (or "Sweep"). Institutional algorithms often push price slightly above a key High or below a key Low to trigger retail stop losses before moving the market in the real direction.
The Universal Trap Hunter is designed to visualize this market structure automatically. It helps you avoid "Fake Breakouts" and identifies high-probability Reversal points where the "Smart Money" is active.
How It Works (The Logic)
1. The Structure Boxes (The Battlefield) The indicator draws a shaded box representing the Higher Timeframe Structure.
Green Box: The market structure is Bullish (Making Higher Highs). We are looking for longs.
Red Box: The market structure is Bearish (Making Lower Lows). We are looking for shorts.
Feature: This is Universal. If you are on the 15-minute chart, it automatically calculates the 4-Hour structure for you. You are always trading with the bigger trend.
2. The "SWEEP" Signal (The Entry Trigger) A "Sweep" is the most powerful signal in this system.
What is it? Price breaks a previous structure High/Low but fails to close there. It grabs the liquidity and reverses.
⚔️ Green Sweep: Price broke the previous Low (trapping sellers), then closed back UP inside the range. This is a bullish reversal signal.
⚔️ Red Sweep: Price broke the previous High (trapping buyers), then closed back DOWN inside the range. This is a bearish reversal signal.
3. The Noise Filter (Gray Candles) Trading is about knowing when NOT to trade.
Gray Candles: These indicate "Noise." The price action is choppy or conflicting with the trend.
Colored Candles: The candles only turn Green or Red when the Trend, Momentum, and Structure all align. If you see color, the move is valid.
Settings & Customization
Structure Mode (Auto vs Manual):
Auto (Recommended): The script automatically selects the best Higher Timeframe for you.
Scalping 1m? → It looks at 1H Structure.
Trading 15m? → It looks at 4H Structure.
Manual: You can lock it to a specific timeframe (e.g., always show Daily structure).
Colors: Fully customizable to fit your dark/light theme.
How to Trade This Strategy
Identify the Trend: Look at the background Box color (Green = Bullish, Red = Bearish).
Wait for the Trap: Do not chase the price. Wait for price to challenge the edge of the box.
The Signal: Look for the "⚔️ SWEEP" label.
If the box is Green and you see a Green Sweep at the bottom: Strong Buy.
If the box is Red and you see a Red Sweep at the top: Strong Sell.
Disclaimer: This tool is for educational purposes and market analysis only. It helps visualize market structure and liquidity traps but does not guarantee future results. Always manage your risk.
SMA Multi-Sync Granville & MTF CounterSMA Multi-Sync Granville & MTF Counter
Overview
This indicator is an environmental awareness tool that identifies when and to what level moving averages (SMAs) across multiple time frames align in the same direction, visualizing the timing and freshness of the trend.
Its greatest feature is that it does not simply determine synchronization; rather, it precisely distinguishes the time frame upon which synchronization is completed using the number of stars (★).
Key Features
1. Calculation of "Stars" Based on Confirmed Time Frame Trigger
The number of stars displayed upon synchronization completion indicates the signal's "temporal weight."
★ (1): Synchronization is completed upon confirmation of the displayed time frame.
★★ (2): Synchronization is completed upon confirmation of the next higher time frame (e.g., 15 minutes).
★★★ (3): Synchronization is completed upon confirmation of the next higher time frame (e.g., 1 hour). The more higher the time frame is confirmed, the more powerful the trend reversal or regression it acts as.
2. MTF Sync Panel
The table on the right side of the screen displays the price position (background) and MA direction (text) for each level (displayed to daily) in real time.
By watching the background and text colors match, you can understand the accumulation of energy before a star appears.
3. Cross Counter
The number of bars elapsed from the synchronization starting point (MA crossover, etc.) to the current bar is displayed numerically in the lower right corner.
The closer to "0" the number, the more likely it is the beginning of a trend, while the higher the number, the more likely it is the end of the trend (expiration date).
Usability of Input Settings
Min Stars (1-5) This sets the signal cutoff. Setting it to "2" eliminates noise caused by the displayed bar being confirmed and narrows down to only the moment when the higher bar is confirmed (★2 or higher).
Cancel Alert if MA Slope Same If the MA of the displayed time frame is already leaning in the same direction (leading), the confirmation (★1) on that time frame will be considered "not an initial move" and excluded.
5m TF: Use 30m SMA When using 5-minute time frames, this physically changes the ★2 trigger from the confirmation on the 15-minute chart to the confirmation on the 30-minute chart. This is effective when targeting milestones on larger time frames.
*If you have any questions about how to use this, please ask in the comments.
SMA Multi-Sync Granville & MTF Counter
概要
本インジケーターは、複数の時間足の移動平均線(SMA)が「いつ、どの階層まで同じ方向に揃ったか」を特定し、そのトレンドの**「確定タイミング」と「鮮度」**を可視化する環境認識ツールです。
最大の特徴は、単なる同調判定ではなく、**「どの時間足の確定(Close)によって同期が完成したか」**を星(★)の数で厳密に区別する点にあります。
主な機能
1. 確定足トリガーによる「星」の算出
同期が完成した瞬間に表示される星の数は、そのシグナルの「時間的な重み」を示します。
★(1つ):表示足の確定により同期が完成。
★★(2つ):1つ上の上位足(15分等)の確定により同期が完成。
★★★(3つ):2つ上の上位足(1時間等)の確定により同期が完成。 上位の足が確定する節目ほど、より強力なトレンドの転換・回帰として機能します。
2. MTF同期パネル
画面右側のテーブルで、各階層(表示足〜日足)の「価格の位置(背景)」と「MAの向き(文字)」をリアルタイムに表示します。
背景色と文字色が一致していく過程を見ることで、星が出る前の**「エネルギーの蓄積」**を把握できます。
3. クロスカウンター
同期の起点(MAクロス等)から、現在の足まで何本経過したかを右下に数値で表示します。
「0」に近いほど初動であり、数値が大きくなるほどトレンドの終盤(賞味期限切れ)である可能性を論理的に示唆します。
インプット設定の使い勝手
Min Stars (1-5) シグナルの足切り設定です。「2」に設定すれば、表示足の確定によるノイズを排除し、**上位足の確定が伴った瞬間(★2以上)**のみに絞り込めます。
Cancel Alert if MA Slope Same 表示足のMAがすでに同方向へ傾いている(先行している)場合、その足での確定(★1)を「初動ではない」とみなして除外します。
5m TF: Use 30m SMA 5分足運用時、★2のトリガーを「15分足」から「30分足」の確定に物理的に変更します。より大きな時間軸の節目を狙う場合に有効です。
※使い方が不明なところはコメントで聞いてください。
Gold Sniper (Liquidity Sweep)Concept : Stop Hunting the "Smart Money" Way Most traders lose money because they enter exactly where "Smart Money" is looking to trigger Stop Losses. We have all been there: You buy at support, the price dips just below your stop loss, takes you out, and then rockets up without you.
Gold Sniper is designed to capitalize on this exact behavior . Instead of buying the support, this script waits for the Liquidity Sweep (the "Stop Hunt"). It identifies when price breaks a key structure level to trap sellers, and signals an entry only when the price reclaims that level with momentum.
How It Works (The Logic) This indicator looks for a specific "Perfect Storm" setup using a 4-step confirmation process:
Identifies Support (Yellow Dots): It tracks local pivot lows (default 10 bars) to visualize the "Floor" where retail traders likely have their stop losses.
Detects the Sweep: It waits for price to drop below these yellow dots. This is the "Trap" phase where liquidity is grabbed.
Confirms the Reclaim: It does NOT catch the falling knife. It waits for a candle to close back ABOVE the broken support level.
Momentum Check (RSI): It ensures internal strength (RSI) is rising compared to the previous low, confirming that the drop was a trap, not a genuine crash.
Visual Features
Yellow Dots: Dynamic Support Levels / Pivot Lows.
"SWEEP BUY" Label: Signals exactly when the trap is complete and the reclaim has occurred.
Red Line (Hard Stop): Automatically draws a Stop Loss level at the lowest point of the sweep candle.
How to Use This Strategy
Wait for the Setup: Do not trade if price is just drifting. Wait for price to challenge and break the Yellow Dots.
The Trigger: Enter immediately on the Close of the candle with the "SWEEP BUY" label.
Stop Loss: Place your Hard Stop at the Red Line provided by the indicator.
Rule: If price touches the Red Line, the setup has failed (it was a real crash, not a sweep). Exit immediately.
Best Timeframes: Optimized for 1-Minute and 5-Minute scalping on Gold (XAUUSD) and Futures, but works on all liquid assets.
Settings
Pivot Lookback: How many bars back to check for the support floor (Default: 10).
RSI Length: Sensitivity of the momentum filter (Default: 14).
Disclaimer : This tool is for educational purposes and market analysis only. It identifies high-probability "Liquidity Sweep" setups but does not guarantee future results. Always manage your risk.
Weekly SMA20 Relative Strength Matrix (8x8)weekly SMA 20 asset rank matrix, helps view multiple assets and their long term trends at the same time
Dual Red Volume Reversal IndicatorThis indicator works by watching volume patterns
first a small green volume
followed by 2 large red volumes
followed by a small green volume
indicates potential reversal
Ultimate CVD Suite Pro [DAFE]Ultimate CVD Suite Pro : The Institutional Flow Engine
High-Fidelity Microstructure Delta. The Revolutionary MTF Horizon Display. This is not just CVD. This is an X-Ray into the Market's Auction.
█ PHILOSOPHY: PRICE IS THE ADVERTISEMENT. ORDER FLOW IS THE TRUTH.
Standard technical analysis is a conversation with a shadow. It looks at price—the final, often deceptive, result of a hidden battle. But the professionals, the institutions, the "smart money"—they don't trade the shadow. They operate in the real world of the auction, a world of aggressive market orders and passive limit orders, a world of absorption, exhaustion, and imbalance.
The Ultimate CVD Suite Pro was engineered to give you a direct, unfiltered view into this hidden world. This is not another lagging indicator that repaints the past. It is a real-time intelligence engine. By reconstructing a high-fidelity view of the market's microstructure, it allows you to track the institutional footprint, anticipate reversals before they appear in price, and identify high-probability "kill zones" where major market players are defending their positions.
We do not chase price. We anticipate its next move by understanding the forces that create it.
█ WHAT MAKES THIS THE "ULTIMATE" SUITE? THE CORE INNOVATIONS
This is not a simple CVD indicator. It is a multi-layered, professional-grade analytics engine that stands in a class of its own.
High-Fidelity Microstructure Delta Engine: This is the heart of the suite and its greatest innovation. Standard CVD indicators are flawed because they use data from the current chart's timeframe. This engine is different. It requests data from a Lower Timeframe (LTF) and reconstructs the order flow with near tick-level precision. This provides a vastly superior, more accurate, and more responsive picture of the real buying and selling aggression.
The MTF Horizon Display: A revolutionary leap in data visualization. The Horizon projects up to three "holographic" displays of higher-timeframe metrics (CVD, Volume, RSI, etc.) directly onto your main price chart. You can now see the "Macro Flow" of the 1-Hour, 4-Hour, and Daily charts without ever leaving your 5-minute screen, allowing for instant, intuitive multi-timeframe analysis.
The Sequence Analysis Engine (E/M/L): This proprietary algorithm analyzes the DNA of order flow within each price bar. It identifies and marks the three critical phases of participation: Early (Smart Money), Mid (Trend Followers), and Late (Exhaustion/Bag Holders) with glowing "sparkles," giving you a narrative of who is in control.
Smart Kill Zone Detection: The indicator automatically identifies, plots, and tracks high-probability Supply and Demand zones. These are not based on simple price pivots. They are generated by identifying price levels where an overwhelming amount of aggressive order flow was forcefully absorbed, marking a true, institutionally defended level.
Advanced Signal Processing: It goes beyond simple CVD to detect statistically significant Imbalances (Delta spikes >3 Sigma from the mean) and Absorption (high-volume, high-delta moves that fail to move price), providing you with a complete toolkit of professional order flow concepts.
The Visualization Core: Data should be intuitive and beautiful. Choose from six distinct, animated, and theme-aware rendering modes. From the glowing "Nebula Pulse" and flowing "Aurora Borealis" to the abstract "DNA Helix," you can transform raw data into interactive data art.
█ DEEP DIVE: INTERPRETING THE FLOW
The Lower Indicator Pane: Your Engine Roo
The Delta Histogram: This is your primary readout of aggression. Tall Green bars signify aggressive buying. Tall Red bars signify aggressive selling. Look for shifts and divergences.
The Sequence Sparkles (✦ E/M/L): These glowing orbs appear within the histogram, telling you the story of the auction.
E (Early): Low volume, but directional delta. Smart money is likely initiating a position.
M (Mid): Expanding volume and strong delta. The trend is healthy and has public participation.
L (Late): Highest volume, but delta may start to weaken or reverse. This often marks the exhaustion point of a move.
The Delta Acceleration Area: A subtle background fill that shows the rate of change of the delta. A rising green fill shows that buying pressure is not just present, but increasing.
Peak/Trough Markers (✚): Automatically marks significant peaks and troughs in the cumulative delta flow, making it easy to spot divergences.
The Main Chart Overlays: Actionable Intelligence
The CVD Wave: This is the Cumulative Volume Delta, plotted and scaled directly onto your price chart. It visualizes the running total of buying vs. selling pressure. Its slope is your primary trend confirmation.
Smart Kill Zones:
Demand Zones (Green Boxes): These are areas where aggressive selling was forcefully absorbed by passive buyers. When price revisits these zones, they are high-probability areas for a bounce.
Supply Zones (Red Boxes): Areas where aggressive buying was absorbed by passive sellers. These are high-probability rejection zones.
Imbalance & Absorption Lines: These lines are projected forward from bars that showed statistically significant events. They mark precise price levels of extreme order flow that are likely to act as future support or resistance.
█ THE MTF HORIZON DISPLAY: A COMMAND CENTER FOR TIME
This is a game-changer. The MTF Horizon projects up to three fully functional, real-time indicator displays from higher timeframes directly onto your chart. You can customize each of the three "Horizons" to display any of 10 different metrics (CVD, Volume, RSI, MACD, etc.) from any timeframe you choose.
How It Works: Each Horizon is a self-contained box with a header showing the timeframe and metric. Inside, a visual representation (e.g., a "Flowing Wave" or "Gradient Bars") shows the historical and current value of that metric.
The Strategy: This allows for instant, effortless multi-timeframe analysis. Are you seeing a buy signal on your 5-minute chart? A quick glance at the Horizon tells you if the 1-Hour CVD is rising, if the 4-Hour Volume is expanding, and if the Daily RSI is in a bullish regime—all without ever leaving your chart. Confluence across all Horizons is the signature of an A++ trade setup.
█ HIGH-PROBABILITY SIGNALS: TRADING THE FLOW
🔄 Divergence (The "Trap"): The highest conviction signal. When price makes a Lower Low, but the CVD Wave on your chart makes a Higher Low, it means sellers are aggressive but failing. A short squeeze is imminent. This is a powerful long entry signal.
🧲 Absorption (The "Wall"): Detected when volume is massive, delta is high, but the price candle is small. This indicates a huge wall of passive limit orders absorbing all the aggression. Fade the aggression; trade with the wall.
⚖️ Imbalance (The "Surge"): A delta bar that is statistically extreme (e.g., >3 Sigma from the mean). This signals that one side of the market has completely overwhelmed the other. This is often a powerful trend continuation signal.
Zone Retests: When price pulls back to test a previously formed Demand or Supply Zone, it provides a low-risk, high-probability entry in the direction of the original defense.
█ DEVELOPMENT PHILOSOPHY
The Ultimate CVD Suite Pro was born from a single, guiding principle: to win in modern markets, you must stop listening to the noise of price and start analyzing the signal of flow. Price is where amateurs look; flow is where professionals find their edge. By reconstructing order flow with a precision previously unavailable on this platform and fusing it with a revolutionary multi-timeframe visualization system, this tool aims to level the playing field. It translates the opaque, complex world of the institutional auction into a clear, intuitive, and actionable intelligence system.
This tool is designed to identify the moments when the market is becoming rational again—when the underlying flow of money is so strong that it forces irrational price action to bend to its will.
█ DISCLAIMER AND BEST PRACTICES
THIS IS AN ADVANCED ANALYTICAL TOOL: This indicator provides intelligence on order flow, not financial advice. It is designed to be a core component of a comprehensive trading strategy.
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk. Never risk more capital than you are prepared to lose.
LTF IS KEY: For the best results, set your Lower Timeframe (LTF) appropriately. For a 15-minute chart, use 1m or 3m. For a 1-Hour chart, use 5m.
USE CONFLUENCE: The highest probability signals come from confluence. A Bullish Divergence that forms inside a Smart Demand Zone while the MTF Horizon shows bullish alignment is an A++ setup.
"The market can remain irrational longer than you can remain solvent."
— John Maynard Keynes
Taking you to school. - Dskyz, Trade with Anticipation. Trade with Volume. Trade with CVD: Suite Pro
Pattern Multi-TF Dashboardesigned to identify the three primary phases of price action: Contraction, Expansion, and Trend. By combining technical momentum (ADX) with price range volatility, this script provides a "top-down" view of the market, allowing traders to see how lower-timeframe price action fits into the broader market cycle.
Core Logic & Market Phases
The indicator classifies market conditions based on a proprietary blend of ADX (Average Directional Index) and price deviation from the Fair Market Value (FMV).
🟦 Contraction (Blue): Identified when ADX is low and price is consolidating within a narrow range relative to the FMV. This represents "market value" where orders are being accumulated.
🟧 Expansion (Orange): Triggered when ADX begins to rise and price pushes away from the FMV. This represents the initial breakout phase where the market is seeking a new value area.
🟩 Trend (Green): Confirmed when ADX remains high and price maintains direction. This is the "momentum" phase of the cycle.
⬜ Neutral (Gray): Default state when neither contraction nor strong momentum is detected.
Key Features
Multi-TF Dashboard: A dynamic, real-time table displaying the Phase, Bias (Bullish/Bearish), and FMV price for eight different timeframes (1m through Monthly).
Visual Bias Tracking: The "Bias" column is color-coded (Green for Bullish, Red for Bearish) based on whether price is trading above or below the Fair Market Value (Mid-point of the range).
On-Chart Inefficiencies (FVG): Automatically plots Green/Red triangles to highlight Fair Value Gaps, identifying areas of price imbalance where liquidity may be resting.
HTF FMV Overlay: Plots the Fair Market Value (Mid-line) of a user-defined Higher Timeframe (e.g., 4H) directly onto your current chart for easy trend reference.
Optimized Performance: Built specifically for Pine Script® v6, the dashboard is designed to update only on the most recent bar to ensure zero chart lag during manual scrolling.
How to Use
Identify the HTF Phase: Look at the background color of your chart to see the 4H or Daily phase.
Check for Alignment: Use the Dashboard to see if the 1m and 5m biases match the HTF bias.
Find Entry: Look for Inefficiencies (FVGs) that align with the Expansion or Trend phases for high-probability entry points.
GridMap PRO by TradeAkademiGridMap PRO – Structural Price Mapping Framework
GridMap PRO is a price-mapping framework designed to visualize repeatable price reaction zones, based on the observation that price tends to evolve within specific percentage-based bands over time.
Despite its name, GridMap PRO is not a traditional grid trading indicator; it does not generate signals, predict direction, or provide automated trade execution. Its purpose is to segment price into logical and structurally consistent zones, offering a map that supports the decision-making process rather than replacing it.
This framework is not built on randomly drawn support and resistance levels, but on long-term observations, reverse-engineering studies, and the analysis of recurring price behavior across different market conditions.
Core Concept: Percentage-Based Scaling and Structural Bands
At the core of GridMap PRO lies a percentage-based scaling model centered around a 33% expansion ratio.
This ratio was not selected as a theoretical or mathematical constant. Instead, it emerged empirically through extensive analysis across multiple asset classes (including cryptocurrencies and traditional market instruments), by examining the percentage moves from significant price lows to areas where major price reactions frequently occurred.
Long-term observations have highlighted the following patterns:
In many upward price movements originating from a low, the first major price reaction often occurs within the 30–35% range
The midpoint of this range, 33%, has shown a recurring tendency to produce meaningful price reactions
Similar behavior can be observed not only when projecting from local lows, but also when applying the same ratio from the asset’s historical low
These findings suggest that the 33% ratio may reflect an aspect of price’s intrinsic scaling behavior, rather than representing a singular or “special” level.
Why the Historical Low (All-Time / Structural Low)?
GridMap PRO does not rely on dynamic or constantly shifting reference points when performing its calculations. Instead, it uses the historical lowest price as the most objective and indisputable anchor point available.
This design choice is intentional:
Dynamic lows:
introduce visual noise
require frequent redrawing of levels
reduce long-term structural consistency
The historical low:
is singular and fixed
does not repaint
preserves long-term perspective
By anchoring calculations to this structural low, GridMap PRO prioritizes stability and consistency over attempting to identify the “perfect” level at every moment. The goal is not precision through constant adjustment, but a coherent and durable price map.
Calculation Logic
The historical lowest price is used as the reference point
From this level, price levels are projected upward using a 33% multiplicative expansion
The resulting levels form long-term structural reference zones
Calculations are logarithmic, preserving the proportional nature of price scaling
Unlike traditional horizontal support and resistance tools, this approach allows price to expand while maintaining consistent relative distances as it grows.
Map Resolution: Long Term & Short Term
GridMap PRO offers two map resolution options, both derived from the same underlying structure and calculations.
Long Term
Displays only the primary 33% levels
Produces wider, more spaced structural bands
Suitable for macro structure analysis, swing trading, and position trading
Provides a clean and simplified view in high-volatility environments
Short Term
Retains the same primary levels
Adds logarithmic sub-levels between them
Produces denser and more precise reaction zones
Suitable for intraday analysis, short-term trade planning, and micro-structure evaluation
The underlying calculations remain unchanged; only the visual resolution and level density differ.
Visual Context & Supporting Tools
GridMap PRO also provides several optional visual tools that are not included in the core level calculations and are intended purely for visual support. These elements are designed to help interpret the price map more clearly and to provide additional contextual awareness.
The available visual components may include:
Moving Averages (EMA)
Used to provide contextual insight into the general price direction. They do not generate any entry or exit signals.
RSI Overbought / Oversold Zones
Displayed solely as background shading based on RSI values from the current timeframe and, optionally, from higher timeframes (e.g., 4H).
RSI Divergence Zones
Visual markers used to highlight potential momentum discrepancies, incorporating filters to limit repetitive signals.
None of these visual elements affect GridMap PRO’s level calculations, nor are they designed to serve as standalone trading signals. All visual settings are optional and can be enabled or disabled by the user.
What GridMap PRO Does – and Does Not Do
What It Does
Segments price into meaningful structural zones
Visualizes areas where price reactions are statistically more likely to occur
Provides reference regions for limit orders, grid-based approaches, or DCA planning
Helps identify whether price is trading within an active zone or moving through low-interaction space
What It Does Not Do
Generate long or short trade signals
Predict future price direction
Provide standalone buy or sell decisions
Offer any form of performance or outcome guarantee
GridMap PRO is not a signal generator, but a decision-support map.
Relationship to DCA and Grid Approaches
GridMap PRO is not a grid or DCA strategy by itself. However, when price fails to react at a given level, the next calculated percentage band naturally becomes a potential area of interest, offering a logical framework for DCA or layered position management.
In this context, GridMap PRO is particularly suitable for traders who favor process-driven and structured position management, rather than relying on single-point entries.
Final Note
Although the levels displayed by GridMap PRO have historically produced meaningful price reactions across many markets, no level can guarantee future price behavior. Market conditions, volatility, liquidity, and news flow should always be taken into account.
This tool is not designed to suggest that “price will definitely reverse here,” but rather that “price may pause, struggle, or change direction in this area.”
Because each market exhibits its own unique dynamics, the relevance of individual levels may vary by asset. Users are encouraged to validate all levels through their own historical observation and analysis.
FX-CLINIC/ICT/FVG&IFVGICT Indicator
Automatic show FVG
Automatic changed to IFVG when break 100% by candle body
Automatic delete IFVG when break 100% by candle body
Working in all timeframes
Created by FX-CLINIC
ATR ZLEMA [QuantAlgo]🟢 Overview
The ATR ZLEMA indicator identifies trend direction and reversal points using a Zero Lag Exponential Moving Average (ZLEMA) combined with volatility-adjusted dynamic trailing stops. It eliminates the inherent lag of traditional moving averages while incorporating Average True Range (ATR) volatility measurement to create adaptive support and resistance levels that automatically adjust to market conditions, with optional noise filtering to reduce whipsaws in choppy markets, helping traders and investors identify trend changes, maintain positions during trending markets, and exit when momentum shifts across multiple timeframes and asset classes.
🟢 How It Works
The indicator's core methodology lies in its zero-lag trend detection system combined with volatility-adaptive trailing stops, where the ZLEMA eliminates moving average lag while ATR-based bands provide dynamic support and resistance levels:
lag = math.floor((zlemaLength - 1) / 2)
rawZlema = ta.ema(source + (source - source ), zlemaLength)
The Zero Lag EMA calculation uses lag reduction through data compensation, adding the difference between current price and lagged price to eliminate the delay inherent in traditional exponential moving averages, providing faster response to trend changes while maintaining smoothness.
The script incorporates an optional ATR-based noise filter that prevents the ZLEMA from updating during insignificant price movements, helping to reduce false signals in choppy, range-bound markets:
if enableNoiseFilter
noiseThreshold = atr * noiseFilter
priceChange = math.abs(rawZlema - zlema)
if priceChange > noiseThreshold
zlema := rawZlema
First, the indicator calculates the Average True Range to measure current market volatility, then applies a user-defined multiplier to determine the distance of the trailing stop from the ZLEMA:
atr = ta.rma(ta.tr(true), atrLength)
atrBand = atr * atrMultiplier
Next, dynamic trend detection occurs through a state-based system where the indicator tracks whether the ZLEMA is above or below the ATR trailing line, automatically adjusting the trailing stop position:
if trend == 1
if zlema < zlemaATR
trend := -1
zlemaATR := zlema + atrBand
else
zlemaATR := math.max(zlemaATR, zlema - atrBand)
The ATR trailing line acts as a volatility-adjusted stop that follows the ZLEMA during trends but never moves against the trend direction. It ratchets upward with the ZLEMA in uptrends and ratchets downward in downtrends, creating a protective barrier that adapts to market volatility.
Finally, trend reversal signals are generated when the ZLEMA crosses the ATR trailing line, indicating a shift in market momentum:
bullSignal = trend == 1 and trend == -1
bearSignal = trend == -1 and trend == 1
This creates a volatility-adaptive trend-following system that combines ZLEMA with dynamic support/resistance levels and optional noise filtering, providing traders with responsive directional signals and automatic stop-loss levels that adjust to both price momentum and market volatility conditions.
🟢 Signal Interpretation
▶ Bullish Trend (Green): ZLEMA trading above ATR trailing line with indicator showing bullish color, indicating established upward momentum with zero-lag confirmation = Long/Buy opportunities
▶ Bearish Trend (Red): ZLEMA trading below ATR trailing line with indicator showing bearish color, indicating established downward momentum with zero-lag confirmation = Short/Sell opportunities
▶ ATR Trailing Line as Dynamic Support: In uptrends, the trailing line acts as volatility-adjusted support level that rises with ZLEMA, never declining = Use as potential stop-loss reference for long positions = ZLEMA holding above indicates trend strength and momentum continuation
▶ ATR Trailing Line as Dynamic Resistance: In downtrends, the trailing line acts as volatility-adjusted resistance level that falls with ZLEMA, never rising = Use as potential stop-loss reference for short positions = ZLEMA holding below indicates trend weakness and momentum continuation
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading styles and market conditions. "Default" provides balanced configuration suitable for swing trading on daily and 4-hour charts with standard ZLEMA and ATR periods, moderate multiplier, and moderate noise filtering that works across most market conditions. "Fast Response" delivers aggressive configuration designed for intraday trading and scalping on 5-minute to 1-hour charts with shorter ZLEMA period for quick trend detection, reduced ATR period for rapid volatility adaptation, tighter multiplier for early entries/exits, and minimal noise filtering for maximum responsiveness. This is ideal for active traders monitoring positions closely but expect more frequent signals and potential whipsaws in choppy conditions. "Smooth Trend" focuses on conservative configuration for position trading and long-term trend following on daily to weekly charts with extended ZLEMA period for smoother trend identification, longer ATR period for stable volatility measurement, wide multiplier to filter minor corrections, and aggressive noise filtering to ensure only strong sustained trends trigger signals. This is best for patient traders focused on major trend moves with fewer reversals.
▶ Built-in Alerts: Three alert conditions enable comprehensive automated monitoring of trend changes and zero-lag momentum shifts. "Bullish Trend" triggers when the ZLEMA crosses above the ATR trailing line and trend state changes from bearish to bullish, signaling potential long entry opportunities with lag-eliminated confirmation. "Bearish Trend" activates when the ZLEMA crosses below the ATR trailing line and trend state changes from bullish to bearish, signaling potential short entry or long exit points with immediate momentum detection. "Any Trend Change" provides a combined alert for any trend reversal regardless of direction, allowing traders to be notified of all zero-lag momentum shifts without setting up separate alerts. These notifications enable traders to capitalize on trend changes and protect positions without continuous chart monitoring, leveraging the indicator's zero-lag technology for faster trend change alerts.
▶ Color Customization: Six visual themes (Classic, Aqua, Cosmic, Ember, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, ensuring optimal contrast for identifying bullish versus bearish trends across various trading environments. The adjustable cloud fill transparency control (0-100%) allows fine-tuning of the gradient area prominence between the ATR trailing line and ZLEMA, with higher transparency values (70-95) creating subtle background context without overwhelming the chart while lower values (20-40) produce bold, prominent trend zone emphasis for instant recognition. Optional bar coloring with adjustable transparency (0-100%) extends the trend color directly to the price bars themselves based on ZLEMA trend state, providing immediate visual reinforcement of current trend direction without requiring reference to the indicator lines.






















