OPEN-SOURCE SCRIPT

CT Reverse Pi Cycle Bitcoin Top Indicator

Updated
Introducing the Reverse BTC Pi Market Cycle Top indicator

Much respect to Philip Swift the original creator of this idea and big thanks to Tradingview author Ninorigo for sharing the script which this indicator is based on.

Philip Swift has noted that:
Using the x2 multiple of the 350 day moving average along with the 111 day moving average provides an interesting market cycle indicator.
Over the past three market cycles, when the 350DMA x2 crosses below the 111DMA, Bitcoin price peaks in its market cycle, this has been accurate to within three days of Bitcoin price topping out.

snapshot

snapshot

snapshot

Here I have modified an existing script by Tradingview author Ninorigo which shows the moving averages and gives signals upon crossover by adding the following features:

A function which shows the price at which the 350DMA will Cross Below the 111DMA.
(This is calculated from the prior bar closing data and does not repaint)
[aqua blue line by default]

An “anticipated cross” function which may give a 1 bar advanced warning of a cross.
(this is calculated from current bar values and may change and repaint)
[purple line by default]
[off by default .. turn on in the settings]

The crossover levels are shown in an info label to the right of the current price.

When there is a BTC Pi Market Cycle Top anticipated cross on the next bar there will be an orange background signal.
When there is an actual BTC Pi Market Cycle Top cross there will be a red background signal

When there is an anticipated cross back there will be a blue background signal
When there is an actual cross back there will be a green background signal

This indicator will show the appropriate moving averages and crossover information from the daily timeframe regardless of the timeframe you are using.

This should be helpful in more accurately identifying the price level where the Pi Market Cycle moving averages will cross denoting a possible market cycle top.

snapshot

snapshot

It is interesting to note:
350 / 111 = 3.153
Which is the closest we can get to Pi when dividing 350 by another whole number.

This is a script to give another view and metric on an interesting experimental idea. This is not financial advice.
Release Notes
Added Timeframe and Multiplier variables.
I have left the defaults as they were.... daily timeframe and a multiplier of 2.
While the Pi Cycle top was originally intended for use on bitcoin I have noticed that with different timeframe and/ different multiplier settings make it more broadly applicable.
These new settings allow for "fine tuning" of the indicator to other cryptos and to other asset classes.
Release Notes
Added function which calculates the percentage drop from the reverse Pi Cycle top cross level to the current price and displays this in the info label.
Release Notes
Small code tidy up.
Release Notes
Generally tidied up the code and code layout.

Renamed variables, functions and descriptions for improved consistency and clarity.
Release Notes
Upgraded to Pinescript version 5
caretakercyclemarketcycleMoving AveragesreverseTrend Analysis

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?


You may contact me on Krown's Crypto Cave Discord: discord.gg/W9ettX54DF My Discord username is The Caretaker.
My Private indicators are available via :
krown-trading.teachable.com/?affcode=236462_mm1lb1_w
Also on:

Disclaimer