OPEN-SOURCE SCRIPT
Session Range Boxes(MTF)

📦 Indicator Name
Session Range Boxes (MTF)
Multi-Timeframe Directional Session Range Visualization
📘 Description
Session Range Boxes (MTF) is a multi-timeframe market structure tool that visually highlights price range behavior across different time sessions using clean, directional range boxes.
Each box represents the High–Low range of a completed or live session, automatically colored based on directional bias:
🟢 Bullish → Session Close > Session Open
🔴 Bearish → Session Close < Session Open
⚪ Neutral → Session Close = Session Open
This allows traders to instantly identify trend strength, balance zones, volatility expansion, and key support/resistance areas across multiple timeframes — all on a single chart.
🔍 What This Indicator Shows
For every enabled timeframe, the indicator:
Draws a range box from session open to session close
Continuously updates live session High & Low
Locks the final color once the session completes
Keeps historical boxes for structure and context
Supported timeframes:
Quarterly
Half-Yearly
Yearly
Monthly
Weekly
Daily
Hourly
30-Minute
15-Minute
5-Minute
⚙️ Default Behavior
By default, the indicator enables:
Weekly
Daily
Hourly
This default setup is intentionally chosen to suit most traders and provides:
Higher-timeframe structure (Weekly)
Swing context (Daily)
Intraday execution levels (Hourly)
🧠 How to Use It Effectively
📈 Higher-Timeframe Analysis (Swing / Positional Trading)
Recommended combinations:
Weekly + Daily
Monthly + Weekly
Use cases:
Identify dominant market bias
Spot compression vs expansion
Define higher-timeframe support & resistance zones
⚡ Intraday Trading (Day Trading)
Recommended combinations:
Daily + Hourly
Hourly + 30-Minute
Use cases:
Track intraday range development
Identify directional day types
Trade breakouts, rejections, or mean-reversion within session ranges
🚀 Scalping & Precision Entries
Recommended combinations:
Hourly + 15-Minute
30-Minute + 5-Minute
Use cases:
Fine-tune entries within larger session ranges
Align lower-timeframe trades with higher-timeframe bias
Spot micro range expansion and contraction
🎨 Customization Options
Bullish / Bearish / Neutral colors
Box fill transparency
Border transparency & color
Maximum historical boxes per timeframe
This allows you to keep charts clean, lightweight, and performance-friendly.
💡 Best Practices
Avoid enabling too many timeframes at once — clarity beats clutter
Use higher-timeframe boxes for bias, lower-timeframe boxes for entries
Combine with:
Market structure
Volume
VWAP
Liquidity concepts
Price action confirmation
Session Range Boxes (MTF) is a clean, powerful visual tool designed to help traders:
Understand session-based price behavior
Align trades across timeframes
Improve structure awareness without clutter
Whether you are a scalper, day trader, or swing trader, this indicator adapts seamlessly to your workflow.
Session Range Boxes (MTF)
Multi-Timeframe Directional Session Range Visualization
📘 Description
Session Range Boxes (MTF) is a multi-timeframe market structure tool that visually highlights price range behavior across different time sessions using clean, directional range boxes.
Each box represents the High–Low range of a completed or live session, automatically colored based on directional bias:
🟢 Bullish → Session Close > Session Open
🔴 Bearish → Session Close < Session Open
⚪ Neutral → Session Close = Session Open
This allows traders to instantly identify trend strength, balance zones, volatility expansion, and key support/resistance areas across multiple timeframes — all on a single chart.
🔍 What This Indicator Shows
For every enabled timeframe, the indicator:
Draws a range box from session open to session close
Continuously updates live session High & Low
Locks the final color once the session completes
Keeps historical boxes for structure and context
Supported timeframes:
Quarterly
Half-Yearly
Yearly
Monthly
Weekly
Daily
Hourly
30-Minute
15-Minute
5-Minute
⚙️ Default Behavior
By default, the indicator enables:
Weekly
Daily
Hourly
This default setup is intentionally chosen to suit most traders and provides:
Higher-timeframe structure (Weekly)
Swing context (Daily)
Intraday execution levels (Hourly)
🧠 How to Use It Effectively
📈 Higher-Timeframe Analysis (Swing / Positional Trading)
Recommended combinations:
Weekly + Daily
Monthly + Weekly
Use cases:
Identify dominant market bias
Spot compression vs expansion
Define higher-timeframe support & resistance zones
⚡ Intraday Trading (Day Trading)
Recommended combinations:
Daily + Hourly
Hourly + 30-Minute
Use cases:
Track intraday range development
Identify directional day types
Trade breakouts, rejections, or mean-reversion within session ranges
🚀 Scalping & Precision Entries
Recommended combinations:
Hourly + 15-Minute
30-Minute + 5-Minute
Use cases:
Fine-tune entries within larger session ranges
Align lower-timeframe trades with higher-timeframe bias
Spot micro range expansion and contraction
🎨 Customization Options
Bullish / Bearish / Neutral colors
Box fill transparency
Border transparency & color
Maximum historical boxes per timeframe
This allows you to keep charts clean, lightweight, and performance-friendly.
💡 Best Practices
Avoid enabling too many timeframes at once — clarity beats clutter
Use higher-timeframe boxes for bias, lower-timeframe boxes for entries
Combine with:
Market structure
Volume
VWAP
Liquidity concepts
Price action confirmation
Session Range Boxes (MTF) is a clean, powerful visual tool designed to help traders:
Understand session-based price behavior
Align trades across timeframes
Improve structure awareness without clutter
Whether you are a scalper, day trader, or swing trader, this indicator adapts seamlessly to your workflow.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。