OPEN-SOURCE SCRIPT
Aggiornato

HTF Candle Terminal

3 419
Title: HTF Candle Terminal: Advanced Institutional Volume & Range Engine
Description:
Welcome to the HTF Candle Terminal – a complete, institutional-grade toolkit designed to bridge the gap between Higher Timeframe (HTF) market structure and Lower Timeframe (LTF) execution.

This indicator acts as a real-time trading terminal directly on your chart, projecting higher timeframe data, volume clusters, volatility bands, and dynamic price zones so you never lose track of the macro trend while executing on the micro level.

What does it do?
Instead of switching back and forth between timeframes, the HTF Candle Terminal anchors itself to a Higher Timeframe of your choice (e.g., 4-Hour, Daily). Once a new HTF session begins, the terminal starts mapping the battlefield in real-time, calculating institutional volume, statistically probable ranges, and liquidity sweeps.

🔥 Core Features (A to Z)
1. Live HTF Candle Projection
To the right of the current price action, the indicator draws a live, constantly updating "Macro Candle." This gives you an instant visual representation of what the higher timeframe candle looks like (Open, High, Low, Close) without ever leaving your current chart. Accompanying the candle is a real-time trend status (e.g., "Very Strong Bullish" or "Bearish") based on how price is behaving relative to the HTF Open and Volume Nodes.

2. Dynamic Volume Profiling & POC (Point of Control)
The terminal tracks every drop of volume from the moment the HTF candle opens.

Bull/Bear Zones: It creates distinct bullish (above open) and bearish (below open) volume zones.
Split POC: It isolates the highest volume node for buyers (Short Line) and sellers (Long Line).
Zone Breakouts: If price decisively breaks and closes through a POC line from the opposite side, it invalidates that volume node, dynamically clearing the map to signal a strong directional shift.
Auto Row Size: The script includes an intelligent algorithm that automatically calculates the perfect row/tick size for the volume profile based on the volatility of the previous HTF candle.
3. Statistical Range Projections (Excursions)
How far did the last HTF candle travel from its open? The terminal mathematically measures the percentage expansion of the previous HTF candle and projects those exact percentages (e.g., +1.25%, -0.80%) onto the current candle's open. This gives you highly accurate, historically-backed target zones for the current session.

4. HTF ATR & ADR Projections (Volatility Boundaries)
Knowing where price should stop is just as important as knowing where it is going.

ATR (Average True Range): Projects the HTF's current True Range (+/- 0.5 ATR by default) from the open price, giving you realistic daily/session volatility boundaries.
ADR (Average Daily Range): Projects the chart's average daily movement anchored to the HTF open. When price hits these outer bands, it signals mathematical exhaustion—perfect for take-profit targeting or mean-reversion setups.
5. Liquidity Sweep Detection (PH & PL)
The script draws dashed lines representing the Previous HTF High (PH) and Previous HTF Low (PL). If the current price action pokes through these levels but fails to hold, the terminal instantly marks the chart with a precise "✖" label, alerting you to a potential liquidity sweep/hunt.

6. HTF Anchored VWAP
An optional (toggleable) Volume Weighted Average Price anchored precisely to the start of the HTF candle. This acts as the ultimate institutional "fair value" baseline. If price is above the VWAP, momentum is confirmed bullish; if below, bearish.

💡 How to Use the Terminal in Your Trading
Trade the Open: The most critical level is the dashed HTF Open line. Treat it as the equator. Longs above, shorts below.
Target the Extremes: Use the Excursion lines, ATR, and ADR bands as your primary Take-Profit (TP) zones. When price reaches these levels, the market is mathematically overextended.
Watch the POCs: The Bull and Bear POC lines act as heavy magnets. If price is returning to the open, watch for bounces off the POC. If a POC is broken, ride the momentum in the direction of the break.
Trade the Sweeps: Look for an "✖" marker at the PH or PL lines. A sweep combined with a rejection back into the HTF Open zone is one of the highest probability reversal setups available.
⚙️ Full Customization
Every element is built to be customized. Change the colors of the HTF candle, adjust global label sizes, toggle VWAP/ATR/ADR on or off, and tweak the transparency of historical boxes to keep your chart perfectly clean.

Developed with precision for structural and quantitative traders.
© erdensedat
Note di rilascio
In this update, we have significantly refined the visual precision and target mapping of the HTF Candle Terminal to provide a cleaner, more institutional look.

What's New in this Update:

Precision ATR Target Boxes: We have upgraded the ATR volatility projections. Instead of basic lines, the script now renders sleek, dynamically calculated Target Boxes at the +/- 0.5 ATR levels. These boxes represent highly precise, statistical target zones (colored in a distinct #5272be blue) that act as premium take-profit or exhaustion areas.
Improved Label Positioning: To keep the chart clean and prevent overlapping, the labels for the new ATR Target Boxes have been repositioned. They now sit perfectly aligned to the right side of the target boxes, maintaining a centered and horizontal profile.
Global Label Sizing: Added a new "Global Label Size" option in the Style settings. You can now universally scale all chart labels (Tiny, Small, Normal, Large) to match your screen resolution and charting preferences.
ADR Label Alignment: Average Daily Range (ADR) labels have also been re-aligned to display cleanly on the right side of their respective projection lines.
Custom HTF Candle Colors: You can now fully customize the colors of the live HTF macro-candle and its status text, giving you complete thematic control over your terminal.
These updates ensure that your chart remains uncluttered while delivering pinpoint accuracy for your daily target levels. Enjoy the enhanced terminal!

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.