OPEN-SOURCE SCRIPT

Candle body break - Pure Box

336
Short Description
Visually charts the exact highs and lows of the three most recent confirmed higher-timeframe (HTF) candles as pure, independent boxes without any repainting.

Detailed Description
Overview
This indicator dynamically calculates and tracks three distinct levels of higher timeframes (HTFs) relative to your current chart interval. It visualizes the precise historical boundary (High to Low) and duration (Open time to Close time) of the most recently closed HTF candles as clean, separate boxes.

Key Features

Zero Repainting: Built strictly with lookahead=barmerge.lookahead_off and referencing confirmed data ([1]). The boxes never shift, calculation is locked upon session close, ensuring historical accuracy.

Dynamic Timeframe Selection: Automatically scales the three higher timeframes based on whether you are viewing intraday, daily, or weekly charts.

Independent Visual Isolation: Each timeframe maintains its own dedicated memory pool (array) and visual layer, keeping the historical market structure unpolluted.

How to Use
Use these pure structural boxes to identify major macro support/resistance zones, evaluate candle body gaps, and monitor multi-timeframe structural breaks right from your current lower-timeframe execution chart.

日本語表記(国内・個人用説明文)
概要
現在のチャート足(下位足)に応じて動的に判定された「3つの上位足」の、直近で完全に確定したローソク足(1本前)の高値・安値・期間を、リペイントを一切排除した純粋なボックスとして独立描写するマルチタイムフレーム(MTF)インジケーターです。

主な特徴と設計規律
完全ノンリペイント(確定値の厳守):
lookahead=barmerge.lookahead_off を採用し、すでに市場の合意が得られた確定足([1])のデータのみを抽出しています。リアルタイム形成中の上位足のブレに惑わされることはありません。

動的な時間軸自動切り替え:
分足、日足、週足など、表示している現在のタイムフレームに合わせて、最適な上位足3階層を内部ロジックで自動選択します。

独立したデータ構造:
それぞれの時間軸ごとに独立したボックス配列(Pool)を生成し、表示本数を制御しているため、過去の重要なマクロ構造の壁を曇りなく正確に視覚化します。

トレードへの活用
下位足でのエントリー執行中に、マクロ(大局)の物理的なレジスタンス・サポートラインや、ローソク足の実体・ヒゲによるブレイクアウトの事実を、同一チャート上で一目で把握するために最適化されています。

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.