OPEN-SOURCE SCRIPT
已更新 CUSTOM PRO RANGE V2.0 with Alerts

Core Functions
Tracks High/Low Ranges
Daily (DR) or Initial (IDR) ranges within custom time windows (e.g., 9:30 AM–4:00 PM).
Optional extended hours (e.g., overnight).
Visual Tools
Draws boxes/lines for range boundaries, midpoints, and opening prices.
Custom colors/styles for clarity.
Smart Alerts
Notifies when price breaks high/low/mid of the range.
Avoids spam with once-per-bar alerts.
Flexible Timeframes
Works for intraday, daily, or even quarterly ranges with minor tweaks.
🎯 Who It Helps
Day Traders: Spot breakouts/reversals.
Swing Traders: Identify key support/resistance.
Analysts: Study price behavior in specific sessions.
Tracks High/Low Ranges
Daily (DR) or Initial (IDR) ranges within custom time windows (e.g., 9:30 AM–4:00 PM).
Optional extended hours (e.g., overnight).
Visual Tools
Draws boxes/lines for range boundaries, midpoints, and opening prices.
Custom colors/styles for clarity.
Smart Alerts
Notifies when price breaks high/low/mid of the range.
Avoids spam with once-per-bar alerts.
Flexible Timeframes
Works for intraday, daily, or even quarterly ranges with minor tweaks.
🎯 Who It Helps
Day Traders: Spot breakouts/reversals.
Swing Traders: Identify key support/resistance.
Analysts: Study price behavior in specific sessions.
版本注释
CUSTOM PRO RANGE V2.0 – Precision Range Tracking for Professional TradersA highly configurable range indicator designed for traders who hunt key levels with surgical precision.
Key Features:
✔ Dynamic Range Detection – Tracks DR & IDR levels in real-time
✔ Multi-Session Flexibility – Isolate and analyze any market phase
✔ Clean, Customizable Display – Adjust line styles, colors, and transparency for optimal clarity
✔ Institutional-Grade Reference Points – Opening price, mid-range, and extremes for order flow alignment
Why Pros Use It:
Pinpoint high-probability reversals & breakouts using objectively defined ranges
Eliminate guesswork with automatically updating key levels
Custom-tailored visuals to match your trading style without chart clutter
Trade with precision. Trade like a professional.
版本注释
CUSTOM PRO LEVEL RANGE — Previous Week (Mon 00:00 → Fri 23:00)”What it tracks
It takes the entire previous week’s range (from Monday 00:00 → Friday 23:00, New York time).
It records:
DR (Daily Range) → High & Low of the week.
IDR (Body Range) → extremes of candle bodies (open/close) of the week.
The opening price of Monday 00:00.
What it draws
A box showing either the DR or IDR range (your choice).
Horizontal lines for:
DR High & Low.
IDR High & Low.
IDR Midpoint.
Opening price.
Quartiles (from DR extremes): 25%, 50% (mid), and 75% levels.
Labels with the exact price at the right edge (toggleable).
How it extends
When a new week starts, the previous week’s levels extend into the current week (bar by bar, following price action).
At the end of the current week (Friday 23:00), that week becomes the new “previous week,” and its box/lines extend into the next week, and so on.
Customization
Toggle on/off: DR, IDR, IDR mid, open line, quartiles, box, labels.
Independent colors, widths, and line styles (solid/dashed/dotted) for each type of line.
Background shading for the box.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。