OPEN-SOURCE SCRIPT

Candles by Day, Time, Month + Stats

25
This Pine Script allows you to filter and display candles based on:

๐Ÿ“… Specific days of the week

๐Ÿ•’ Custom intraday time ranges (e.g., 9:15 to 10:30)

๐Ÿ“† Selected months

๐Ÿ“Š Shows stats for each filtered block:

๐Ÿ”ผ Range (High โ€“ Low)

๐Ÿ“ Average candle body size

โš™๏ธ Key Features:
โœ… Filter by day, time, and month

๐ŸŽ› Toggle to show/hide the stats label

๐ŸŸฉ Candles are drawn only for selected conditions

๐Ÿ“ Stats label is positioned above session high (adjustable)

โš ๏ธ Important Setup Instructions:
โœ… 1. Use it on a blank chart
To avoid overlaying with default candles:

Open the chart of your preferred symbol

Click on the chart type (top toolbar: "Candles", "Bars", etc.)

Select "Blank" from the dropdown (this will hide all native candles)

Apply this indicator

This ensures only the filtered candles from the script are visible.

Adjust for your local timezone
This script uses a hardcoded timezone: "Asia/Kolkata"

If you are in a different timezone, change it to your own (e.g. "America/New_York", "Europe/London", etc.) in all instances of:

time(timeframe.period, "Asia/Kolkata")
timestamp("Asia/Kolkata", ...)


Use Cases:
Opening range behavior on specific weekdays/months

Detecting market anomalies during exact windows

Building visual logs of preferred trade hours

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.