OPEN-SOURCE SCRIPT
Yearly Projection Explorer

This indicator helps you understand how the current market period has behaved historically by overlaying the same date window from previous years and projecting it forward from today’s price.
The script works the following way:
🔧 How It Works
🧠 Why This Is Useful
This tool does not predict the future, but it provides a powerful historical framework to assess what has been typical, rare, or extreme for the current market window.
⚠️ Notes
The script works the following way:
- Aligns past years to today’s calendar date
- Normalizes all paths to the last close at the start
- Projects historical performance X bars forward
- Displays each year as a separate performance path
- Calculates and plots the mean (average) projection for quick reference
🔧 How It Works
- Number of Years: choose how many past years to include (e.g. last 10, 20, or 25 years)
- Projection Length: choose how many bars (days) ahead to project
- Each line shows how the market moved during the same period in a specific year
- Labels show the year and total return at the projection end
- The mean line highlights the average historical outcome
🧠 Why This Is Useful
- Identify seasonal tendencies
- Compare current price action to historical analogs
- Visualize best / worst historical outcomes
- Set realistic expectations for short-term moves
- Add context to discretionary or systematic decisions
This tool does not predict the future, but it provides a powerful historical framework to assess what has been typical, rare, or extreme for the current market window.
⚠️ Notes
- Script works on timenow variable for now, and you might see unexpected periods if today is a day off.
- Results depend on the selected timeframe and instrument
- Past performance is not a guarantee of future results
- Designed for analysis and context, not standalone signals
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
💻 Online Courses and Access to PRO Indicators in the QuanTribe community: qntly.com/qt
💼 Hire Us: qntly.com/pine
📞 Book a call: qntly.com/cons
📰 qntly.com/news
𝕏: qntly.com/x
📩 qntly.com/tel
💼 Hire Us: qntly.com/pine
📞 Book a call: qntly.com/cons
📰 qntly.com/news
𝕏: qntly.com/x
📩 qntly.com/tel
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
💻 Online Courses and Access to PRO Indicators in the QuanTribe community: qntly.com/qt
💼 Hire Us: qntly.com/pine
📞 Book a call: qntly.com/cons
📰 qntly.com/news
𝕏: qntly.com/x
📩 qntly.com/tel
💼 Hire Us: qntly.com/pine
📞 Book a call: qntly.com/cons
📰 qntly.com/news
𝕏: qntly.com/x
📩 qntly.com/tel
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.