Htf Crt Navigator
- インディケータ
- バージョン: 1.0
- アクティベーション: 5
An advanced analysis tool that reads Candle Range Theory (CRT) and expansion on higher-timeframe (HTF) candles. It classifies every HTF candle one by one and keeps the results in a single, compact panel next to your lower-timeframe chart. This tool is developed specifically for XAUUSD on M1 and M5 charts to streamline multi-timeframe market structure mapping.
The indicator is a read-only analysis tool and does not open, modify, or close trades.
MAIN FEATURES
- Builds custom HTF candles that MetaTrader does not offer natively (such as 210 minutes and 7 hours) directly from M5 data, drawing them as candle groups at the right edge of the chart. A third group displays the broker daily (D1) candles.
- Labels each HTF candle dynamically based on its structural state: Range, CRT down, CRT up, Exp down, Exp up, or combined CRT and Exp.
- Analyzes the current state of the HTF structure to define the overall market bias. It tracks pending CRT, CRT with expansion, expansion alone, or no structure.
- Draws all relevant structural levels on the chart: expansion Low and High, the 35 to 45 percent zone, the ideal pullback line (40%), the soft-invalidation line (58%), and the CRT extreme. For pending CRTs, it plots the invalidation, target, and entry zones.
- Identifies lower-timeframe triggers in the direction of the bias, such as a return to the Dynamic Swing VWAP with rejection, a confirmed V-Shape iFVG signal, or an optional CISD 2 structure signal. A clear visual message appears when a trigger is active.
- Hides objects that go against the current bias (such as counter-bias CISD arrows and V-Shape objects) to keep your chart clean and focused only on trades that align with the higher-timeframe direction.
- Features a bilingual user interface (English and Spanish) with a convenient one-click button on the panel.
CORE DETECTION LOGIC
- HTF Candle Construction: In Rolling mode, it groups the last N M5 bars backward from the current bar. In Anchored mode, it groups M5 bars by clock from 00:00 server time plus your custom anchor, restarting every day. The D1 group utilizes the broker native daily bars.
- CRT Classification: A CRT down is detected when the high is greater than the previous high and the close is lower than the previous high. A CRT up is detected when the low is lower than the previous low and the close is higher than the previous low.
- Expansion Detection: A candle is flagged as expansion when the body is at least 50% of the total range and the body size is at least 1.15x the average body of the previous three candles.
- Pending CRT Levels: The sweep extreme acts as the invalidation level, the opposite extreme of the previous candle acts as the target, and the entry zone is calculated between 35% and 45% of the CRT candle range measured from the swept extreme.
- Pullback Measurements: Measured either on the expansion candle or on the full move from the CRT extreme depending on your inputs. Pullback states use fixed bands: less than 32% is very healthy, 32% to 48% is ideal, 48% to 58% indicates danger, 58% to 68% is soft invalidation, and above 68% is considered hard invalidation.
KEY PARAMETERS
- InpMinTF1 (Default: 420): Higher Timeframe 1 in minutes (e.g., 240 for H4, 420 for 7H).
- InpMinTF2 (Default: 210): Higher Timeframe 2 in minutes (e.g., 60 for H1, 210 for 3.5H).
- InpCantTF1 (Default: 3): Number of previous HTF 1 candles to display.
- InpCantTF2 (Default: 3): Number of previous HTF 2 candles to display.
- InpModoHTF (Default: Rolling): Mode to build HTF candles (Rolling or Anchored).
- InpAnclaMin (Default: 0): Minutes from 00:00 server time for Anchored mode.
- InpMostrarD1 (Default: true): Enable or disable the D1 candle group for the current symbol.
- InpEtiquetasVelas (Default: true): Show per-candle labels on the chart (Range, CRT, Exp).
- InpHuecasTF1 (Default: true): Render HTF 1 candles as hollow to easily tell them apart.
- InpMostrarNiveles (Default: true): Draw structural expansion levels on the chart.
- InpPctIdeal (Default: 40.0): Ideal pullback percentage level.
- InpPctInval (Default: 58.0): Soft invalidation percentage level.
- InpRangoRetro (Default: Expansion only): Range used to measure pullbacks and levels.
- InpTrigVWAP (Default: true): Enable trigger for price returning to the VWAP anchored at the CRT sweep.
- InpTrigVShape (Default: true): Enable trigger for confirmed V-Shape iFVG signals by reading chart objects.
- InpOcultarVShapeContra (Default: true): Hide V-Shape chart objects that go against the active HTF bias.
- InpVwapExtNombre (Default: empty): Optional file name or path of your Dynamic Swing VWAP under MQL5 Indicators.
- InpVwapExtBuffer (Default: 0): Data buffer index for the main VWAP line.
- InpVwapExtColor (Default: 1): Trend color buffer index (0 for bullish, 1 for bearish).
- InpVwapExtAlinear (Default: true): Require the external VWAP trend color to match the CRT bias.
- InpVentanaLTF (Default: 12): Number of recent lower-timeframe bars to check for valid triggers.
- InpMinConfirm (Default: 1): Minimum number of enabled confirmations required to validate an entry signal.
- InpMostrarCISD (Default: true): Enable or disable the Change In State of Delivery (CISD) tracking.
- InpFiltroSesgo (Default: true): Hide CISD arrow objects that are counter to the HTF bias.
- InpAlertas (Default: true): Enable terminal alerts when a CISD 2 structure is confirmed.
- InpIdioma (Default: Auto): Set the initial panel language (can also be changed via the UI button).
- InpShiftPct (Default: 45): Chart right margin percentage (range 10 to 50).
- InpRefrescoMs (Default: 1000): Refresh interval for the on-chart dashboard panel in milliseconds.
ALERTS AND COMPATIBILITY
- The indicator features a standard terminal alert when a CISD 2 structure is confirmed on the last closed bar. It does not include push or email notifications in version 1.00.
- Fully compatible with MetaTrader 5 on Windows and macOS terminals. Designed and optimized for M1 and M5 charts, especially on XAUUSD.
- No external DLLs or files are required. Panel preferences are saved automatically using global terminal variables.
- Integrations with external indicators are completely optional. The tool operates perfectly as a standalone structure scanner if the name fields are left empty.
COMPANION INDICATORS BY THE SAME AUTHOR
- Dynamic Swing VWAP: Adaptive Volume-Weighted Average Price anchored at confirmed swing pivots with automated ATR bands, previous segment tracking, and real-time dashboard notifications. HTF CRT Navigator can directly read its data buffers to identify sophisticated mean-reversion entries.
- V-Shape iFVG: Advanced institutional structure indicator that detects liquidity sweeps, fair value gaps in the sweep candles, and aggressive V-shaped recoveries. Features a multi-symbol scanner panel. HTF CRT Navigator integrates with this tool to filter out lower-timeframe noise against the higher-timeframe trend.
RISK DISCLAIMER
Trading leveraged products carries a high level of risk. This indicator is exclusively an analytical chart tool and does not guarantee specific financial results or profits.
