PROTECTED SOURCE SCRIPT
NY AM Inversion IFVG and past Levels

This indicator is a comprehensive toolkit designed specifically for trading the New York Morning Session (Indices/Futures). It combines Smart Money Concepts (SMC) with Volume Spread Analysis (VSA) to identify high-probability reversal setups, traps, and key liquidity levels.
The script operates strictly on Chicago Time (UTC-6/UTC-5) to ensure perfect alignment with the US Market Open (08:30 CT), regardless of your local timezone.
核心 Features
1. Inversion Fair Value Gaps (IFVG) The script identifies specific "Inversion" setups where a Fair Value Gap is respected and then aggressively broken, signaling a shift in market sentiment.
Time Window: Scans for setups strictly between 08:45 and 09:30 (Chicago Time).
Validation: An IFVG is only valid if the inversion happens within 5 bars of the gap creation (customizable), ensuring we only catch immediate reactions.
Dynamic Coloring:
Green Box: A Bearish FVG broken to the upside (Becomes Support).
Red Box: A Bullish FVG broken to the downside (Becomes Resistance).
2. Opening Range (OR) & Traps
Blue Box (08:30 - 08:59): automatically highlights the range of the first 30 minutes of the RTH session.
Extended Lines: The High and Low of the OR are projected forward until 15:00.
"Trap" Detection (Failed Auctions): The script highlights candles in RED if they attempt to break the OR but fail.
Condition: Wick breaks the High/Low, but Body closes inside the range + Volume is 2x the average.
3. Key Liquidity Levels (Dynamic Lines) Plots essential levels for liquidity targets or reversal points:
OV H / OV L: Overnight Session Highs & Lows (17:00 prev day - 08:29 current day).
PD H / PD L: Previous Day RTH Highs & Lows (08:30 - 15:59 prev day).
Interactive Style: Lines start as dashed. Once price touches/breaks them, they turn solid and stop extending, giving you a visual confirmation that the level has been tested.
4. Performance Optimization
Garbage Collection: To keep your chart clean and fast, the script automatically deletes drawing objects older than 10 sessions (customizable).
Timeframe: Optimized for the 1-minute timeframe.
How to use
IFVG: Look for the colored boxes between 8:45 and 9:30 as entry zones for a reversal trade.
Traps: If you see a Red Candle piercing the Blue Opening Range lines, it indicates a "Failed Auction" and a potential reversal back into the range.
Levels: Use the Dashed Black Lines (OV/PD) as your Take Profit targets.
Settings
Show IFVG: Toggle the gap boxes.
Max Bars: Maximum candles allowed for an IFVG inversion to be valid (Default: 5).
Volume Multiplier: Sensitivity for the "Trap" candle volume spike (Default: 2.0x).
History: Number of past days to keep on the chart.
The script operates strictly on Chicago Time (UTC-6/UTC-5) to ensure perfect alignment with the US Market Open (08:30 CT), regardless of your local timezone.
核心 Features
1. Inversion Fair Value Gaps (IFVG) The script identifies specific "Inversion" setups where a Fair Value Gap is respected and then aggressively broken, signaling a shift in market sentiment.
Time Window: Scans for setups strictly between 08:45 and 09:30 (Chicago Time).
Validation: An IFVG is only valid if the inversion happens within 5 bars of the gap creation (customizable), ensuring we only catch immediate reactions.
Dynamic Coloring:
Green Box: A Bearish FVG broken to the upside (Becomes Support).
Red Box: A Bullish FVG broken to the downside (Becomes Resistance).
2. Opening Range (OR) & Traps
Blue Box (08:30 - 08:59): automatically highlights the range of the first 30 minutes of the RTH session.
Extended Lines: The High and Low of the OR are projected forward until 15:00.
"Trap" Detection (Failed Auctions): The script highlights candles in RED if they attempt to break the OR but fail.
Condition: Wick breaks the High/Low, but Body closes inside the range + Volume is 2x the average.
3. Key Liquidity Levels (Dynamic Lines) Plots essential levels for liquidity targets or reversal points:
OV H / OV L: Overnight Session Highs & Lows (17:00 prev day - 08:29 current day).
PD H / PD L: Previous Day RTH Highs & Lows (08:30 - 15:59 prev day).
Interactive Style: Lines start as dashed. Once price touches/breaks them, they turn solid and stop extending, giving you a visual confirmation that the level has been tested.
4. Performance Optimization
Garbage Collection: To keep your chart clean and fast, the script automatically deletes drawing objects older than 10 sessions (customizable).
Timeframe: Optimized for the 1-minute timeframe.
How to use
IFVG: Look for the colored boxes between 8:45 and 9:30 as entry zones for a reversal trade.
Traps: If you see a Red Candle piercing the Blue Opening Range lines, it indicates a "Failed Auction" and a potential reversal back into the range.
Levels: Use the Dashed Black Lines (OV/PD) as your Take Profit targets.
Settings
Show IFVG: Toggle the gap boxes.
Max Bars: Maximum candles allowed for an IFVG inversion to be valid (Default: 5).
Volume Multiplier: Sensitivity for the "Trap" candle volume spike (Default: 2.0x).
History: Number of past days to keep on the chart.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.