High Timeframe Structure Lens
- Indicatori
-
Shipra Gupta
Sono Shipra Gupta, trader e sviluppatrice di strategie quantitative con una solida formazione in matematica, economia e sistemi di trading algoritmico. Nel corso degli anni ho lavorato ampiamente nei mercati forex, oro, indici, materie prime e criptovalute, concentrandomi sulla costruzione di - Versione: 1.0
High-Timeframe Structure Lens (HTF Structure Lens)
HTF Structure Lens is an essential multi-timeframe analysis tool designed to plot higher-timeframe (HTF) candlestick panels directly onto your execution chart. By offsetting higher-timeframe candles into the right margin of your screen, it eliminates the need to switch between timeframes, allowing traders to evaluate higher-timeframe market structure, order flow, liquidity levels, and imbalances alongside real-time price action.
Key Features
1. Multi-Timeframe Side-by-Side Panel
- 6 Custom HTF Slots: Configure up to six different timeframes (e.g., M15, H1, H4, D1, W1) simultaneously.
- Offset Right-Margin Placement: Renders HTF candles in the future space to the right of your execution chart, keeping your active price action clean and uncluttered.
- Customizable Candle Displays: Define the exact number of past candles to render for each higher timeframe.
2. Built-in Smart Money Concepts (SMC) & Structural Tools
- Fair Value Gaps (FVG): Automatically detects and highlights 3-candle imbalance zones directly on the HTF candles.
- Swing Highs & Lows: Tracks swing pivots with clear visual cues:
- Solid Lines: Confirmed swing levels.
- Dashed Lines: Potential/unconfirmed swing levels.
- Equilibrium (EQ) Levels: Displays midpoint ($50\%$) equilibrium lines across HTF candle ranges to evaluate discount and premium pricing.
3. Real-Time Candle Metrics & Timers
- Live Bar Timers: Displays real-time countdown timers showing the exact remaining time until the active HTF candle closes.
- Swing Direction Indicators: Adds visual directional markers ($\bigtriangleup$ / $\bigtriangledown$) to timeframe labels to quickly signal higher-timeframe structural shifts.
- Candle Time Tags: Optional timestamps under individual HTF candles for exact temporal reference.
4. Fully Customizable Visuals & Performance Optimized
- Atomic Rendering: Clears and rebuilds objects efficiently on every tick, ensuring zero chart flicker or lingering stale objects.
- Custom Color Palette: Full control over bullish/bearish candle bodies, borders, wicks, FVG fills, labels, and equilibrium lines.
- Flexible Spacing: Adjust chart offset distance, candle spacing width, and gap sizes between timeframe groups.
How It Works
- Higher-Timeframe Data Query: The indicator fetches price rates (Open, High, Low, Close) from user-selected higher timeframes relative to the execution chart's current asset.
- Horizontal Bar Mapping: It converts bar time intervals into horizontal offset values to render synthetic HTF candlestick panels past the current live candle.
- Structure Computation: On each update, the algorithm calculates multi-bar swing points, range midpoints (50% EQ), and 3-candle Fair Value Gaps across the selected higher-timeframe sets.
Input Settings Guide
HTF Slots
| Parameter | Default | Description |
| InpH1_On ... InpH6_On | H1-H3 True | Toggle individual higher-timeframe slots on or off. |
| InpH1_TF ... InpH6_TF | M15 , H1 , H4 , etc. | Select the timeframe assigned to each slot. |
| InpH1_N ... InpH6_N | 4 | Number of candles to display for each timeframe slot. |
Layout & Spacing
| Parameter | Default | Description |
| InpOffset | 30 | Distance (in bars) from the current live candle to the first panel. |
| InpBuffer | 1 | Space (in bars) between individual HTF candles within a group. |
| InpHTFBuffer | 10 | Space (in bars) separating different HTF groups. |
| InpWidthIn | 1 | Candle width scale factor. |
Labels & Timers
| Parameter | Default | Description |
| InpLabelShow | true | Show or hide higher-timeframe name labels. |
| InpLabelPos | "Top" | Placement position for labels ( Top , Bottom , or Both ). |
| InpTimerShow | true | Display remaining candle close countdown timers. |
| InpCandleTime | false | Display small time tags under individual HTF candles. |
SMC & Imbalance
| Parameter | Default | Description |
| InpFVGShow | true | Highlight Fair Value Gaps (FVGs) within HTF candle sets. |
| InpSwingShow | true | Render swing high and swing low structure lines. |
| InpEQShow | true | Display 50% equilibrium midpoint lines on HTF ranges. |
| InpEQPrevOnly | true | Restrict equilibrium lines strictly to previous candle ranges. |
