AlexD169

AlexD Market annual seasonality

AlexD169 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.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?