FVG by EVEV FVG is a clean and beginner-friendly Fair Value Gap indicator designed to help traders understand and visualize institutional price imbalances in a simple and intuitive way. It automatically detects high-quality bullish and bearish fair value gaps using a non-repainting three-candle structure, ensuring that all zones are confirmed and reliable in real-time trading.
The indicator focuses on clarity over complexity. Active fair value gaps are extended forward to act as potential areas of interest, while filled gaps are automatically frozen at the exact point where price completes them, preserving the historical context without cluttering the chart. Fully mitigated zones are visually muted and do not display labels, keeping attention on what is currently relevant.
To maintain a clean chart, distant gaps fade into outline-only mode, allowing traders to focus on the most actionable areas near price while still retaining broader market structure awareness. Sensitivity is controlled through a single preset selector, making the indicator suitable for beginners without requiring manual optimization or advanced configuration.
EV FVG Lite works on any market and timeframe and is designed to integrate naturally with price action, market structure, and liquidity-based trading approaches. It is intended as an educational and practical tool that helps traders build a solid understanding of fair value gaps without overwhelming them with settings or noise.
指标和策略
OHLC an der Kerze: Hover-Tooltip + Live-Anzeige (v6)Moin Moin.
This Pine-script is helping to show the OHLC-data as tooltipps, effectively eliminationg the need to wander of/avert with the eyes' point of view to the left upper corner.
this helps to avoid a flush of the ultrashort-term-memory due to the aversion of the point of view, which neurologically interrupts the thought-processes. (You ma be noticing this effect if Your ultrashort-term-memory has been flushed for taking too long for an in-my-head caluclation like 1/7=0,14255... oh crap I lost it... again effect)
_Tschüß,
__Michael.
CJ Oscillator Matrix PRO (Flow + Momentum + Heatmap)CJ Oscillator Matrix PRO is not a buy/sell signal indicator and does not follow price candle by candle.
It is a market context and momentum analysis tool designed to help traders understand trend strength, impulse, and overall market conditions.
This indicator combines momentum (TSI) and money flow (CMF) into a single oscillator, while the heatmap background highlights when the market is balanced or extended.
Strong colors represent high pressure or potential exhaustion zones, not automatic entries or reversals.
Use this tool to:
Identify trend direction and strength
Understand impulse vs. consolidation
Avoid chasing price during extended moves
Add context to your technical analysis
Best used alongside price action, structure, EMAs, and risk management.
This indicator does not predict price — it helps you understand market behavior.
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
Turtle System 1Turtle Trader system is a famous trend-following trading methodology created by Richard Dennis and his partner William Eckhardt in the early 1980s.
The backstory is almost as interesting as the system itself:
Dennis believed trading success was a skill that could be taught, while Eckhardt thought it was more about innate talent.
To settle the debate, they recruited a group of ordinary people — with little to no trading experience — and trained them in a simple rules-based strategy. These students became known as the "Turtles".
The system focused on trading breakouts in futures markets (commodities, currencies, bonds, stock indices) with strict risk management.
System 1 (Short-Term)
Entry: Buy when price breaks above the 20-day high. Sell short when price breaks below the 20-day low.
Exit: Opposite 10-day breakout (i.e., sell long positions if price breaks below the 10-day low).
Opening Range {basic}Introduction
Opening range {basic} is a clean and reliable indicator designed to help traders visualize the opening range of a trading session with minimal setup and visual clutter.
This version focuses on the core components of opening range analysis, making it ideal for traders who want a simple, effective framework for identifying early-session structure across futures, forex and crypto markets.
Description
The indicator automatically calculates the opening range high, low and midpoint over a user-defined opening window (5m, 15m, 30m or 60m) within a selected trading session (default: NY session).
During the opening range window, the indicator dynamically tracks price to form the range. Once the opening range is complete, the high, low and midpoint are extended forward for the remainder of the session, providing clear reference levels that can be used for bias, mean reversion or breakout-based decision making.
A shaded fill highlights the opening range area, with an optional size display showing the total range in price units. Styling and logic are intentionally simplified to keep the chart clean and easy to interpret.
Features
Configurable opening range length
Choose between 5m, 15m, 30m or 60m opening ranges.
Session-based calculation
Opening range is calculated only within the selected trading session.
Opening range levels
Opening range high, low and midpoint.
Range fill & size display
Shaded fill between the opening range high and low.
Text showing total opening range size.
Clean, minimal design
Fixed line styles and thickness for clarity.
Dark and light theme support.
Minimal settings for fast, intuitive use.
Optimized performance
Designed for intraday timeframes compatible with the selected opening range length.
Terms & Conditions
This indicator is provided for educational and informational purposes only and does not constitute financial advice.
Trading involves risk and past performance is not indicative of future results.
The user assumes full responsibility for any trading decisions made using this indicator.
Bull Engulf @ Rolling Support + HTF Confluence (2-8w) This indicator is designed to identify high-probability bullish reversal setups that occur at proven support levels, with confirmation from higher timeframes.
It is built for swing traders targeting 2–8 week moves, prioritizing win rate and trade quality over frequency.
The script focuses on institutional-style price behavior: pullbacks into support, seller exhaustion, and clear buyer confirmation before entry.
Core Logic
A signal is generated only when all of the following align:
Bullish Engulfing Candle
Current candle fully engulfs the prior candle’s body
Optional filters ensure strong momentum (close above prior high, meaningful candle size)
Rolling-Low Support
Price must be near a rolling support level based on recent swing lows
Support adapts dynamically to market structure
Higher Timeframe (HTF) Confluence
Daily setups can require alignment with weekly and monthly support
Weekly setups can require monthly support
This dramatically reduces low-quality signals
Strongest-Only Scoring System
Each setup is scored based on:
Proximity to support
HTF confluence
Candle strength
Volume and volatility filters
Only setups meeting a minimum score threshold are shown
Signals & Labels
SETUP / TOP label
Appears when a valid bullish engulfing forms at support with HTF confirmation.
ENTRY label
Appears when price breaks above the high of the engulfing candle (confirmation entry).
Support Lines
Local (rolling) support
Weekly and Monthly support (when applicable)
Each label includes:
Timeframe
Score
Support distance
Suggested risk level
A standardized options structure for 2–8 week trades
Intended Trading Style
Timeframe: Daily and Weekly charts
Trade Duration: ~2–8 weeks
Market Type: Stocks (best on liquid, mid/large-cap names)
Approach:
Wait for price to come to support
Wait for buyers to prove control
Enter only after confirmation
This indicator is not designed for:
Day trading
Chasing breakouts
High-frequency signals
Fewer signals is intentional.
How to Use
Apply the indicator to Daily or Weekly charts
Wait for a SETUP/TOP label at support
Enter only after the ENTRY confirmation (break above engulfing high)
Use the displayed risk level to define invalidation
Let the trade develop over multiple weeks
Alerts can be enabled for:
Pre-market watchlist signals (yesterday’s setups)
Confirmed signals at the close
Entry confirmation
Why This Works
Markets often reverse at support, not randomly.
By combining:
Structural support
Price-action confirmation
Higher timeframe alignment
this indicator filters out most noise and focuses on areas where larger participants are likely active.
Disclaimer
This indicator is for educational and analytical purposes only.
It does not constitute financial advice. Always manage risk appropriately.
4 EMA Perfect Order + Strength + MTF + Breakdown Alerts (v6.1)📘 Description
4 EMA Perfect Order + Strength + MTF + Breakdown Alerts (v6.1)
This indicator provides a complete multi‑EMA trend structure analysis with Perfect Order detection, breakdown alerts, strength measurement, and multi‑timeframe confirmation. It is designed for traders who want a clean, reliable, and highly configurable trend‑following tool.
---
🔍 Key Features
1. Customizable EMA System (1–4 lines)
You can choose how many EMAs to display (1 to 4) and freely set the period for each EMA.
This allows you to adapt the indicator to any trading style—from scalping to swing trading.
2. Perfect Order Detection
The script identifies:
• Bullish Perfect Order (EMA1 > EMA2 > EMA3 > EMA4)
• Bearish Perfect Order (EMA1 < EMA2 < EMA3 < EMA4)
Signals are triggered only when the structure changes, ensuring clean and meaningful alerts.
3. Breakdown Alerts
The indicator detects when a previously established Perfect Order collapses:
• Bullish PO Breakdown
• Bearish PO Breakdown
These moments often signal trend exhaustion or the beginning of a reversal.
4. Multi‑Timeframe (MTF) EMA Confirmation
All EMAs are calculated on a higher timeframe of your choice.
This helps you align entries with the dominant trend and avoid counter‑trend traps.
5. Trend Strength Measurement
The indicator calculates the percentage distance between the fastest and slowest EMA.
Displayed directly on the chart:
• Current timeframe strength
• MTF strength
This gives you a quick visual gauge of trend momentum.
6. Clean Visual Signals
• Arrows for Perfect Order confirmation
• Circles for breakdown events
• Optional EMA visibility based on your selected count
Everything is designed for clarity and minimal chart clutter.
7. Full Alert Support
Alerts are available for:
• Bullish Perfect Order
• Bearish Perfect Order
• Bullish Breakdown
• Bearish Breakdown
Perfect for automated notifications or bot integration.
---
🎯 Ideal For
• Trend‑following traders
• EMA‑based systems
• Multi‑timeframe confluence strategies
• Reversal detection
• Scalping, day trading, swing trading
---
💡 Summary
This indicator combines flexibility, precision, and multi‑timeframe logic to help you identify strong trends, detect structural shifts, and stay aligned with market momentum.
Highly customizable and suitable for any market or timeframe.
RSI-SAR-Fibonacci StrategyIngresar en el Retroceso del 0.61 del Fibonacci, Tp 3 a 1 o RSI en 70 o 30 Salir.
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.
BB Re-entry HUD1) What this script does
This indicator is an BB Re-entry HUD
Core idea:
Price sweeps outside BB (often liquidity wick sweep)
Re-enters back inside BB within 1–2 bars
Multiple ELITE++ filters reduce fake signals
HUD scores follow-through strength (trend & momentum confirmation)
2) ELITE++ Re-entry Signal Logic
A BUY/SELL signal is triggered when:
One of the previous 1–2 bars moved outside BB (wick or close, selectable)
Current bar re-enters BB (optionally requires close inside)
Optional filters confirm signal quality:
Outside depth minimum (% of BB width)
Candle direction confirmation (Buy=green, Sell=red)
Re-entry close crosses previous candle 50%
Zone filter near BB edges
Touch filter: wick touches the band
Squeeze → Expand regime requirement
Cooldown to avoid rapid repeat signals
3) Trade Power HUD (0–5 Scoring)
After a signal, HUD evaluates either on the next bar (recommended) or the same bar.
Score components (1 point each):
Structure: short-term structure aligns with direction
Impulse Body: body > average body
Volume: volume > volume MA
BB Trend + Expand: price on trend side + BB width expanding
RSI + ATR: RSI threshold + ATR expanding
Interpretation:
4–5/5 = STRONG → Hold / Trail
2–3/5 = MID → Take partial / be cautious
0–1/5 = WEAK → Higher chance of fakeout
4) How to use (practical)
Enable BB plots and arrows
Wait for BUY/SELL signal
Check HUD score:
4–5: higher follow-through probability
2–3: quick TP / reduced size
0–1: skip or wait for better confirmation
Works well on 5m–15m (intraday) and 1H (smoother swings).
5) Notes
This is not a standalone holy grail—best used with support/resistance and market structure context.
Volatile news periods may produce multiple band breaks—use squeeze/cooldown filters accordingly.
The MF Rounded LevelsThis is a standalone utility indicator designed to draw a custom horizontal grid on your chart. It focuses on "Rounded Levels" (psychological price levels like 1900.00, 1905.00, etc.), which are often significant in trading assets like Gold (XAUUSD).
Here is a breakdown of how it works:
1. Dynamic Visible Range
Smart Drawing: Unlike standard grid tools that might draw lines everywhere, this script calculates the High and Low of the prices currently visible on your screen.
Efficiency: It only draws lines within that specific vertical range. If you scroll the chart, it recalculates and redraws the lines instantly.
2. Two-Tier Grid System
It distinguishes between two types of levels to help you visualize price structure better:
Primary Step: The base increment (default is 5.0). These are the standard grid lines.
Major Step: A larger increment (default is 15.0). These lines overlap with the primary ones but can be styled differently (e.g., thicker, darker, or solid) to mark more significant levels.
3. Customization & Styling
You have full control over the visuals via the settings menu:
Styles: Choose between Solid, Dotted, or Dashed lines.
Colors & Widths: Set different colors and line thicknesses for Primary vs. Major lines.
4. Auto-Hide Feature
Timeframe Filter: The script includes logic to automatically hide the grid if you switch to a timeframe higher than 4 Hours (H4). This prevents the chart from looking cluttered on Daily or Weekly views where 5-point increments would be too dense.
MINI Lead Osc v2_ CCI_ Impulse_ REG🔹 MINI Lead Osc v2 — Momentum, Impulse & Early Reversal Tool
MINI Lead Osc v2 is a leading momentum oscillator designed to detect early shifts in market strength, impulse exhaustion, and potential reversals before they become obvious on price.
This indicator is part of the ICT Suite ecosystem and is engineered to work in confluence with:
Regression SuperTrend (WAIT)
Liquidity Oscillator (Structure & Bias)
Used together, they form a complete top-down trading framework.
⚙️ Core Logic
MINI Lead Osc v2 blends multiple engines into a single clean signal:
• CCI + RSI slope momentum
• ATR volatility shift
• Pivot-based divergence detection
• Adaptive Sensitivity+ engine
• Regression channel (linreg + RMSE bands)
The output is a normalized lead line that reacts before classic lagging indicators.
🚀 What This Indicator Is Best For
✔ Early trend continuation signals
✔ Detecting impulse starts, weakness, and distribution
✔ Filtering noise during ranges
✔ Momentum confirmation for pullback entries
✔ Spotting divergence without repainting
This is not a standalone “buy/sell spam” indicator — it is a decision-quality tool.
🔁 How to Use (Recommended Setup)
For best results, use MINI Lead Osc v2 together with:
1️⃣ Regression SuperTrend (WAIT)
→ Defines dominant trend & market regime
→ Filters counter-trend signals
2️⃣ Liquidity Oscillator (Structure)
→ Confirms break → pullback → continuation logic
→ Adds HTF bias & session context
3️⃣ MINI Lead Osc v2 (this script)
→ Times entries
→ Detects early momentum shifts
→ Confirms impulse quality
📌 Trade only when all three align.
🧠 Important Notes
• Signals are non-repainting (bar-close confirmed)
• Designed for discretionary trading, not automation
• Works best on 5m – 15m – 1h timeframes
• Crypto, Futures, and FX friendly
⚠️ Disclaimer
This indicator is for educational and analytical purposes only.
It does not constitute financial advice.
Always manage risk and confirm with price action.
Triple Stochastic RSI [XYZ-Trades]Triple Stochastic RSI (original work from XYZ-Trades) with some minor additions to allow user to move table.
HMA SqueezeTo all kinds of squeeze/ release indicators, here is one more, arguably the simplest. Only three paramenters: (1) user inputs for three HMA timeframes, in this case 400, 450, 500. (2) number of crossovers. (3) range of bars in which the crossovers must occur.
Previous Highs and Lows (M, W, D) Displays previous Monthly, Weekly, and Daily key swing highs/lows with clean , timeframe-specific coloring. Essential structure reference for multi-timeframe traders!!
Your Monthly/Weekly/Daily structural backbone in one 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.
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)
Multi Cycles Predictive System ML - GBM IntegratedMulti-Cycle Predictive System: The Gradient Boosting Machine (GBM) Revolution
Introduction: The Death of Static Analysis
The financial markets are not static; they are a living, breathing, and chaotic system. Yet, for decades, traders have relied on static indicators—using the same RSI settings, the same MACD parameters, and the same Moving Averages regardless of whether the market is trending, chopping, or crashing.
The Multi-Cycle Predictive System (MCPS) represents a paradigm shift. It is not just an indicator; it is an Adaptive Machine Learning Engine running directly on your chart.
By integrating a fully functional Gradient Boosting Machine (GBM), this script does not guess—it learns. It monitors 13 distinct algorithmic models, calculates their real-time accuracy against future price action, and dynamically reallocates influence to the "winning" models using gradient descent.
This is Survival of the Fittest applied to technical analysis.
1. The Core Engine: Gradient Boosting & Adaptive Learning
At the heart of the MCPS is a custom-coded Gradient Boosting Machine. While most "ML" scripts on TradingView simply average a few indicators, this system replicates the architecture of advanced data science models.
How the GBM Works:
Ensemble Prediction: The system aggregates signals from 13 different mathematical models.
Residual Calculation: It compares the ensemble's previous predictions against the actual price movement (Price Return) to calculate the error (Residual).
Gradient Descent: It calculates the gradient of the loss function. We utilize a Huber Loss Gradient, which is robust against outliers (market spikes), ensuring the model doesn't overreact to volatility.
Weight Optimization: Using a configurable learning rate, the system updates the weights of each sub-algorithm. Models that predicted correctly gain weight; models that failed lose influence.
Softmax Normalization: Finally, weights are passed through a Softmax function (with Temperature control) to convert them into probabilities that sum to 1.0.
The "Winner-Takes-All" Philosophy
A common failure in ensemble systems is "Signal Dilution"—where good signals are drowned out by bad ones.
The MCPS solves this with Aggressive Weight Concentration:
Top 3 Logic: The script identifies the top 3 performing algorithms based on historical accuracy.
The 90% Rule: It forces the system to allocate up to 90% of the total decision weight to these top 3 performers.
Result: If Ehlers and Schaff are reading the market correctly, but MACD is failing, MACD is effectively silenced. The system listens only to the winners.
2. The 13 Algorithmic Pillars
The MCPS draws from a diverse library of Digital Signal Processing (DSP), Statistical, and Momentum algorithms. It does not rely on simple moving averages.
Ehlers Bandpass Filter: Isolates the dominant cycle in price data, removing trend and noise.
Zero-Lag EMA (ZLEMA): Reduces lag to near-zero to track momentum shifts instantly.
Coppock Curve: A classic long-term momentum indicator, modified here for adaptive responsiveness.
Detrended Price Oscillator (DPO): Eliminates the trend to identify short-term cycles.
Schaff Trend Cycle (STC): A double-smoothed stochastic of the MACD, excellent for identifying cycle turns.
Fisher Transform: Converts price into a Gaussian normal distribution to pinpoint turning points.
MESA Adaptive: Uses Maximum Entropy Spectral Analysis to detect the current dominant cycle period.
Goertzel Algorithm: A DSP technique used to identify the magnitude of specific frequency components in the price wave.
Hilbert Transform: Extracts the instantaneous amplitude and phase of the price action.
Autocorrelation: Measures the similarity between the price series and a lagged version of itself to detect periodicity.
Singular Spectrum Analysis (SSA): Decomposes the time series into trend, seasonal, and noise components (Simplified).
Wavelet Transform: Analyzes data at different scales (frequencies) simultaneously.
Empirical Mode Decomposition (EMD): Splits data into Intrinsic Mode Functions (IMFs) to isolate pure cycles.
3. The Dashboard: Total Transparency
Black-box algorithms are dangerous. You need to know why a signal is being generated. The MCPS features two detailed dashboards (tables) located at the bottom of your screen.
The Weight & Accuracy Table (Bottom Right)
This is your "Under the Hood" view. It displays:
Algorithm: The name of the model.
Accuracy: The rolling historical accuracy of that specific model over the lookback period (e.g., 58.2%).
Weight: The current influence that model has on the final signal. Watch this change in real-time. You will see the system "giving up" on bad models and "betting heavy" on good ones.
Prob/Sig: The raw probability and directional signal (Up/Down).
The GBM Stats Table (Bottom Left)
Tracks the health of the Machine Learning engine:
Iterations: How many learning cycles have occurred.
Entropy: A measure of market confusion. High entropy means weights are spread out (models disagree). Low entropy means the models are aligned.
Top 3 Weight: Shows how concentrated the decision power is. If this is >80%, the system is highly confident in specific models.
Confidence & Agreement: Statistical measures of the signal strength.
4. How to Trade with MCPS
This system outputs a single, composite Cycle Line (oscillating between -1 and 1) and a background Regime Color.
Strategy A: The Zero-Cross (Trend Reversal)
Bullish: When the Cycle Line crosses above 0. This indicates that the weighted average of the top-performing algorithms has shifted to a net-positive expectation.
Bearish: When the Cycle Line crosses below 0.
Strategy B: Probability Extremes (Mean Reversion)
Strong Buy: When the Cycle Line drops below -0.5 (Oversold) and turns up. This indicates a high-probability cycle bottom.
Strong Sell: When the Cycle Line rises above +0.5 (Overbought) and turns down.
Strategy C: Regime Filtering
The background color changes based on the aggregate consensus:
Green/Lime: Bullish Regime. Look primarily for Long entries. Ignore weak sell signals.
Red/Orange: Bearish Regime. Look primarily for Short entries.
Gray: Neutral/Choppy. Reduce position size or wait.
5. Configuration & GBM Settings
The script is highly customizable for advanced users who want to tune the Machine Learning hyperparameters.
Prediction Horizon: How many days into the future are we trying to predict? (Default: 3).
Accuracy Lookback: How far back does the model check to calculate "Accuracy"?
GBM Learning Rate: Controls how fast the model adapts.
High (0.2+): Adapts instantly to new market conditions but may be "jumpy."
Low (0.05): Very stable, long-term adaptation.
Temperature: Controls the "Softmax" function. Higher temperatures allow for softer, more distributed weights. Lower temperatures force a "Winner Takes All" outcome.
Max Top 3 Weight: The cap on how much power the top 3 models can hold (Default: 90%).
6. Technical Nuances (For the Geeks)
Huber Gradient: We use Huber loss rather than MSE (Mean Squared Error) for the gradient descent. This is crucial for financial time series because price spikes (outliers) can destroy the learning process of standard ML models. Huber loss transitions from quadratic to linear error, making the model robust.
Regularization: L2 Regularization is applied to prevent overfitting, ensuring the model doesn't just memorize past noise.
Memory Decay: The model has a "fading memory." Recent accuracy is weighted more heavily than accuracy from 200 bars ago, allowing the system to detect Regime Shifts (e.g., transitioning from a trending market to a ranging market).
Disclaimer:
This tool is a sophisticated analytical instrument, not a crystal ball. Machine Learning attempts to optimize probabilities based on historical patterns, but no algorithm can predict black swan events or fundamental news shocks. Always use proper risk management.
The "Warmup Period" is required. The script needs to process 50 bars of history before the GBM engine initializes and produces signals.
Author's Note:
I built the MCPS because I was tired of indicators that stopped working when the market "personality" changed. By integrating GBM, this script adapts to the market's personality in real-time. If the market is cycling, Ehlers and Goertzel take over. If the market is trending, Coppock and ZLEMA take the lead. You don't have to choose—the math chooses for you.
Please leave a boost and a comment if you find this helpful!
Volume Bubbles by EV Volume Bubbles visualizes high-activity candles using chart bubbles placed at an estimated intrabar origin point derived from lower timeframe data. When enabled, the script uses lower timeframe OHLC to approximate directional volume delta and selects an origin candle inside the parent bar using one of several methods. A relative-volume filter based on the parent bar can be used to reduce noise, and bubble size can be mapped to relative volume to highlight unusually active bars. If intrabar data is unavailable, the script can fall back to placing bubbles on the parent bar to keep behavior consistent. For best stability, the “Only confirmed bars” option is recommended.
MTF 4MA Direction Dashboard and TF AlignmentThe MTF 4MA Direction Dashboard is a multi-timeframe trend-alignment tool designed to answer one core trading question:
Are higher and lower timeframes pointing in the same direction — and how strong is that alignment?
Instead of relying on a single chart timeframe, this indicator evaluates directional consistency across five timeframes simultaneously using a fast 4-period moving average. The result is a weighted directional score, expressed as Bull/Bear percentages and summarized with a clear letter grade and interpretation.
This makes the indicator ideal as a trend filter, bias confirmation tool, or higher-timeframe context engine for discretionary and systematic traders alike.
How It Works
For each selected timeframe (default: 1H, 4H, 1D, 1W, 1M):
A 4-period moving average is calculated (user-selectable MA type).
The indicator determines direction by comparing the current MA value to the prior bar:
Rising MA → Bullish
Falling MA → Bearish
Each timeframe contributes to a weighted score, allowing higher timeframes to carry more influence if desired.
The combined result is converted into:
Bull %
Bear %
Letter Grade (A–F)
Plain-English interpretation
All results are displayed in a compact, customizable on-chart dashboard.
Dashboard Metrics Explained
Aligned TFs
Shows how many timeframes are bullish vs bearish.
Bull % / Bear %
Weighted directional confidence across all timeframes.
Grade (A–F)
A structured summary of alignment strength:
A → Strong bullish alignment
B → Constructive bullish bias
C → Transitional / mixed conditions
D → Weak structure
F → Bearish or poorly aligned
Grade Condition & Interpretation
Explicit thresholds and a clear contextual reading of current market structure.
How to Use This Indicator
This is not an entry signal by itself.
It is best used as a context and confirmation tool.
Common use cases include:
✅ Trend Filtering
Only take long trades when Bull % is elevated (e.g., Grade A or B).
✅ Multi-Timeframe Confirmation
Confirm that lower-timeframe setups agree with higher-timeframe structure.
✅ Bias Control
Reduce over-trading during mixed or transitional conditions (Grade C/D).
✅ Risk Management Context
Scale position size or aggressiveness based on alignment strength.
Ideal Trading Conditions
This indicator performs best in:
Trending or structurally developing markets
Swing trading and position trading
Higher-timeframe-aware intraday strategies
Markets where directional follow-through matters more than noise
During highly choppy or mean-reverting conditions, grades will naturally compress toward the middle — providing a visual cue to reduce directional exposure.
Customization & Controls
Select MA type (SMA, EMA, RMA, WMA)
Adjust timeframe importance via custom weights
Fully customizable table colors and position
Toggle dashboard visibility on/off
This flexibility allows the indicator to be adapted to different assets, trading styles, and risk preferences.
Final Notes
The MTF 4MA Direction Dashboard is designed to bring clarity to multi-timeframe analysis by transforming raw directional data into a structured, readable decision framework.
Use it to align trades with structure, avoid fighting dominant trends, and maintain consistency across timeframes.
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."*






















