OPEN-SOURCE SCRIPT

Sharktank - Pi Cycle Prediction

Telah dikemas kini
The Pi Cycle indicator has called tops in Bitcoin quite accurately. Assuming history repeats itself, knowledge about when it might happen again could benefit you.

The indicator is fairly simple:
- A daily moving average of 350 ("long_ma" in script)
- A daily moving average of 111 ("short_ma" in script)

The value of the long moving average is multiplied by two. This way the longer moving average appears above the shorter one.

When the shorter one (orange colored) crosses above the longer (green colored) one, it could mean the top is in.

These moving averages rise at a certain rate. Using these rates we could try to estimate a possible crossover moment. That's exactly what this indicator does! It gives the user a prediction of when a crossover might happen.

Special thanks to:
- Ninorigo, for making his indicator public. This one uses his as a starting point.
- The_Caretaker, for coming up with this idea about calling a top. Yet, his is more price-based, this one is more time-based.
Nota Keluaran
Inputs have been updated to incorporate Pine v4 March 2021 updates. Inputs now feature tooltips for additional information and are sorted by groups.

An unused input had been removed.

Previous version of the indicator only looked at the increase of the moving averages during the last day and extrapolated the increase. This extrapolation gave the predicted cross date. This newer version still features that approach, but also added the possibility to smooth out the increase. This way the extrapolation is not solely based on the moving average increase during the last day, but used the increase of the past three (default, but users can change this) days.

The extrapolation is shown using two lines.

Feature to show how many days are left until the cross.
Nota Keluaran
Updated the TradingView script image shown at the top.
Bitcoin (Cryptocurrency)cyclePIpicycleTOPTrend Analysis

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian