eBacktesting - Learning: FVGeBacktesting - Learning: FVG is an indicator in the eBacktesting Learning series: a collection of tools designed to help new traders understand the most important concepts in trading through clear, visual examples directly on the chart.
This indicator highlights Fair Value Gaps (FVGs): areas where price moved so quickly that it left behind an imbalance. These zones often act like "magnets" for future price action and can become important areas to watch for reactions, continuations, or reversals.
To keep the chart clean and the learning process practical, FVGs are only displayed when they remain relevant, meaning they are not instantly cleared by the very next candle. This helps beginners focus on the imbalances that actually persist and are more likely to matter.
Each FVG is drawn as a zone with a midpoint line and will visually update as price interacts with it:
Touched when price trades into the zone
Filled when price completely clears the zone
These indicators are built to pair perfectly with eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
지표 및 전략
Double Supertrend + DEMA + Split Exits by Amit NamdeoStrategy Overview
This is a Trend-Following Confluence Strategy. Instead of relying on a single indicator, it requires three different technical layers to agree before entering a trade. This helps filter out "fake outs" (false signals) that often happen in choppy markets.
1. The Indicators Used
Supertrend 1 (Standard): Detects the immediate trend direction.
Default: ATR 10, Factor 3.0
Supertrend 2 (Confirmation): Acts as a second opinion.
Default: ATR 14, Factor 2.0
DEMA (Trend Filter): A 200-period Double Exponential Moving Average. It acts as the "Traffic Light" for the overall market direction.
Rule: You only trade in the direction of the DEMA.
2. Trading Rules
🟢 LONG (Buy Signal)
You enter a Buy position only when ALL three conditions are met simultaneously:
Supertrend 1 is GREEN (Uptrend).
Supertrend 2 is GREEN (Uptrend).
Price is ABOVE the DEMA line (Ensures you are in a long-term bull market).
Note: If the DEMA checkbox is disabled, only the first two rules apply.
🔴 SHORT (Sell Signal)
You enter a Sell position only when ALL three conditions are met simultaneously:
Supertrend 1 is RED (Downtrend).
Supertrend 2 is RED (Downtrend).
Price is BELOW the DEMA line (Ensures you are in a long-term bear market).
❌ EXIT Rules (The "Mismatch" Logic)
This is the safety mechanism of the strategy. Instead of waiting for a full trend reversal (which might result in giving back too much profit), the strategy exits as soon as the trend shows weakness.
Exit Buy: Triggered if you are in a Long position and the two Supertrends disagree (one turns Red while the other is still Green).
Exit Sell: Triggered if you are in a Short position and the two Supertrends disagree (one turns Green while the other is still Red).
3. Why this is better than a standard Supertrend?
Fewer False Signals: A single Supertrend often flips back and forth during sideways markets. By requiring two Supertrends to agree + price to be on the correct side of the DEMA, you avoid many bad trades.
Faster Exits: Standard strategies often wait for the Supertrend to flip completely to the opposite color to exit. This strategy exits on the first sign of disagreement, effectively tightening your stop-loss as the trend matures.
4. Visual Guide
Green "BUY" Label: Start of a Long Trade.
Red "SELL" Label: Start of a Short Trade.
Red "X" (Exit Buy): Close your Long trade (Take profit or cut loss).
Green "X" (Exit Sell): Close your Short trade.
Purple Line: The DEMA Filter.
Background: Green or Red shading appears only when a trade is active.
Timeframe-Independent Anchored VWAPAn anchored VWAP (Volume Weighted Average Price) that produces identical values (down to the tick!) across different timeframes (unlike, for example, TradingView's built-in Anchored VWAP).
Advantages
This indicator calculates identical values whether you view it on 1m, 5m, 15m, or any other timeframe within reasonable ranges. Even challenging non-integer timeframe ratios like calculating on 2m while viewing on 3m are handled perfectly. In High or Low mode, VWAP will anchor precisely at the selected candle's high/low. As usual for AVWAP, up to 3 standard deviation bands are supported.
How to Use
Setting the Anchor: When the indicator is added, select your anchor time. This is typically placed at a significant swing high/low or session open.
Source Selection: Choose whether to anchor from High, Low, or Close price.
Calculation Timeframe: Select the timeframe used for VWAP calculation.
For intraday trading (1m-1H charts): Just keep the default setting (1m)
For swing trading (4H-D charts): Use 5m or 15m calculation timeframe
For position trading (D-W charts): Use 1H calculation timeframe
Important: Lower calculation timeframes provide more precise data but may hit Pine Script's bar limit on very long timeframes
Standard Deviation Bands: Enable additional band sets as needed for your trading style.
Technical Implementation
The indicator achieves timeframe independence through the following algorithm:
Lower Timeframe Sampling: Uses Pine Script's request.security_lower_tf() to retrieve bar data at the specified calculation timeframe, regardless of the viewing timeframe. This provides consistent data resolution across all chart timeframes.
Anchor Detection: Scans the lower timeframe data to identify the exact bar containing the selected anchor price. The algorithm handles both simple cases (where anchor falls on a complete bar) and complex cases (where anchor falls within a split bar in non-integer timeframe ratios like calculating on 2m while viewing on 3m).
FIFO Buffer Management: Maintains a First-In-First-Out buffer of lower timeframe bars. On each chart bar:
Adds new lower timeframe bars to the buffer
Processes exactly one period worth of bars (matching the viewing timeframe)
Removes processed bars from the buffer
This approach ensures consistent calculation regardless of viewing timeframe.
First Bar Initialization: On the anchor bar, processes only the single anchor bar to ensure the VWAP starts exactly at the anchor price. Subsequent bars process the full period, maintaining mathematical accuracy.
VWAP Calculation: Applies the standard volume-weighted average price formula:
VWAP = Σ(Price × Volume) / Σ(Volume)
StdDev = √(Σ(Price² × Volume) / Σ(Volume) - VWAP²)
All calculations accumulate from the anchor point forward.
Visual Continuity: For edge cases where the anchor falls in an incomplete bar (e.g., calculating on 2m while viewing on 3m), displays the anchor price as a visual placeholder until the actual calculation begins on the next bar. This ensures the line always starts visually at the anchor point.
S/R-Zones [SouthEast]Autro Support/ Resistance zones, drawn by default on 1 hr timeframe for last 3 months
Evil's Weekly Momentum ScoreA momentum scoring system that ranks any ticker on a 0-100 scale based on multi-timeframe relative strength. Built for weekly rotation decisions - example, I like to check this every Tuesday when it's nice and quiet, then rotate into the 3 strongest names.
Works on sector ETFs (XLK, XLF, XLE, etc.), mega caps (AAPL, NVDA, MSFT, GOOGL), or any liquid ticker watchlist you'd like to rank. Sector ETFs are probably more stable, mega caps have higher volatility; build your watchlist according to your comfort threshold.
How It Works
The indicator combines four components into a single score:
13-Week Momentum (40%) - Quarterly relative strength vs SPY. Where are institutions rotating?
4-Week Momentum (25%) - Monthly trend confirmation. Is the medium-term move intact?
2-Week Acceleration (20%) - Is momentum speeding up or fading? Catches turns early.
10-Week MA (15%) - Trend filter. Price above or below the 10-week moving average.
Each component is measured relative to SPY by default, so you're seeing true outperformance - not just whether something is going up, but whether it's beating the market.
Signal Levels
90+ : ON FIRE 🔥
80-89 : STRONG BUY
70-79 : BUY
50-69 : HOLD
Below 50 : AVOID
In my opinion, cash is a valid position so I don't rotate into scores below 80.
Features
Toggle each component on/off — weights auto-redistribute
Compare to SPY or use absolute momentum
Dashboard overlay sits on your price chart
Position dashboard anywhere: top/bottom, left/right
Alerts for signal level crossings
How To Use It
Add to your watchlist and flip through charts. Compare scores across sectors or mega caps. Rotate into the highest-scoring names, trim or avoid the lowest. Green values in the dashboard = outperforming. Red = underperforming. Simple.
Best Used For
Weekly sector rotation
Mega cap relative strength ranking
Momentum-based stock selection
Identifying leadership shifts before they're obvious
Liquidity Sweeps by EVThis indicator is designed to detect liquidity sweeps and stop hunts by identifying when price briefly moves beyond key swing highs or lows and then rejects those levels. It highlights areas where buy-side or sell-side liquidity has been taken, offering traders a clear and objective way to read liquidity-driven market behavior.
Buy-side liquidity sweeps occur when price trades above a previous swing high and fails to hold, while sell-side liquidity sweeps occur when price trades below a previous swing low and quickly recovers. All detections are based on confirmed pivots, ensuring the indicator is fully non-repainting and reliable in live trading conditions.
The indicator allows users to choose between close-based or wick-based confirmation and can optionally mark only the first sweep of each liquidity level to reduce chart noise. Liquidity levels can be visualized directly on the chart, providing precise contextual references for market structure, VWAP confluence, and potential reversals.
Momentum Status Tracker by VKKScript Coder: Vivek K.
Disclaimer : Use this indicator at your own risk. Do proper back testing to make sure it works for you. I am not responsible for any losses you may have. Indicator may give false signals during consolidation state. Make sure to use other indicators for correct momentum or directional confirmations.
Bullish: Price is above the 5, 13, 20 EMAs AND the VWAP.
Bearish: Price is below the 5, 13, 20 EMAs AND the VWAP.
Cautious: This triggers when the "stack" is broken. For example, if you are in a clear uptrend but the price closes below the 5 EMA, the table will flip to Cautious to warn you of a potential slowdown.
Neutral: Used as a fallback if the price is chopping directly inside the EMA cluster.
Liquidity Zones (Pivot-based) Buyside/SellsideDescription
This indicator highlights potential liquidity zones based on confirmed swing highs and swing lows (pivot-based logic).
Buyside liquidity zones are drawn above swing highs, where short stops and breakout liquidity are likely to rest.
Sellside liquidity zones are drawn below swing lows, where long stops are typically clustered.
Zones are sized dynamically using ATR-based thickness, extended forward in time, and automatically removed once price trades through them (wick-based or close-based, configurable).
The script is designed to help traders:
Visualize areas where liquidity is likely to be targeted
Anticipate stop hunts and liquidity grabs
Improve timing around reversals, continuations, and range extremes
This tool is not a liquidation heatmap and does not rely on exchange or order book data.
Instead, it provides a price-action–based proxy for liquidity, fully compatible with ICT / SMC-style market structure analysis.
Key features :
-Pivot-based buyside & sellside liquidity zones
-ATR-adjusted zone thickness
-Automatic extension and cleanup of zones
-Adjustable sensitivity and zone limits
-Works on any market and timeframe
HV and IMP candle finderHV and IMP candle finder
Highest volume candle (HV) and Important candle (IMP) are usually a traces of institutional activity. We can take help of these candles to form a bias for the next trading day.
This script does the following:
1. Finds the IMP candle for a given day range with the trend of a given day, ie it finds highest volume candle between the high and low of the day and marks as IMP on the chart
2. It finds the highest volume candle for a given day and marks it.
Use case:
Spot institutional activity, accumulation, and key intraday pivot candles.
View can be made by seeing this HH and LL in these volume candles. Also by considering the closing and opening for the price the next trading session.
Notes
Best to be used on 5 min TF for after market analysis. It does get the candles in live market but it might change with time.
Works really best when delivery volume is also analysed along with it.
Made with Love.
Regards,
Jitendra Varma
BIST Commander - Strategic MomentumDescription : This indicator is designed for retail investors who want to follow the trend without getting caught in market noise. It is optimized for 1-Hour, 2-Hour, and 4-Hour timeframes.
Key Features:
Triple Filter Mechanism: Checks Daily Bullish structure, Weekly Confirmation, and Momentum (CCI) simultaneously.
No Repaint: Signals are calculated based on fixed daily/weekly data to ensure stability.
Anti-Noise: By using a strict CCI threshold (95/-85), it avoids premature entries in sideways markets.
Strategy Logic:
BUY: Active when the price is above Today's Open AND Yesterday's High AND Weekly Open AND CCI is above 95.
SELL: Triggered when CCI loses momentum (falls below 85) or enters a bearish zone.
Note: This is a trend-following tool. It works best in trending markets and helps you stay disciplined.
EURUSD 15mThis strategy is a EURUSD 15-minute trend-following signal indicator built around an EMA “basis” and ATR volatility bands. It uses a 20-period EMA as the midline and ATR to form inner/outer channels, helping identify pullbacks and avoid chasing extremes. A 150-period EMA acts as the trend filter, and signals are only considered in the direction of the trend (optionally requiring the trend EMA to slope). Quality filters include ADX strength, a confirmation candle rule, a volatility filter (ATR vs ATR moving average), a “room to outer band” filter, plus anti-spam arming and a cooldown timer to reduce repeated signals. The main entry logic is DR (deep retracement back to the basis and reclaim) with an optional BO (breakout across the inner band) feature. Mode presets (More Trades / Balanced / Quality) adjust strictness to trade off frequency versus selectivity.
Trade Decision MatrixTrade Decision Matrix (TDM)
Trade Decision Matrix (TDM) is a professional-grade, multi-phase market intelligence indicator designed to assist traders in understanding market structure, regime behavior, capital confidence, and execution readiness using a systematic, probabilistic framework.
This indicator does not generate trade signals. Instead, it provides a structured decision matrix similar to institutional trading desks, combining regime analytics, entropy confidence, Bayesian reliability, capital allocation logic, and scenario interpretation.
🔹 Core Architecture
TDM is built using a nine-phase institutional decision pipeline:
Phase 1 — Market Context
Spot–future basis, volatility normalization, and structural slope detection.
Phase 2 — Regime Engine
Probabilistic classification of Trend, Breakout, Range, or Mean Reversion environments.
Phase 3 — Orthogonal Model Cores
Independent statistical, trend, breakout, and mean-reversion cores.
Phase 4 — Bayesian Reliability Engine
Adaptive reliability scoring for each core using Bayesian reinforcement.
Phase 5 — Capital Engine
Capital confidence and capital mode based on opportunity quality, regime clarity, entropy confidence, and risk filters.
Phase 6 — Decision Matrix
Bias, participation level, and trade quality grading.
Phase 7 — Scenario Engine
Contextual scenario interpretation such as Trend Expansion, Breakout Failure, Range Compression, etc.
Phase 8 — Execution Gate
Execution readiness filter based on capital and model alignment.
Phase 9 — Reversal Engine
Probabilistic reversal risk estimation using multi-factor logic.
🔹 Regime Entropy Confidence
TDM uses Shannon entropy to measure regime uncertainty and converts it into a confidence score.
Lower entropy = higher regime confidence.
Higher entropy = unstable or transitional market state.
This prevents over-confidence in noisy conditions.
🔹 Institutional Commentary Engine
A professional commentary layer interprets all internal engines and outputs institutional-style guidance such as:
• Institutional Alignment
• Capital Protection Mode
• Regime Uncertainty
• Momentum Continuation
• Structural Breakout
• Volatility Coiling
• Reversal Risk Elevated
This commentary is designed for situational awareness, not signal generation.
🔹 Dashboard
The dark-theme dashboard provides a compact institutional decision panel:
• Regime
• Entropy Confidence
• Scenario
• Bias
• Strength
• Capital Confidence
• Capital Mode
• Trade Quality
• Execution State
• Commentary
• Reversal Risk
All values are color-coded with heat shading for instant visual interpretation.
🔹 How To Use
TDM is best used as a decision support layer alongside your own trading strategy.
Typical workflow:
Identify regime and entropy confidence.
Observe capital confidence and capital mode.
Check scenario and bias alignment.
Confirm execution readiness.
Monitor reversal risk before entering or holding positions.
This tool is ideal for:
• Intraday traders
• Swing traders
• Options traders
• Index traders
• Systematic discretionary traders
🔹 Important Notes
• This indicator does NOT produce buy/sell signals.
• It is a decision intelligence framework.
• It should not be used as a standalone trading system.
• Always apply personal risk management.
🔹 Disclaimer
This indicator is provided for educational and informational purposes only.It does not constitute financial advice or investment recommendations.Trading involves risk. Users are responsible for their own trading decisions.
SMC Liquidity Grab ProSMC LIquidity GRab Pro is an high probability strategy for the Smart Money Concept (SMC).
It looks for liquidity sweeps also known as stop hunts, where large financial institutions move the price beyond significant levels in order to trigger market orders and then reverse the price quickly.
Features
1. Liquidity Sweeps : It follows the previous 4 hour high/low liquidity in order to pinpoint stop runs.
2. Liquidity grab confirmation: Trade setup where price momentarily breaks through the liquidity level but then ends up again inside the range suggests that there’s been a false breakout.
3.Structure-Based Risk Management: Stop losses are placed beyond the latest swing high/low pivot, instead of basing it on a pip value.
- Live Performance Dashboard - Allows you to display real-time data such as net profit, win rate, and active trade on your chart.
-Customizable Risk-to-Reward- Traders can set risk/reward ratio as per their requirement. Default value is 2.0 RR. Graph Timeframe: This strategy is used on 5-minute or 15-minute charts.
Chart Timeframe: Apply the strategy to 5-minute or 15-minute charts.
HTF Configuration: Set the higher timeframe above your execution chart e.g., 240 minutes for 4-hours.
Fine-Tuning: Adjust the swing lookback parameter to adapt stop-loss placement according to market volatility.
My Swiftlike Algo Backtest ATR SL/TP HH/HL/LH/LL BOS/CHOCHSwift-Like Algo is a trend-following strategy that trades pullbacks using EMA trend direction, market structure (HH/HL/LH/LL), and ATR-based risk management.
It enters only in the direction of the trend, with automatic Stop-Loss, TP1, and TP2, and supports full strategy backtesting.
Best used on 15m–4H timeframes for crypto, forex, and indices.
⚠️ For educational and testing purposes only.
Pivots Universales 1H - H y PIt aims to measure the projected average volatility of the current day versus that of the previous day using Bollinger.
ALMA v1 ATR Bands With Trend BarsALMA v1 ATR Bands With Trend Bars is a trend-context overlay indicator designed to visualize price structure, momentum direction, and volatility expansion directly on the chart.
It combines the Arnaud Legoux Moving Average (ALMA) with ATR-based dynamic bands and a dual-momentum bar-coloring model, providing a clear visual framework for interpreting trend conditions without compressing market behavior into a single decision output.
Conceptual Architecture
The indicator is built around three complementary layers, each serving a distinct analytical role:
1. ALMA Trend Curve
The core trend line is computed using the Arnaud Legoux Moving Average, which emphasizes responsiveness while maintaining smoothness through controlled offset and sigma parameters.
An optional adaptive filter suppresses minor fluctuations, allowing the curve to focus on structural price movement rather than short-term noise.
Color changes in the ALMA line reflect directional slope state, not trading actions.
2. ATR Volatility Bands
ATR-based bands are calculated around the filtered ALMA curve:
The bands expand and contract dynamically with volatility.
They provide a contextual envelope that helps visualize price dispersion relative to the underlying trend.
These bands are intended as a volatility reference, not fixed support or resistance levels.
3. Trend Bars (Momentum State Layer)
Price candles are recolored using a dual-CCI momentum model:
A fast and a slow CCI operate together to classify momentum agreement.
When both momentum measures align, bars reflect directional bias.
When momentum disagrees, bars shift to a neutral state.
This layer highlights momentum consistency, not execution timing.
Trend State Visualization:
Discrete visual markers may appear when the slope direction of the ALMA curve changes.
These markers indicate structural trend transitions based on confirmed bar closes and do not repaint.
They are intended to support visual interpretation of trend evolution, not to automate decisions.
Reliability:
No repainting: all states, colors, and markers are confirmed on bar close.
Consistent behavior across instruments and timeframes.
Designed for stable visual output during live market conditions.
Customization Options:
ALMA length, offset, sigma, and optional shift.
Adaptive filtering sensitivity.
ATR period and deviation multiplier.
Momentum sensitivity modes for bar coloring.
Fully customizable color palette.
Optional alerts for structural trend changes.
WaveRider [Scalping-Algo]# 📊 TrendPulse Pro - Indicator Guide
## 🎯 What is it?
A clean all-in-one trend tool. Combines 4 smoothed MAs, candlestick patterns & session highlights. No clutter, just signals.
---
## 🔧 Features
### 📈 4 Smoothed Moving Averages
- **21 SMMA** (Cyan) → Fast trend, scalping
- **50 SMMA** (Green) → Swing entries
- **100 SMMA** (Gold) → Medium trend filter
- **200 SMMA** (Red) → Major trend direction
💡 *Price above all = strong bull. Below all = strong bear.*
---
### ⚡ 3 Line Strike Pattern
Rare but powerful reversal signal.
- 🟢 **Bull 3LS** → 3 red candles + 1 big green that closes above first candle
- 🔴 **Bear 3LS** → 3 green candles + 1 big red that closes below first candle
💡 *Best near support/resistance zones.*
---
### 💎 Engulfing Candles
Shows momentum shift.
- 🟢 **Bull Engulf** → Green candle swallows previous red
- 🔴 **Bear Engulf** → Red candle swallows previous green
💡 *Filter with trend direction for better win rate.*
---
### 🕐 Session Highlight
See your trading window clearly.
- Light shade = Pre-session (prep time)
- Darker shade = Active session (go time)
💡 *Default is CME hours. Adjust in settings.*
---
## 📝 Quick Setup
1. Add to chart
2. Pick your timeframe (works on any)
3. Toggle what you need ON/OFF
4. Set your session times
5. Trade with confidence
---
## 🎨 Color Guide
| Element | Default Color | Meaning |
|---------|---------------|---------|
| 21 MA | Cyan | Fast trend |
| 50 MA | Green | Swing trend |
| 100 MA | Gold | Filter |
| 200 MA | Red | Big picture |
| Fill Green | Light Green | Bullish bias |
| Fill Red | Light Red | Bearish bias |
---
## ⚠️ Tips
✅ Use MA stack for trend bias
✅ Wait for patterns AT key levels
✅ Combine with volume
✅ Respect the 200 MA
❌ Don't trade against all MAs
❌ Don't chase every signal
❌ Don't ignore session times
---
## 🚀 Best Practices
**For Scalping:**
- Focus on 21 & 50 MA
- Trade engulfing patterns
- Use 1-5 min charts
**For Swing:**
- Focus on 100 & 200 MA
- Trade 3 Line Strike
- Use 1H-4H charts
---
Made with ☕ by a trader, for traders.
*"Keep it simple. Let price do the talking."*
Precision Trend Signal V5Strategy Logic OverviewThis indicator is a "Triple-Confirmation" trend-following system. It combines volume-weighted smoothing, immediate price action, and momentum filtering.1. Core ComponentsEMA 1 (The Trigger): Since the period is set to 1, this represents the raw price action. It acts as the fastest possible trigger to capture entries at the exact moment a trend shifts.SALMA (The Baseline): This is a double-smoothed moving average. It provides a stabilized support/resistance line that filters out market noise better than a standard SMA.Tillson T3 (The Trend Filter): Known for its low lag and extreme smoothness. We use this as a "Guardrail." We only take BUY signals when price is above the T3 and SELL signals when price is below it.RSI (The Momentum Filter): Ensures that we only enter a trade when there is sufficient strength ($> 50$ for Long, $< 50$ for Short).2. Signal Rules🚀 BUY SignalA green BUY label appears when:Crossover: EMA 1 crosses above the SALMA line.Trend: The current price is trading above the Tillson T3 line.Momentum: RSI is greater than 50.🔻 SELL SignalA red SELL label appears when:Crossunder: EMA 1 crosses below the SALMA line.Trend: The current price is trading below the Tillson T3 line.Momentum: RSI is less than 50.3. Execution & ManagementTake Profit (TP): Based on your preference, the suggested target is 2%.Alerts: The script includes alertcondition functions. You can set up TradingView alerts to send Webhooks to your quant infrastructure or bot, solving the "manual execution" problem you mentioned.
Kalman Absorption/Distribution Tracker 3-State EKFQuant-Grade Institutional Flow: 3-State EKF Absorption Tracker
SUMMARY
An advanced, open-source implementation of a 3-State Extended Kalman Filter (EKF) designed to track institutional Order Flow. By analyzing 1-second intrabar microstructure data, this script estimates the true Position, Velocity, and Volatility of the Cumulative Volume Delta (CVD), revealing hidden Absorption and Distribution events in real-time.
INTRODUCTION: THE SIGNAL AMIDST THE NOISE
In the world of technical analysis, noise is the enemy. Traditional indicators rely on Moving Averages (SMA, EMA) to smooth out price and volume data. The problem is the "Lag vs. Noise" paradox: to get a smooth signal, you must accept lag; to get a fast signal, you must accept noise.
This indicator solves that paradox by introducing aerospace-grade mathematics to the TradingView community: The 3-State Extended Kalman Filter (EKF).
Unlike moving averages that blindly average past data, a Kalman Filter is a probabilistic state-space model. It constantly predicts where the order flow "should" be, compares it to the actual measurement, and updates its internal model based on the calculated uncertainty of the market.
This script is not just another volume oscillator. It is a full microstructure analysis engine that digests intrabar data (down to 1-second resolution) to track the true intent of "Smart Money" while filtering out the noise of retail chop.
THE INNOVATION: WHY 3 STATES?
Most Kalman Filters found in public libraries are "1-State" (tracking price only) or occasionally "2-State" (tracking price and velocity). This script introduces a highly advanced 3-State EKF.
The filter tracks three distinct variables simultaneously in a feedback loop:
State 1: Position (The True CVD)
This is the noise-filtered estimate of the Cumulative Volume Delta. It represents the actual inventory accumulation of aggressive buyers versus sellers, stripped of random noise.
State 2: Velocity (The Momentum)
This tracks the rate of change of the order flow. Is buying accelerating? Is selling pressure fading even as price drops? This provides a leading signal before the cumulative value even turns.
State 3: Volatility (The Adaptive Regime)
This is the game-changer. The filter estimates the current volatility of the order flow (Log-Volatility). In high-volatility environments (like news events), the filter automatically widens its uncertainty bands (Covariance) and reacts faster. In low-volatility environments (chop), it tightens up and ignores minor fluctuations.
THE LOGIC: DETECTING ABSORPTION AND DISTRIBUTION
The core philosophy of this indicator is based on Wyckoff Logic: Effort vs. Result.
-- Effort: Represented by the CVD (Buying/Selling pressure).
-- Result: Represented by Price Movement.
When these two diverge, we have an actionable signal. The script uses the EKF Velocity state to detect these moments:
Absorption (Bullish)
This occurs when the EKF detects high negative Velocity (aggressive selling), but Price refuses to drop. The "Smart Money" is absorbing the sell orders via limit buys. The indicator highlights this as a Blue Event in the dashboard.
Distribution (Bearish)
This occurs when the EKF detects high positive Velocity (aggressive buying), but Price refuses to rise. Limit sellers are capping the market. The indicator highlights this as an Orange Event.
TECHNICAL DEEP DIVE: UNDER THE HOOD
For the developers and quants, here is how the Pine Script is architected using the "type" and "method" features of Pine Script v5.
1. Data Ingestion (Microstructure)
The script uses "request.security_lower_tf" to pull intrabar data regardless of your chart timeframe. This allows the script to see "inside" the bar. A 5-minute candle might look green, but the microstructure might reveal that 80% of the volume was selling absorption at the wick. This script sees that.
2. Tick Classification
Standard CVD assumes that if Price Close is greater than Price Open, all volume is buying. This is often flawed. This script offers three modes of tick handling, including a "High-Low Distribution" method that statistically apportions volume based on where the tick closed relative to its high and low.
3. The EKF Mathematics
The script implements the standard Extended Kalman Filter equations manually. It calculates the Jacobian matrix to handle the non-linear relationship between volatility and price. The "Process Noise Matrix" (Q) is dynamically scaled by the Volatility State. This means the mathematics of the indicator literally "breathe" with the market conditions—expanding during expansion and contracting during consolidation.
THE DASHBOARD & VISUALS:
The indicator features a professional-grade HUD (Heads Up Display) located on the chart table.
-- EKF State Vector: Displays the real-time Position, Velocity, and Volatility values derived from the matrix.
-- Ease of Movement (Wyckoff): Calculates how much price moves per 1,000 contracts of CVD. For example, if Price moves +5 points per 1k Buy CVD, but only -2 points per 1k Sell CVD, the "Path of Least Resistance" is clearly UP.
-- Session State: Tracks cumulative confirmed Bullish vs. Bearish events for Today, Yesterday, and the Day Before (3-Day Profile).
-- Bias Summary: An algorithmic conclusion telling you if the day is "Confirmed Bullish," "Accumulating," or "Neutral."
HOW TO TRADE THIS INDICATOR
Strategy A: The Reversal (Absorption Play)
Look for price making a Lower Low.
Look for the EKF Velocity (Histogram) to be Deep Red (High Selling Pressure).
Watch the Dashboard "Absorption" count increase.
SIGNAL: When EKF Velocity crosses back toward zero and turns grey/green, the absorption is complete. This indicates sellers are exhausted and limit buyers have control.
Strategy B: The Trend Continuation (Ease of Movement)
Check the Dashboard "Ease of Movement" section.
If "Price per +1K CVD" is significantly higher than "Price per -1K CVD", buyers are efficient.
Wait for a pullback where EKF Velocity hits the "Neutral Zone" (Gray).
SIGNAL: Enter Long when Velocity ticks positive again, aligning with the dominant Ease of Movement stats.
CONFIGURATION GUIDE:
Because this is a quant-grade tool, the settings allow for fine-tuning the physics of the filter.
-- Velocity Decay: Controls how fast momentum resets to zero. Set high (0.98) for trending markets, or lower (0.85) for mean-reverting chop.
-- Volatility Persistence: Controls how "sticky" volatility regimes are.
-- Process Noise: Increase this if the filter feels too laggy; decrease it if the filter feels too jittery (noisy).
-- Measurement Noise: Increase this to trust the Mathematical Model more than the Price Data (smoother output).
WHY OPEN SOURCE?
Complex statistical filtering is often sold behind closed doors in expensive "Black Box" algorithms. By releasing this 3-State EKF open source, the goal is to raise the standard of development on TradingView.
I encourage the community to inspect the code, specifically the "ekf_update_3state" function, to understand how matrix operations can be simulated in Pine Script to create adaptive, self-correcting indicators. And also update me for improvements.
DISCLAIMER:
This tool analyzes microstructure volume data. It requires a subscription plan that supports Intrabar inspection (Premium/Pro recommended for best results). Past performance of the Kalman Filter logic does not guarantee future results. Volume analysis is subjective and should be used as part of a comprehensive strategy.
SUGGESTED SETTINGS
-- Timeframe: Works best on 1m, 3m, or 5m charts (Intrabar data is fetched from 1S).
-- Asset Class: Highly effective on Futures (ES, NQ, BTC) and high-volume Forex/Crypto pairs where volume data is reliable.
-- Background: Dark mode recommended for Dashboard visibility.
WHAT IS A KALMAN FILTER?
Imagine driving a car into a tunnel where your GPS signal is lost.
Prediction: Your car knows its last speed (Velocity) and position. It predicts where you are every second inside the tunnel.
Update: When you exit the tunnel, the GPS connects again. The system compares where it thought you were versus where the satellite says you are.
Correction: It corrects your position and updates its estimate of your speed.
Now apply this to trading:
-- The Tunnel: Market Noise, wicks, and Fake-outs.
-- The Car: The True Market Trend.
-- This Indicator: The navigation system that tells you where the market actually is, ignoring the noise of the tunnel.
Enjoy the indicator and trade safe!
Dr. Jay Desai
(Investment Management & Derivatives Area, Gujarat University)
Market Regime Guard PRO Institutional No-Trade ZonesThis dashboard automatically blocks trading on structurally dangerous market days caused by volatility compression, inside-day accumulation, rising VIX liquidation risk, EMA breakdowns, and thin liquidity traps.
Most traders lose not because their entries are bad — but because they trade on structurally dangerous market days.
This dashboard automatically blocks trading on contraction, liquidation-risk, inside-day, and volatility-trap days.
Then list what it detects:
• Inside Days (institutional absorption)
• NR7 contraction traps
• ATR volatility compression
• EMA structure breakdown
• Rising VIX liquidation risk
• News & holiday liquidity traps
Promise:
Only trade when the market structure is favorable.
Use this as your universal go/no-go trading permission system.
If it’s GREEN → Trade.
If it’s RED → Stand Aside or Be careful
Works on:
SPY, QQQ, TQQQ, NVDA, PLTR, TSLA, BTC, ES, NQ, Forex & Crypto.
🧭 How to Use the Market Regime Table
This table is your go / no-go permission system.
Start by checking it on SPY and QQQ — these represent the overall U.S. market and the Nasdaq growth complex.
• If SPY and QQQ are GREEN → market structure is favorable
• If either is RED → stand aside or reduce risk
Once the market is GREEN, you can then apply the same table to individual stocks (NVDA, PLTR, TSLA, AMD, etc.) to confirm that the stock’s structure is also favorable before taking any trades.
Rule of thumb:
Market first. Stock second.
Only trade when both are GREEN.
This one rule alone dramatically improves win rate, drawdown, and consistency.
FULL DESCRIPTION
Most traders don’t lose because their entries are bad —
They lose because they trade on structurally dangerous market days.
On these days:
• Institutions absorb liquidity
• Volatility contracts
• Fake breakouts dominate
• Stop hunts explode
• Real expansion does not occur
This indicator automatically identifies and blocks:
• Inside-day accumulation traps
• NR7 contraction traps
• Falling ATR volatility compression
• EMA structure breakdowns
• Rising VIX liquidation risk
• Thin liquidity / holiday risk
• News-day volatility traps
It gives you a clear desk-style verdict:
Status Meaning
🟢 GREEN Market structure favorable – trade normally
🔴 RED Structural danger – stand aside
This is not an entry system.
This is your permission system.
🛠 HOW TO USE
Add indicator to your chart
Check table in top-right
Trade only on GREEN days
Avoid RED days completely
📈 Personal Note
This regime filter has been instrumental in my own trading journey. After struggling during my first few years in the market, I realized that the biggest losses didn’t come from bad strategies — they came from trading on the wrong days.
Learning to stand aside on structurally dangerous market days and only trade when conditions are favorable dramatically improved my consistency and overall returns.
🧠 Why Market Regime Matters Even More for Day Traders
Most day-trader losses do not come from bad entries.
They come from:
• Choppy inside-day conditions
• Liquidity absorption
• Falling volatility (no follow-through)
• Stop-hunt behavior
• News / thin liquidity traps
Your filter directly blocks every one of these traps.
So for day traders, this tool:
• Prevents revenge trading
• Stops death-by-a-thousand-cuts days
• Filters out random chop days
• Protects capital on slow days
• Preserves psychological capital
📈 Why It Also Improves Swing Trading
For swing traders, this tool:
• Avoids entering during contraction
• Avoids entering before expansions
• Avoids bear-regime traps
• Improves follow-through probability
• Reduces drawdown
• Improves R-multiple expectancy
Which means:
Fewer trades
Higher quality trades
More profit per trade
The Universal Truth
The market does not pay you for activity.
It pays you for selectivity.
This filter improves timing, not tactics.
Your entries can be identical — your results improve simply because you’re trading on the right days.
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice.
Trading stocks, options, futures, forex, and cryptocurrencies involves substantial risk and may result in the loss of some or all of your invested capital. Past performance is not indicative of future results.
This tool does not guarantee profits and should be used as a market structure filter and risk-management aid only. Always perform your own analysis, use proper position sizing, and consult a licensed financial professional before making any trading decisions.
You are solely responsible for all trades taken using this indicator.
Atilla EMA Cloud PRO (FINAL - FIXED)Atilla EMA Cloud PRO (FINAL – FIXED) is a professional trend-filtering indicator designed to eliminate noise and keep traders out of low-probability, sideways markets.
This indicator is built around a multi-EMA structure (EMA 9 / 21 / 35 / 55) combined with an ATR-based sensitivity filter and candle confirmation logic. Its primary goal is not to generate constant signals, but to clearly define when the market is worth trading — and when it is not.
Key Features:
Advanced EMA Cloud that defines clear NO-TRADE ZONES
ATR-based sideways market detection to suppress fake trends
Trend confirmation using momentum + candle structure
Adjustable sensitivity for different market conditions
Optimized for 15-minute charts, suitable for both crypto and forex
Designed to favor quality over quantity
How to use:
Trade only when price is outside the EMA Cloud
Ignore signals during gray / flat conditions
Focus on sustained color changes confirmed by EMA alignment
Best used with proper risk management and higher timeframe context
This indicator does not chase every move.
It waits for structure, momentum, and clarity.
Built for traders who value discipline, patience, and consistency over noise.
SuperTrend AI + PVSRA Full DashboardI tried to combine various indicators already created in a single version that can also guarantee a certain customization on colors, intensity of tables, etc. etc. The functioning, the operation is similar to the previous ones, I won't go into detail, at most take a look at the previous versions.
1. The "AI" Component: Multi-SuperTrend Clustering
Instead of using a single SuperTrend with a fixed multiplier, this script:
Simultaneously runs multiple SuperTrends with different sensitivities (multipliers).
Evaluates Performance: It tracks which multiplier would have been most profitable in recent bars.
K-Means Clustering: It uses an AI algorithm to group these multipliers into "Best," "Average," and "Worst" clusters.
Adaptive Trailing Stop: It automatically selects the "Best" multiplier to plot the AI Trailing Stop line on your chart, making it more responsive to changing market volatility than a standard indicator.
2. PVSRA Logic (Institutional Volumes)
PVSRA stands for Price Volume Support Resistance Analysis. The script re-colors candles based on volume intensity:
Climax Bull (Bright Green): Extremely high volume on a bullish candle. Usually indicates institutional buying or a trend climax.
Climax Bear (Magenta/Purple): Extremely high volume on a bearish candle. Usually indicates institutional selling or a panic bottom.
Rising (Grey/Silver): Above-average volume, showing increasing interest.
3. The "Super Confluence" Signal
This is the "Golden Signal" of the script. It triggers a BUY or SELL label only when several conditions align:
AI Trend Switch: The AI Trailing Stop flips direction.
SMA 20 Cross: The AI line crosses the 20-period Simple Moving Average.
Volume Confirmation: A PVSRA Climax or Rising volume must occur on that specific bar.
Directional Alignment: The candle color must match the trend direction.
4. Summary Dashboard (Top Right)
The dashboard provides a "Quick Glance" at the market structure:
AI Trend: Shows if the machine learning model is currently Bullish or Bearish.
PVSRA Vol: Identifies the current volume signature (Normal vs. Climax).
SMA 20/50: Shows medium-term momentum (Bullish if 20 > 50).
Trend 200: Shows the macro trend. ABOVE means long-term bullish; BELOW means long-term bearish.
How to Trade with This Script
Signal Strategy
"SUPER CONFLUENCE BUY" Look for entries. High probability if Trend 200 is "ABOVE".
"SUPER CONFLUENCE SELL" Look for shorts. High probability if Trend 200 is "BELOW".
Magenta/Green Candles Caution: These are "Stop Hunts" or "Institutional Entries." Do not
trade against these candles without a clear reversal pattern.
Technical Tip
The variable target_f is the "AI-optimized multiplier." If you see this value changing frequently in the dashboard, it means the market is volatile, and the AI is struggling to find a stable trend. If it stays consistent, the trend is likely solid.
Thanks everyone and happy trading






















