OPEN-SOURCE SCRIPT
Session Candle Levels & Alerts - Weekly Swing

The swing companion to the intraday version: draws the weekly reference
levels swing traders track and alerts on volume-confirmed breaks.
How it works:
- Monday/Wednesday high-low, previous week and previous month high-low,
weekly and monthly opens — each with a configurable lookback of how many
past occurrences stay on the chart.
- Thu-Fri-Mon pattern: when Friday's high stays below Thursday's high, the
setup arms and targets Friday's low the following week (alerted).
- Breaks can require volume above a configurable multiple of average volume
before they count ("volume-confirmed").
- Optional COT panel (CFTC Commitment of Traders via TradingView's COT
library): managed-money and retail net positioning with weekly change,
auto-mapped from the chart symbol.
What makes it original: the COT layer goes beyond plotting net positions — it
percentile-ranks managed money against ~2 years of history and flips it
contrarian at extremes (crowded trades), and it maps DAX/FTSE to EUR/GBP COT
data with an inverted score, since there is no direct COT series for those
indices.
How to use it: on a daily or 4h chart, watch how price behaves at the
Monday/Wednesday and previous week/month extremes — a volume-confirmed close
beyond a level signals continuation, a rejection signals range rotation. The
Thu-Fri-Mon pattern arms automatically at the Monday open and alerts when
Friday's low is hit. Use the COT background/table as a weekly positioning
filter for swing direction, not as an entry trigger.
levels swing traders track and alerts on volume-confirmed breaks.
How it works:
- Monday/Wednesday high-low, previous week and previous month high-low,
weekly and monthly opens — each with a configurable lookback of how many
past occurrences stay on the chart.
- Thu-Fri-Mon pattern: when Friday's high stays below Thursday's high, the
setup arms and targets Friday's low the following week (alerted).
- Breaks can require volume above a configurable multiple of average volume
before they count ("volume-confirmed").
- Optional COT panel (CFTC Commitment of Traders via TradingView's COT
library): managed-money and retail net positioning with weekly change,
auto-mapped from the chart symbol.
What makes it original: the COT layer goes beyond plotting net positions — it
percentile-ranks managed money against ~2 years of history and flips it
contrarian at extremes (crowded trades), and it maps DAX/FTSE to EUR/GBP COT
data with an inverted score, since there is no direct COT series for those
indices.
How to use it: on a daily or 4h chart, watch how price behaves at the
Monday/Wednesday and previous week/month extremes — a volume-confirmed close
beyond a level signals continuation, a rejection signals range rotation. The
Thu-Fri-Mon pattern arms automatically at the Monday open and alerts when
Friday's low is hit. Use the COT background/table as a weekly positioning
filter for swing direction, not as an entry trigger.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。