OPEN-SOURCE SCRIPT
Cập nhật Previous Day Week Month Quarter High Low

HTF Key Levels [D/W/M/Q]
📌 Overview
A clean, lightweight indicator that automatically plots key support and resistance levels from higher timeframes. These levels represent previous period highs and lows - areas where institutional traders and smart money often place orders.
📊 Levels Displayed
🎯 Why These Levels Matter
Higher timeframe highs and lows act as significant support and resistance zones. Price often reacts at these levels because:
🔔 Built-in Alerts
Get notified instantly when price touches any level. Alert messages include:
Example alert: "🔔 XAUUSD touched PDH (Previous Day High) at 2650.50 | Price: 2650.75"
⚙️ Settings
[u]Levels[/u]
[u]Alerts[/u]
[u]Style[/u]
📈 Best Used On
💡 How To Use
1. Add the indicator to your chart
2. Enable the timeframes you want to see
3. Customize colors to your preference
4. Set up an alert for "Any HTF Level Touch"
5. Watch for price reactions at these key levels
🔧 Technical Notes
📝 Changelog
If you find this indicator useful, please give it a like! 👍
📌 Overview
A clean, lightweight indicator that automatically plots key support and resistance levels from higher timeframes. These levels represent previous period highs and lows - areas where institutional traders and smart money often place orders.
📊 Levels Displayed
- PDH / PDL - Previous Day High & Low
- D2H / D2L - 2 Days Ago High & Low
- PWH / PWL - Previous Week High & Low
- PMH / PML - Previous Month High & Low
- PQH / PQL - Previous Quarter High & Low
🎯 Why These Levels Matter
Higher timeframe highs and lows act as significant support and resistance zones. Price often reacts at these levels because:
- Institutional orders cluster around these areas
- They represent clear market structure points
- Many traders watch and trade these levels
- They serve as natural profit targets and stop loss areas
🔔 Built-in Alerts
Get notified instantly when price touches any level. Alert messages include:
- Symbol name
- Which level was touched (e.g., PDH, PWL)
- The level price
- Current price
Example alert: "🔔 XAUUSD touched PDH (Previous Day High) at 2650.50 | Price: 2650.75"
⚙️ Settings
[u]Levels[/u]
- Toggle each timeframe individually (Day, 2-Day, Week, Month, Quarter)
- Customize color for each level
[u]Alerts[/u]
- Master enable/disable for all alerts
- Choose to alert on Highs only, Lows only, or both
[u]Style[/u]
- Line width (1-4)
- Line style (Solid, Dashed, Dotted)
- Extend right - how many bars lines extend into the future
📈 Best Used On
- Intraday charts (1m, 5m, 15m, 1H, 4H) - See daily and weekly levels
- Daily chart - See weekly, monthly, and quarterly levels
💡 How To Use
1. Add the indicator to your chart
2. Enable the timeframes you want to see
3. Customize colors to your preference
4. Set up an alert for "Any HTF Level Touch"
5. Watch for price reactions at these key levels
🔧 Technical Notes
- Daily levels only appear on intraday charts
- Weekly levels appear on intraday and daily charts
- Monthly and quarterly levels appear on all timeframes except monthly
- Lines are automatically redrawn at the start of each new period
- Labels stay at the end of lines for easy identification
📝 Changelog
- v1.0 - Initial release
If you find this indicator useful, please give it a like! 👍
Phát hành các Ghi chú
Just updating the chartMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.