OPEN-SOURCE SCRIPT

AlexD Market annual seasonality

Updated
The indicator displays the percentage of bullish days with a given date over several years.
This allows you to determine the days of the year when the price usually goes up or down.
Indicator has a built-in "simple moving average" shifted back by half a period, due to which the delay of this smoothing is removed.
Release Notes
Offset removed from plot() function
Release Notes
Added smoothing when sampling the day of the year.

The "Depth" property indicates how many bars to take for smoothing to the left and right of the found day.
Extreme bars are taken with less weighting for smooth signal decay.

I recommend setting "Depth" to 1. If you don't need to use this feature, set "Depth" to 0.

This is the final functionality change. Further changes are possible to optimize the indicator.
alexdcycleCyclesOscillatorsseasonseasonsstatistics

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer