OPEN-SOURCE SCRIPT
NFIFTY4 IOF Quick Entry

IOF Quick Entry — v2.0
Institutional Order Flow Zone Scanner with Trade Lifecycle Tracking
What it does
IOF Quick Entry automatically detects Institutional Order Flow zones across up to 3 timeframes simultaneously and tracks every trade from entry to close — no manual zone drawing, no repainting, no guesswork.
The system is built on the IBI (Impulse → Base → Impulse) pattern. When institutions place large limit orders, they leave consolidation clusters between two strong impulse candles. These clusters become high-probability zones where unfilled institutional orders are still sitting. When price returns, those orders get filled — and that reaction is your trade.
Zone Detection
Detects demand and supply zones on confirmed, closed bars only — zones never form on a live candle
Supports LTF, ITF, and HTF simultaneously (default 5m / 15m / 60m, fully configurable)
Body-close invalidation — wicks never kill a zone, only a full body close through the far extreme does
Zones auto-extend right until invalidated
Entry Plan
Entry at OF 0% — the body/wick junction, the purest institutional entry point
Stop loss placed at the far wick extreme plus a configurable tick buffer
TP1, TP2, TP3 at 1×, 2×, 3× zone height beyond entry
Contract count auto-calculated from your dollar risk input using the formula: floor(
RISK ÷ (SL ticks × tick value) ) — works on MNQ, MES, MGC, ES, NQ, GC and any other futures instrument automatically
Trade Lifecycle (Phase 3)
Every zone arms automatically when price enters proximity
Fills when price wicks through the entry level
Closes as WIN, LOSS, or BE based on which levels are hit on confirmed bars
Trail-compiled R — win R is the average of all TPs hit, not just the last one
Block re-arm after loss option — zone won't fire again after producing a loss
Arm cooldown between successive trades on the same zone
Performance Dashboard
Shows last 20 trades with: side (L/S), timeframe, entry price, stop price, contracts, dollar risk, SL ticks, and result
Live status row showing currently ARMED and ACTIVE trades
Totals footer: Wins / Losses / BE / Win Rate % / Total R / Net $
Win rate calculated as W ÷ (W+L) — breakevens excluded from denominator
Instruments
Designed for futures. Tested on MNQ, MES, MGC, ES, NQ, GC. Contract sizing auto-adapts to any instrument via syminfo — no manual configuration needed.
No repainting
All zone detection and trade lifecycle processing runs exclusively on barstate.isconfirmed. Zones are stamped with historical bar timestamps. What you see on the chart is exactly what would have appeared in real time.
This indicator does not provide financial advice. Past performance of detected zones does not guarantee future results. Always manage risk and validate setups independently before trading.
Institutional Order Flow Zone Scanner with Trade Lifecycle Tracking
What it does
IOF Quick Entry automatically detects Institutional Order Flow zones across up to 3 timeframes simultaneously and tracks every trade from entry to close — no manual zone drawing, no repainting, no guesswork.
The system is built on the IBI (Impulse → Base → Impulse) pattern. When institutions place large limit orders, they leave consolidation clusters between two strong impulse candles. These clusters become high-probability zones where unfilled institutional orders are still sitting. When price returns, those orders get filled — and that reaction is your trade.
Zone Detection
Detects demand and supply zones on confirmed, closed bars only — zones never form on a live candle
Supports LTF, ITF, and HTF simultaneously (default 5m / 15m / 60m, fully configurable)
Body-close invalidation — wicks never kill a zone, only a full body close through the far extreme does
Zones auto-extend right until invalidated
Entry Plan
Entry at OF 0% — the body/wick junction, the purest institutional entry point
Stop loss placed at the far wick extreme plus a configurable tick buffer
TP1, TP2, TP3 at 1×, 2×, 3× zone height beyond entry
Contract count auto-calculated from your dollar risk input using the formula: floor(
Trade Lifecycle (Phase 3)
Every zone arms automatically when price enters proximity
Fills when price wicks through the entry level
Closes as WIN, LOSS, or BE based on which levels are hit on confirmed bars
Trail-compiled R — win R is the average of all TPs hit, not just the last one
Block re-arm after loss option — zone won't fire again after producing a loss
Arm cooldown between successive trades on the same zone
Performance Dashboard
Shows last 20 trades with: side (L/S), timeframe, entry price, stop price, contracts, dollar risk, SL ticks, and result
Live status row showing currently ARMED and ACTIVE trades
Totals footer: Wins / Losses / BE / Win Rate % / Total R / Net $
Win rate calculated as W ÷ (W+L) — breakevens excluded from denominator
Instruments
Designed for futures. Tested on MNQ, MES, MGC, ES, NQ, GC. Contract sizing auto-adapts to any instrument via syminfo — no manual configuration needed.
No repainting
All zone detection and trade lifecycle processing runs exclusively on barstate.isconfirmed. Zones are stamped with historical bar timestamps. What you see on the chart is exactly what would have appeared in real time.
This indicator does not provide financial advice. Past performance of detected zones does not guarantee future results. Always manage risk and validate setups independently before trading.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.