Timing · condition block
Day of week (UTC)
The day of week block is true when the candle opens on the weekday you choose, in UTC. Bitcoin trades every day, so weekends are part of the data.
How the engine evaluates it
The weekday comes from the candle's open time in UTC, from Sunday to Saturday.
Use several blocks with or to allow more than one day, or not to exclude one.
Botscript syntax
In the Lab you pick this block from the Timing group and fill in its fields. In the code view the same condition is written like this:
day monday
day saturday
Settings
| Setting | Values | Default | Notes |
|---|---|---|---|
| Day | Sunday – Saturday | Monday | UTC. |
How traders use it
- Weekend filters:
not day saturday and not day sundayon entries. - Calendar studies: test whether a strategy behaves differently on certain days.
Example bot
bot "Weekday Trend Follower"
when price crosses above ema(50) and not day saturday and not day sunday
then buy 100%
when price crosses below ema(50)
then sell 100%
- Takes EMA crosses on weekdays only.
- Exits on any day.
Pitfalls
- Calendar effects found in a backtest are easy to overfit and often disappear.
- Days are UTC: a Friday evening in New York is already Saturday in UTC.
Day of week: frequently asked questions
Which time zone defines the day?
UTC, from the candle's open time.
Can I pick several days?
Yes, combine day blocks with or, or exclude days with not.
Does Bitcoin data include weekends?
Yes. Crypto markets run 24/7, so every day has candles.
Does it work on weekly candles?
Weekly candles open on Monday, so only day monday is ever true on them.
Related blocks
Simulated results are hypothetical. They include only the fee and slippage you set on the bot, not every real-world cost or market condition, and past performance does not guarantee future results. Nothing here is financial advice.