Daily Seasonality
Category: cycle
Highlights the background of the chart based on the day of the week to visualize recurring weekly price patterns or volatility shifts.
Formula
\text{color} = \begin{cases} \text{Red} & \text{if } \text{dayofweek}(time) = 2 \\ \text{Orange} & \text{if } \text{dayofweek}(time) = 3 \\ \text{Yellow} & \text{if } \text{dayofweek}(time) = 4 \\ \text{Green} & \text{if } \text{dayofweek}(time) = 5 \\ \text{Turquoise} & \text{if } \text{dayofweek}(time) = 6 \\ \text{Blue} & \text{if } \text{dayofweek}(time) = 7 \\ \text{Violet} & \text{if } \text{dayofweek}(time) = 1 \end{cases}
Inputs
- Transparency (0-100) (default: 80)
- Show legend (default: true)
- Legend position (default: Top right)
- Monday (default: true)
- Tuesday (default: true)
- Wednesday (default: true)
- Thursday (default: true)
- Friday (default: true)
- Saturday (default: true)
- Sunday (default: true)
See signal primitives, usage in published strategies and more on WOBR StrategyVerse.