OPEN-SOURCE SCRIPT
Cycles

Cycle Days — Weekdays & Month Dates
A visual cycle-analysis tool for TradingView. It highlights the days you care about so weekly and monthly patterns are easy to see on any timeframe.
Use it to mark Mondays, Fridays, the 15th, month-end, or any mix of those dates. Background tint, vertical lines, and labels are optional.
What it does
The indicator colors every bar that matches your rules:
> selected weekdays (Mon–Sun)
> selected calendar dates of the month (for example 15 or 1,15,31)
> optionally the last calendar day of each month
On lower timeframes the whole day is shaded. The vertical line and label appear only on the first bar of that day so the chart stays readable.
Features
> Three modes: Weekdays, Month dates, or Both
> Separate on/off switch and color for each weekday
> Month dates entered as a comma-separated list (15, 1,15,31)
> Optional last-day-of-month highlight
> Optional shift: if the chosen date falls on a weekend, mark the nearest weekday instead (useful for stocks and futures)
> Timezone: Exchange, UTC, Moscow, Kyiv, London, New York, Shanghai
> Display toggles: background fill, dotted vertical line, label
> Labels show MON / 15 / 31 (month end)
How to use:
Notes
Disclaimer
For educational and charting use. Not financial advice. Always verify the script on your instrument and timeframe before relying on it.
A visual cycle-analysis tool for TradingView. It highlights the days you care about so weekly and monthly patterns are easy to see on any timeframe.
Use it to mark Mondays, Fridays, the 15th, month-end, or any mix of those dates. Background tint, vertical lines, and labels are optional.
What it does
The indicator colors every bar that matches your rules:
> selected weekdays (Mon–Sun)
> selected calendar dates of the month (for example 15 or 1,15,31)
> optionally the last calendar day of each month
On lower timeframes the whole day is shaded. The vertical line and label appear only on the first bar of that day so the chart stays readable.
Features
> Three modes: Weekdays, Month dates, or Both
> Separate on/off switch and color for each weekday
> Month dates entered as a comma-separated list (15, 1,15,31)
> Optional last-day-of-month highlight
> Optional shift: if the chosen date falls on a weekend, mark the nearest weekday instead (useful for stocks and futures)
> Timezone: Exchange, UTC, Moscow, Kyiv, London, New York, Shanghai
> Display toggles: background fill, dotted vertical line, label
> Labels show MON / 15 / 31 (month end)
How to use:
- Add the script to the chart from Pine Editor → Add to chart.
- Open indicator settings.
- Pick a mode.
- Enable the weekdays you want, or type month dates in the input field.
- Adjust colors and display options.
Notes
- Time is taken from the bar open in the selected timezone. Overnight sessions can sit on the previous calendar day.
- Weekend shift is meant for markets that are closed Sat–Sun. Leave it off for 24/7 crypto.
- This is a visual aid only. It does not generate buy/sell signals.
Disclaimer
For educational and charting use. Not financial advice. Always verify the script on your instrument and timeframe before relying on it.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.