OPEN-SOURCE SCRIPT

Candles by Day, Time, Month + Stats

207
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

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.