OPEN-SOURCE SCRIPT
Decennial Pattern Projection

This tool was created to map out a "blueprint" for future market movements based on historical cycles.
**Important Prerequisite: Monthly Timeframe Only**
First and foremost, this indicator is designed exclusively for **monthly charts**.
If applied to other timeframes—such as daily or weekly charts—it is programmed to intentionally stop functioning and display an error message ("This indicator requires a Monthly timeframe") to prevent coordinate misalignment or redundant data calculations. Please ensure you use it only on monthly charts.
**Indicator Overview and Usage**
This indicator extracts the "10-year cycle pattern"—a classic market anomaly where performance trends align based on the last digit of the calendar year. It then plots a projected future trajectory—showing the "average year-to-date (YTD) movement (%)"—directly onto the chart for the specified year (and the following year).
**Practical Trading Applications**
**Grasping Broad Seasonality**
You can visually identify seasonal rhythms—such as which months tend to mark market bottoms or whether prices often weaken in early autumn—for years ending in a specific digit. This helps reduce the risk of unnecessary contrarian trades and allows you to formulate trading plans that align with historical capital flow patterns.
**Can it be used for entry and exit timing?**
This line does not generate direct buy/sell signals (such as arrows). However, it serves as a tool to gauge market strength and inform strategy when seasonal patterns are pronounced—such as considering long positions during "statistically strong months" or lightening positions (or switching to short strategies) during "weak months." It also helps you determine if the market is deviating from the anomaly due to specific, overriding biases.
**Improving Accuracy by Excluding "Black Swan" Events**
If you believe that outlier data from specific years—such as the 2008 Lehman Shock or the 2020 COVID-19 crash—is skewing the average, you can exclude those years via the settings. As this is a matter of individual judgment, one might choose not to exclude it if one views it as an inevitable occurrence aligned with cycles of debt or similar obligations.
**Important Prerequisite: Monthly Timeframe Only**
First and foremost, this indicator is designed exclusively for **monthly charts**.
If applied to other timeframes—such as daily or weekly charts—it is programmed to intentionally stop functioning and display an error message ("This indicator requires a Monthly timeframe") to prevent coordinate misalignment or redundant data calculations. Please ensure you use it only on monthly charts.
**Indicator Overview and Usage**
This indicator extracts the "10-year cycle pattern"—a classic market anomaly where performance trends align based on the last digit of the calendar year. It then plots a projected future trajectory—showing the "average year-to-date (YTD) movement (%)"—directly onto the chart for the specified year (and the following year).
**Practical Trading Applications**
**Grasping Broad Seasonality**
You can visually identify seasonal rhythms—such as which months tend to mark market bottoms or whether prices often weaken in early autumn—for years ending in a specific digit. This helps reduce the risk of unnecessary contrarian trades and allows you to formulate trading plans that align with historical capital flow patterns.
**Can it be used for entry and exit timing?**
This line does not generate direct buy/sell signals (such as arrows). However, it serves as a tool to gauge market strength and inform strategy when seasonal patterns are pronounced—such as considering long positions during "statistically strong months" or lightening positions (or switching to short strategies) during "weak months." It also helps you determine if the market is deviating from the anomaly due to specific, overriding biases.
**Improving Accuracy by Excluding "Black Swan" Events**
If you believe that outlier data from specific years—such as the 2008 Lehman Shock or the 2020 COVID-19 crash—is skewing the average, you can exclude those years via the settings. As this is a matter of individual judgment, one might choose not to exclude it if one views it as an inevitable occurrence aligned with cycles of debt or similar obligations.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。