OPEN-SOURCE SCRIPT
Daily & Weekly Highs/Lows

**Daily & Weekly Highs/Lows — Liquidity Levels**
This indicator automatically displays the highs and lows of Daily and Weekly candles as horizontal dotted lines directly on your chart.
**Key features:**
- Plots liquidity levels (highs/lows) of the last N Daily and Weekly candles, configurable in the settings
- Levels **automatically disappear** once swept by price — only intact levels remain visible
- **Green** for highs, **red** for lows, consistent across Daily and Weekly for a clean chart
- When a Daily and Weekly level coincide, the label displays **"W D"** to highlight the confluence — a stronger liquidity signal
**Settings:**
- Number of Daily levels to display (1 to 10)
- Number of Weekly levels to display (1 to 8)
- High and low colors
- Line width for Daily and Weekly
- Label text color (black or white depending on your theme)
- Proximity tolerance for D/W confluence detection
**Recommended use:**
Perfect for traders using an SMC/ICT approach or simply looking to track key liquidity levels on higher timeframes. Works on all instruments and all chart timeframes.
---
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。