OPEN-SOURCE SCRIPT
已更新 Intraweek Highs & Lows

🔎 Track and analyze intraweek price extremes with full flexibility.
The indicator detects weekly highs or lows for any selected weekday and monitors when other days break those levels.
⚙️ Inputs
The indicator detects weekly highs or lows for any selected weekday and monitors when other days break those levels.
⚙️ Inputs
- Select day
Pick which weekday’s extreme you want to monitor. - Find Low/High
Select whether you want to track Lows or Highs. - Use candle Wick/Body
Choose if extremes are calculated by full wick or candle body. - Cutoff date
Toggle the date-based filter and choose the starting date for event display.
發行說明
This indicator identifies the highs and lows of a user-selected weekday within each week, then tracks the first subsequent day on which that level is broken. Results are presented via optional price labels and a comprehensive summary table displaying the percentage distribution of first hits by weekday.
Ideal for analyzing intraweek price behavior, weekday strength/weakness patterns, and key level follow-through studies.
Inputs
- Select day — Weekday whose high and/or low will be monitored
- Use candle Wick/Body — Determines whether extremes are based on wicks or candle bodies
- High Options → Show high on table — Include high-break statistics in the summary table
- High Options → Show high labels — Plot labels at the selected weekday’s weekly high
- Low Options → Show low on table — Include low-break statistics in the summary table
- Low Options → Show low labels — Plot labels at the selected weekday’s weekly low
- Cutoff — Enable and set a start date to filter displayed events and statistics
發行說明
Fixed- Weekly stats are now accurate on intraday charts: hits occurring late on the day before the selected day were previously counted as "None".
- Symbols that do not trade the day before the selected day (for example stocks with Monday selected) now record "None" weeks correctly. Previously these weeks were silently dropped, inflating every other day's percentage.
- The current unfinished week is no longer prematurely counted as "None". It is now only counted once resolved, so live stats match a fresh reload.
Changed
- A week now ends at the start of the next selected day, or after 7 calendar days when that day does not trade (holiday weeks).
- High/low labels are replaced by plot markers with unlimited history: no more 500 label cap. Markers draw as the extreme forms, so intraday charts show each improvement of the day's high/low, ending at the final one. Color and shape are now editable in the Style tab.
Under the hood
- Rewritten in modern Pine Script v6: enums, user-defined types and methods, table drawn once instead of every bar, unused internal data removed. About 30% smaller.
發行說明
Changed- Stats are now always calculated from daily data, regardless of the chart timeframe. Results are consistent on any timeframe, and "Body" now always means the daily candle's body. Note: intraday charts only cover the history they load, so the daily chart remains the best place to read the table.
- High/low marks now display on the daily timeframe only, where each mark sits exactly on the day's extreme. On intraday charts the marks produced a misleading trail, so they are hidden there.
New
- On weekly and higher timeframes the indicator now shows a small notice instead of stats, since day-of-week statistics need daily or lower bars.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。