OPEN-SOURCE SCRIPT

MT High/Low Boxes

150
"Box out the High/Low at User-Defined Time Frame"

This feature allows users to set a custom time frame via an input panel, following TradingView's time frame conventions (e.g., "60," "240," "D," etc.).

The script dynamically captures timestamps for each custom interval to detect the start of new segments.

The box width is calculated based on the number of bars within the custom time frame, ensuring accurate coverage of the corresponding time range.

A central dashed line (yellow dotted) reflects the real-time midpoint between the high and low of the interval.

The background color adjusts based on bullish/bearish bias, comparing the opening price to the current closing price.

Simply select your desired time frame in the indicator settings—flexible and compatible with multiple time frames, including non-minute/hour units (e.g., daily, weekly).

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.