OPEN-SOURCE SCRIPT
Updated VWAP + 4 EMAs + FVG + Auto Fib

This is a multi-feature overlay indicator designed specifically for MNQ / NQ trading. It combines several popular tools into one clean script.
1. VWAP (Volume Weighted Average Price)
Plots the standard session VWAP.
Has its own color and transparency control.
Very useful as a dynamic support/resistance level during the trading day.
2. 4 Customizable EMAs with Multi-Timeframe (MTF) Ability
This is the most powerful part you requested:
EMA 1 (default 9) → Blue
EMA 2 (default 21) → Orange
EMA 3 (default 50) → Green
EMA 4 (default 200) → Red
Key Features for EMAs:
Each EMA has independent settings:
Length
Timeframe (this is the "lock to timeframe" feature)
Color
Transparency (opacity)
Show/Hide
You can lock any EMA to a higher timeframe. Examples:
Set EMA 4 to D (Daily) → shows Daily 200 EMA on your 3-minute chart.
Set EMA 2 to 15 → shows 15-minute EMA while on a 5-minute chart.
Leave blank ("") to use the current chart timeframe.
3. Fair Value Gaps (FVG)
Detects 3-candle imbalances (standard ICT/SMC Fair Value Gap).
Bullish FVG (green box) — when price gaps up aggressively.
Bearish FVG (red box) — when price gaps down aggressively.
Boxes automatically extend to the right.
Cleans up old boxes to avoid clutter.
Has minimum gap size filter and extension length controls.
4. Auto Fibonacci Retracement
Automatically draws Fibonacci retracement levels from the most recent significant swing high to swing low.
Uses pivot highs/lows with a configurable lookback period.
Draws common levels (0.236, 0.382, 0.5, 0.618, 0.786, 1.0).
Updates dynamically when new swings form.
Customizable color and transparency.
5. Background Coloring
Green background when EMA 1 > EMA 4 (bullish trend bias).
Red background when EMA 1 < EMA 4 (bearish trend bias).
6. Alerts
Triggers an alert whenever a new Bullish FVG or Bearish FVG is detected.
Summary – What This Indicator Helps You Do
This is a complete ICT / Price Action / Trend dashboard for MNQ:
Quickly see higher-timeframe structure using MTF EMAs.
Identify fair value gaps for potential fill or continuation trades.
Have dynamic Fibonacci levels without manually drawing them.
Use VWAP as intraday anchor.
Visually judge trend strength with the background color.
1. VWAP (Volume Weighted Average Price)
Plots the standard session VWAP.
Has its own color and transparency control.
Very useful as a dynamic support/resistance level during the trading day.
2. 4 Customizable EMAs with Multi-Timeframe (MTF) Ability
This is the most powerful part you requested:
EMA 1 (default 9) → Blue
EMA 2 (default 21) → Orange
EMA 3 (default 50) → Green
EMA 4 (default 200) → Red
Key Features for EMAs:
Each EMA has independent settings:
Length
Timeframe (this is the "lock to timeframe" feature)
Color
Transparency (opacity)
Show/Hide
You can lock any EMA to a higher timeframe. Examples:
Set EMA 4 to D (Daily) → shows Daily 200 EMA on your 3-minute chart.
Set EMA 2 to 15 → shows 15-minute EMA while on a 5-minute chart.
Leave blank ("") to use the current chart timeframe.
3. Fair Value Gaps (FVG)
Detects 3-candle imbalances (standard ICT/SMC Fair Value Gap).
Bullish FVG (green box) — when price gaps up aggressively.
Bearish FVG (red box) — when price gaps down aggressively.
Boxes automatically extend to the right.
Cleans up old boxes to avoid clutter.
Has minimum gap size filter and extension length controls.
4. Auto Fibonacci Retracement
Automatically draws Fibonacci retracement levels from the most recent significant swing high to swing low.
Uses pivot highs/lows with a configurable lookback period.
Draws common levels (0.236, 0.382, 0.5, 0.618, 0.786, 1.0).
Updates dynamically when new swings form.
Customizable color and transparency.
5. Background Coloring
Green background when EMA 1 > EMA 4 (bullish trend bias).
Red background when EMA 1 < EMA 4 (bearish trend bias).
6. Alerts
Triggers an alert whenever a new Bullish FVG or Bearish FVG is detected.
Summary – What This Indicator Helps You Do
This is a complete ICT / Price Action / Trend dashboard for MNQ:
Quickly see higher-timeframe structure using MTF EMAs.
Identify fair value gaps for potential fill or continuation trades.
Have dynamic Fibonacci levels without manually drawing them.
Use VWAP as intraday anchor.
Visually judge trend strength with the background color.
Release Notes
Dual VWAP SystemAdded RTH VWAP (Regular Trading Hours - resets at 9:30 AM ET)
Added Extended Hours VWAP (full session, including pre/post market)
Both have independent Show/Hide, Color, and Transparency controls
FVG Enhancements
Added "Remove FVG when Filled" toggle (default ON)
Added separate Bullish FVG Transparency and Bearish FVG Transparency controls
Improved the removal logic to be more stable
Removed the background green/red trend coloring
Release Notes
FVG error updatedOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.