OPEN-SOURCE SCRIPT

Seasonality Forecast: Predicting Market Trends with Historica

This Pine Script indicator analyzes **seasonal price patterns** based on historical data. It calculates **average price movements** over a user-defined lookback period (default: 5 years) and projects them into the future (default: 365 days). The script accounts for **election cycles**, allowing users to filter by election years, pre-election years, or post-election years. It tracks **trading days, weeks, and months**, smoothing the seasonal trend and adjusting for price scale.

Penafian