
A Pine Script that analyzes monthly seasonality by calculating open-to-close percentage changes, creating a heatmap to visualize asset performance across different months and years.
Explore complementary indicator rolesHow it works
The script calculates monthly open-to-close percentage changes for a selected financial asset, generating a comprehensive heatmap that displays performance across multiple years. It computes key statistical metrics including average monthly percentage changes, standard deviation of those changes, and the proportion of months with positive returns.
By allowing users to customize visualization parameters such as color intensity for positive and negative values, start year selection, and month filtering, the script provides a flexible tool for detailed seasonality analysis. The resulting heatmap enables traders to quickly identify consistent monthly performance patterns and potential seasonal trends within a specific financial instrument.
Why it may be useful
Seasonality analysis helps traders understand recurring market behaviors and potential predictable price movements throughout different months and years. By revealing consistent performance patterns, traders can develop more informed strategies that align with historical market tendencies and seasonal fluctuations.
The script's statistical approach provides objective insights beyond subjective market observations, offering quantitative evidence of monthly performance trends. This systematic evaluation allows traders to make more data-driven decisions, potentially improving timing of entries, exits, and overall trading strategy development.
When to explore it
This seasonality analysis tool is most effective when applied to assets with historically consistent monthly performance patterns, such as commodities, seasonal stocks, or indices with predictable cyclical behaviors. Traders should use this script during periods of market research and strategy development, particularly when seeking to understand long-term price movement characteristics.
The tool is particularly valuable for swing traders and investors looking to identify potential seasonal advantages, such as recognizing months with historically higher or lower returns. It can complement other analytical methods by providing a broader, multi-year perspective on an asset's performance dynamics.
Keep exploring
What we’ve verified
Access, alerts and repainting behaviour have not been independently verified for this indicator. Check the creator’s current publication and settings.
General descriptions and classifications are recovered research. Verified details above identify the specific checks we have completed. Check the creator’s current publication for later changes.

![True Seasonal Pattern [tradeviZion] chart preview](https://s3.tradingview.com/s/SijvaWFx.png?v=1750108722)

![HSI - Halving Seasonality Index for Bitcoin (BTC) [Logue] chart preview](https://s3.tradingview.com/o/oPIA5ZsT.png?v=1709160482)
