Killzones SMT + IFVG detector

Summary
This strategy implements a specific intraday workflow inspired by ICT-style concepts.
It combines:
- Killzone session levels (recording untouched highs/lows)
- SMT divergence between NQ and ES (exclusive sweep logic)
- IFVG confirmation (3-bar imbalance + width filter + inversion guard)
- and an optional smart exit engine
The components are not simply mashed together: they interact in sequence.
A setup only confirms if all conditions line up (time window → untouched level sweep → divergence → valid IFVG → confirmation candle → risk filter).
Workflow
- Killzones & session levels
Tracks highs/lows inside default killzones (19:00–23:00, 01:00–04:00, 08:30–10:00, 11:00–12:00, 12:30–15:00, chart timezone).
Stores untouched levels forward; sweeps trigger candidate signals. - SMT divergence (exclusive sweep)Bullish SMT: one index sweeps its low while the other remains above its session low.
Bearish SMT: one index sweeps its high while the other remains below its session high.
Detection supports “Sweep (Cross)” or “Exact Tick.”
Session IDs are tracked so once a side has fired, later re-touches can’t re-trigger. - IFVG confirmation
Locks the first valid 3-bar IFVG after SMT.
Confirmation requires a candle close beyond the IFVG boundary in the direction of the close.
IFVGs must meet a minimum width filter (default 1.0 point).
Inversion guard: ignores IFVGs already inverted before SMT.
Optional “re-lock” keeps tracking the latest IFVG until confirmation/expiry. - Smart exit engineInitial stop from opposite wick (+ buffer).
Fixed TP (default 40 points).
Dynamic stop escalation at progress thresholds (BE → 50% → 80% of target). - Safety gates
Weekend lockout (Fri 16:40 → Sun 18:00).
Same-bar sweep of high & low cancels setups.
Max initial stop filter skips oversized setups.
Optional cooldown bars.
Alerts
- SMT Bullish/Bearish: divergence detected this bar.
- Confirm Long/Short: IFVG confirmation triggered.
Default Strategy Properties (used in screenshots/backtests)
- Initial capital: $25,000
- Order size: 1 contract
- Commission: $1.25 per contract per side
- Slippage: 2 ticks
- Backtest window: Jun 16, 2025 – Sep 14, 2025
These settings are intentionally conservative. If you change them, your results will differ.
How to use
- Apply on an NQ or ES futures chart (1–5 min).
- Choose your killzones and detection mode.
- Select confirmation symbol (NQ, ES, or “Sweeper”).
- Enable/disable IFVG re-lock.
- Review signals and use alerts for automation if desired.
Limitations
- Strict filters reduce trade count; extend backtest window for more samples.
- Works best on NQ/ES; not validated elsewhere.
- Past performance is not indicative of future results.
- This is an educational tool; not financial advice.
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả đồng ý mới có thể truy cập tập lệnh này. Bạn cần yêu cầu và xin phép sử dụng tập lệnh này. Quyền truy cập thường được cấp sau khi thanh toán. Để biết thêm chi tiết, hãy làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với eliran5060.
TradingView KHÔNG khuyến khích trả tiền hoặc sử dụng tập lệnh trừ khi bạn hoàn toàn tin tưởng tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm thấy các giải pháp thay thế miễn phí, mã nguồn mở trong mục tập lệnh cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Feel free to contact me via: eliran5060@gmail.com
Thông báo miễn trừ trách nhiệm
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả đồng ý mới có thể truy cập tập lệnh này. Bạn cần yêu cầu và xin phép sử dụng tập lệnh này. Quyền truy cập thường được cấp sau khi thanh toán. Để biết thêm chi tiết, hãy làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với eliran5060.
TradingView KHÔNG khuyến khích trả tiền hoặc sử dụng tập lệnh trừ khi bạn hoàn toàn tin tưởng tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm thấy các giải pháp thay thế miễn phí, mã nguồn mở trong mục tập lệnh cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Feel free to contact me via: eliran5060@gmail.com