OPEN-SOURCE SCRIPT

Pi Cycle Bitcoin Top Indicator

Updated
The script implements the Pi Cycle Top indicator

This indicator identifies tops in the bitcoin market cycle. Historically, the Pi Cycle Top indicator has called out tops in the price of bitcoin within three days.

The script is very easy to use and it is possible to change the following parameters:
  • the time interval (default value is day);
  • the days of long moving average (default value is 365)
  • the days of short moving average (default value is 111)
  • show the moving average plots
  • show the Pi Cycle Top label highlighting the cross-point
Release Notes
Improved the management of the graph timeframe.

Now the script automatically use the timeframe of the graph.
Release Notes
Show (with a label) when the long MA crossed above the short MA (named Pi cycle down).

Added two alert conditions:
1) Pi cycle top;
2) when the long MA crossed above the short MA.
Bitcoin (Cryptocurrency)Moving AveragesSimple Moving Average (SMA)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer