[yorsh.trade] BJN iFVG Model v1.1Description:
The BJN iFVG Model is not just an indicator; it is a complete algorithmic trading framework designed to identify, qualify, and rank Inversion Fair Value Gap (iFVG) setups using PROPIETARY RULES developed by the author.
Unlike standard FVG indicators that simply highlight gaps on a chart, this script employs a complex Ranking Engine that scores every potential setup from C to A++. It automates the "mental checklist" professional traders use—analyzing Time (Macros), Market Structure (Sweeps), Correlation (SMT), and Higher Timeframe Delivery—to determine the probability of a trade setup.
🚀 Why This Indicator is Different
This script adds value by focusing on context and validity rather than just detection.
Algorithmic Ranking System: It doesn't just show you an entry; it grades it. A setup is awarded an "A+" or "A++" only if specific confluences align (e.g., HTF Delivery + Liquidity Sweep + SMT Divergence).
Structural Validation: It utilizes a proprietary logic involving "Invalidation Points" (IP) and "Floor/Ceiling" detection. An iFVG is only considered valid if the price structure supporting it remains intact.
Cross-Ticker SMT Engine: The script includes a built-in module to compare price action against a correlated asset (e.g., NQ vs. ES) to detect SMT Divergences at the exact moment of trade formation.
Integrated Position Sizer: It automatically calculates the invalidation level based on market structure (mitigation blocks) and projects the optimal Entry, Stop Loss, and Take Profit levels, including contract sizing based on your risk parameters.
🛠 Key Features & Modules
1. The Execution Engine (iFVG Logic)
The core of the strategy looks for Inversion FVGs (failed FVGs that price punches through).
Ghost Mode: The script monitors live candles. If price penetrates a specific % into an opposing FVG, it triggers a "Preview" state, allowing you to prepare before the candle closes.
Hazards & Mitigations: It scans the chart for "Hazard" FVGs (opposing arrays that might stop price) and "Mitigation" arrays (supporting structure) to determine a safe Stop Loss placement.
2. The Ranking System (Confluences)
Every setup produces a "Rank Tag" (e.g., A+ (del, sweep, smt)). The components are:
Delivery (D): Checks if the setup is reacting off a Higher Timeframe (HTF) PD Array (from the MTF Matrix).
Sweep (S): Checks if the leg creating the setup swept liquidity (Fractals or Session Highs/Lows).
SMT: Checks for divergence between the current asset and a comparison ticker (Default: ES/NQ pairing).
Macro: Checks if the setup is occurring within specific time-based Algo Macros.
3. Contextual Matrix (Dashboard)
A "Smart Table" is displayed on the chart, providing a real-time summary of:
Liquidity Pools: Nearest Buy-side and Sell-side liquidity based on 1H fractals and Daily Highs/Lows.
Active Status: Shows the current state of the market (Idle, Armed, Triggered, or Confirmed).
Macro Status: Highlights when a Macro time window is active.
4. MTF Delivery Engine
The script runs background simulations on higher timeframes (e.g., 1H, 4H) to find unmitigated FVGs. These are projected onto your lower timeframe chart to serve as "Delivery" targets or support.
⚙️ Usage Guide
Bias & Setup: The script automatically detects Long and Short scenarios.
The Trigger: When a candle closes, validating an iFVG, a setup box appears.
Green/Red Badge: Shows the Rank (e.g., A+).
Sizer Box: Shows the visual Stop Loss (Red), Entry (Edge), and Take Profit (Teal).
Info Label: Displays the risk in points and the calculated contract size.
Invalidation: If price hits the "IP" (Invalidation Point) or the "Floor/Ceiling" before the target, the setup is marked as INVALIDATED and removed to keep the chart clean.
🎨 Visuals & Customization
Alerts: Fully configurable alerts for "Triggered" (Live) and "Confirmed" (Close) states, filterable by Minimum Rank (e.g., only alert on 'A' setups or better).
Styling: Toggle individual modules (Killzones, SMT lines, MTF Plotter) on/off to suit your visual preference.
Sessions: Customizable Killzones (Asia, London, NY AM/PM) with optional high/low projections.
⚠️ Disclaimer & Risk Warning
Not Financial Advice: This indicator is a technical analysis tool designed to assist in identifying market structure and potential areas of interest. It does not guarantee profits.
The methodology implemented in this script is inspired by and derived from widely available trading concepts, including principles commonly associated with Inner Circle Trader (ICT)–style market structure, liquidity, and inefficiency theory.
These concepts are publicly available for free across multiple educational sources and are not proprietary to this script.
The BJN iFVG Model represents the author’s independent interpretation, rule-set, automation logic, and execution framework built on top of those general ideas.
Repainting Note: The "Ghost Mode" (Preview) functionality evaluates live price action. A "Triggered" status on a live candle may disappear if the candle closes without confirming the inversion. Always wait for candle closes for confirmed signals.
Risk Management: The built-in position sizer is a calculation aid only. Always verify contract sizes and risk against your broker's requirements before executing trades.
Risk & Platform Disclaimer
This script is provided for educational and analytical purposes only and does not constitute financial advice.
All signals, trade examples, position sizing, and performance metrics are hypothetical and for demonstration purposes only. Past or simulated performance does not guarantee future results.
Trading financial instruments involves substantial risk and may not be suitable for all traders. You are solely responsible for your trading decisions and risk management.
TradingView bears no responsibility for any losses, damages, or outcomes resulting from the use of this script.
Pine Script v6 | Powered by
Pine Script® Indikator






















