PROTECTED SOURCE SCRIPT
Telah dikemas kini ICT Finatic: Session Ranges & Macro Alerts (Cristian)

This indicator is designed to assist ICT traders by automating the visualization of key session ranges and time-based macro events. It focuses on the Asia and London sessions and provides timely alerts for specific macro times.
Features:
Dynamic Session Ranges (Asia & London):
Instead of simple High/Low of the session, this script identifies Swing Highs and Swing Lows based on a 3-candle fractal pattern (High/Low of the central candle is higher/lower than its neighbors).
It calculates these swings using 15-minute timeframe data (via request.security), ensuring stability regardless of the chart timeframe used.
The lines extend dynamically and update only when a new, more significant swing is formed during the session.
Macro Time Vertical Lines:
The script monitors specific NY-time macros (09:45, 10:15, 10:45, 11:15, 11:45, 12:15).
Pre-warning System: 5 minutes before a macro time occurs (e.g., at 09:40 for the 09:45 macro), a temporary vertical line appears on the future time slot.
Auto-Cleanup: Once the macro time is reached, the vertical line is automatically removed to keep the chart clean. This feature is active on timeframes lower than 1 hour.
Bias Table:
Includes a customizable dashboard to manually input and visualize your directional bias for multiple timeframes (Daily to 5m).
How to use:
Add the indicator to your chart (works best on M1 or M5 timeframes).
Adjust the session times in the settings if needed (Default is NY time).
Use the dashboard to track your daily bias.
Watch for the orange vertical lines appearing 5 minutes before macro events to prepare for potential volatility.
Features:
Dynamic Session Ranges (Asia & London):
Instead of simple High/Low of the session, this script identifies Swing Highs and Swing Lows based on a 3-candle fractal pattern (High/Low of the central candle is higher/lower than its neighbors).
It calculates these swings using 15-minute timeframe data (via request.security), ensuring stability regardless of the chart timeframe used.
The lines extend dynamically and update only when a new, more significant swing is formed during the session.
Macro Time Vertical Lines:
The script monitors specific NY-time macros (09:45, 10:15, 10:45, 11:15, 11:45, 12:15).
Pre-warning System: 5 minutes before a macro time occurs (e.g., at 09:40 for the 09:45 macro), a temporary vertical line appears on the future time slot.
Auto-Cleanup: Once the macro time is reached, the vertical line is automatically removed to keep the chart clean. This feature is active on timeframes lower than 1 hour.
Bias Table:
Includes a customizable dashboard to manually input and visualize your directional bias for multiple timeframes (Daily to 5m).
How to use:
Add the indicator to your chart (works best on M1 or M5 timeframes).
Adjust the session times in the settings if needed (Default is NY time).
Use the dashboard to track your daily bias.
Watch for the orange vertical lines appearing 5 minutes before macro events to prepare for potential volatility.
Nota Keluaran
transition to version 6 pine scriptNota Keluaran
Release Notes (New Features & Fixes):Full FVG Suite (Fair Value Gaps):
Added automatic detection for Bullish and Bearish FVGs.
Advanced Mitigation Logic: Introduced 3 user-selectable modes for FVG invalidation: Wick Touch (immediate), Wick Break (overlap), and Close Body.
Smart Multi-Timeframe Filter: Added HTF Overlay (5m, 15m, 1H, 4H). The script now logically hides lower-timeframe FVGs when viewing higher-timeframe charts to prevent clutter and overlapping boxes.
Customizable styling for auto-extension and midline (50%).
Session Logic Fix:
Fixed a bug in the Asia and London session range plotting. The Swing High/Low lines are now drawn with precise timing, starting exactly from the candle generating the fractal pattern, ensuring accurate liquidity level visualization.
Nota Keluaran
This update brings a crucial ICT concept to the suite and refines the alert system for better usability.1. New Feature: Inversion Fair Value Gaps (IFVG) We have introduced the logic for Inversion FVGs. According to ICT concepts, when a Fair Value Gap is invalidated (broken) by price, it often flips its role (e.g., a broken Support FVG becomes Resistance).
Automatic Detection: When an FVG is broken, it doesn't just disappear; it now transforms into an IFVG with a distinct color.
Multi-Timeframe Support: You can now see HTF Inversion Gaps (e.g., 1H or 4H IFVG) directly on your lower timeframe chart.
Smart Visibility: The script automatically hides IFVGs of the current timeframe if they overlap with the chart timeframe to prevent duplicates.
Customization: You can toggle IFVGs on/off individually for each timeframe and customize their colors separately from standard FVGs.
2. Fixed & Enhanced Macro Alerts The alert system for NY Macro times has been completely rewritten for reliability.
Per-Macro Precision: Alerts now trigger specifically for every single Macro in the list (not just a generic session start).
Dual Alert Options:
Start Alert: Triggers 5 minutes before the Macro begins (when the warning line appears).
Target Alert: Triggers exactly at the Macro target time.
Bug Fix: Resolved an issue where alerts were not firing consistently or were duplicating.
3. Menu Cleanup Removed redundant "Trading Session" alert groups to streamline the settings menu.
Nota Keluaran
This update addresses two specific behaviors to ensure the script acts exactly as a trader expects during live trading.1. Real-Time "Close (Body)" Logic Fixed Previously, when using the "Close (Body)" invalidation mode, an FVG might have been invalidated immediately if the price dipped below the level while the candle was still open.
FIX: The script now strictly waits for the confirmed bar close. Even if price trades through the FVG during the candle's life, the FVG will remain valid until the candle actually closes beyond the limit. No more premature invalidations.
2. Independent Inversion Visibility We resolved an issue where Inversion FVGs (IFVGs) would not appear if the Standard FVGs for that timeframe were disabled.
FIX: You can now hide Standard FVGs (to keep charts clean) but keep "Show IFVG" enabled. The script will track the hidden gaps in the background and only display them once they invert (flip from support to resistance or vice versa).
Nota Keluaran
Full English Localization Based on community feedback, the entire indicator interface—including menus, settings, tooltips, and labels—has been translated into English. This makes the tool easier to use for everyone.Nota Keluaran
bug fixNota Keluaran
bug fix (no london level)Nota Keluaran
Added levels:- Previous week's maximum and minimum
- Previous day's maximum and minimum
All customizable
Nota Keluaran
Bug fix, added chart creation based on the reference ticker instead of the current chart. This allows you to view one chart and trade on another, for example, trade on MNQ and view NQ.Nota Keluaran
bugfixSkrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had – ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had – ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.