OPEN-SOURCE SCRIPT

Seasonal Tendency (fadi)

Updated
Seasonal tendency refers to the patterns in stock market performance that tend to repeat at certain times of the year. These patterns can be influenced by various factors such as economic cycles, investor behavior, and historical trends. For example, the stock market often performs better during certain months like November to April, a phenomenon known as the “best six months” strategy. Conversely, months like September are historically weaker.

These tendencies can help investors and traders make more informed decisions by anticipating potential market movements based on historical data. However, it’s important to remember that past performance doesn’t guarantee future results.

This indicator calculates the average daily move patterns over the specified number of years and then removes any outliers.

Settings

Number of years: The number of years to use in the calculation. The number needs to be large enough to create a pattern, but not so large that it may distort the price move.

Seasonality line color: The plotted line color.

Border: Show or hide the border and the color to use.

Grid: Show or hide the grid and the color to use.

Outlier Factor: The Outlier Factor is used to identify unusual price moves that are not typical and neutralize them to avoid skewing the predictions. It is the amount of deviation calculated using the total median price move.
Release Notes
snapshot
Update:
  • Added support for up to 4 seasonal tendency periods
  • Added ability to display the seasonal tendency on the chart itself to better visualize price movement. This option is off by default.
Chart patternsCyclesforecastingseasonalitiesseasonalpatternsseasonaltendencies

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?


Also on:

Disclaimer