OPEN-SOURCE SCRIPT
AV BTC Pi Cycle Top (with ATH) Overlay

Pi Cycle Top Indicator
Created by Phillip Swift. It works by comparing the 111-day SMA (blue) and the 350-day SMA. The value of the 350-day SMA is multiplied by 2 and referred to as 2*350 SMA (purple). Note: The number of days is not multiplied; the 350-day SMA is not doubled to calculate a 700-day SMA.
These two moving averages were selected because 350 / 111 ≈ 3.153, an approximation of the number Pi.
When the 111-day SMA (blue) crosses over the 2*350 SMA (purple), it signals a market cycle peak. Historically, this has worked extremely well. However, with the growth of BTC Futures and ETFs, this indicator might lose its edge.
A label and a red circle signal crossover. The indicator also marks all ATH (All-Time High) bars with yellow diamonds. The ATH line is hidden by default but can be enabled in the style tab. Additionally, halving days are marked with grey vertical lines and labels. Feel free to hide certain elements in the style tab.
For marking overbought and oversold areas, I believe looking at the Pi Cycle Oscillator is a better choice. For this reason, this indicator does not highlight overbought or oversold areas; it only marks market tops.
Created by Phillip Swift. It works by comparing the 111-day SMA (blue) and the 350-day SMA. The value of the 350-day SMA is multiplied by 2 and referred to as 2*350 SMA (purple). Note: The number of days is not multiplied; the 350-day SMA is not doubled to calculate a 700-day SMA.
These two moving averages were selected because 350 / 111 ≈ 3.153, an approximation of the number Pi.
When the 111-day SMA (blue) crosses over the 2*350 SMA (purple), it signals a market cycle peak. Historically, this has worked extremely well. However, with the growth of BTC Futures and ETFs, this indicator might lose its edge.
A label and a red circle signal crossover. The indicator also marks all ATH (All-Time High) bars with yellow diamonds. The ATH line is hidden by default but can be enabled in the style tab. Additionally, halving days are marked with grey vertical lines and labels. Feel free to hide certain elements in the style tab.
For marking overbought and oversold areas, I believe looking at the Pi Cycle Oscillator is a better choice. For this reason, this indicator does not highlight overbought or oversold areas; it only marks market tops.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.