INVITE-ONLY SCRIPT

BTC Power Law Spirals by G. Santostasi

Updated
This script is based on G. Santostasi's Power Law Spiral Clock.
The Power Law Clock is a projection in polar coordinates of the Power Law Model of BTC price normalized to its natural periodicity of 4 years.

The Power Law model is derived by fitting the price of BTC in a log-log chart assuming that it has a long-term Polar Law Behavior. Using regression it is possible to extract the slope n (that is also the power of the power law) and the y-intercept. These parameters can be used to define a Power Law spiral of the form rho=A*theta^n, where theta is the time in days from the Genesis block normalized to the 4-year cycle.

The script represents 2 models the simple Power Law Spiral as defined above and a more full model with 3 components:
1) A power law trend that is adjusted to 2 standard deviations from the median Power Law trend. This is done on the basis that the historical bottoms happen to coincide with this particular deviation from the trend.
2) A sinusoidal pulsating function that has a 4-year periodicity and is synchronized to the top of the first of the periodic BTC bubble.
3) An exponential decay fitted to the 3 observed bubbles to represent the empirical decay of the amplitude of these oscillations relative to the trend.

This full model is also represented as a "stretched spiral" in a polar graph.

Finally, given we want to represent the circular path of BTC in a linear graph we took the sine projection of the x and y polar coordinates of the simple model, the full model, and the daily price of BTC.

The usefulness of this script is that it represents in a single graph both the Power Law behavior of BTC but also its cyclic nature. Each quadrant of the spiral clock coincides with a precise market phase with 0 o'clock being the top, 3 o'clock being the bottom, 6 o'clock being the transition from the bear market to the bull market and 9 o'clock being the start of the full bull market.

It is recommended to use this oscillator together with the "Adaptive Power Law Fitting by G. Santostasi" TV indicator.
Release Notes
This script is based on G. Santostasi's Power Law Spiral Clock.
The Power Law Clock is a projection in polar coordinates of the Power Law Model of BTC price normalized to its natural periodicity of 4 years.

The Power Law model is derived by fitting the price of BTC in a log-log chart assuming that it has a long-term Polar Law Behavior. Using regression it is possible to extract the slope n (that is also the power of the power law) and the y-intercept. These parameters can be used to define a Power Law spiral of the form rho=A*theta^n, where theta is the time in days from the Genesis block normalized to the 4-year cycle.

The script represents 2 models the simple Power Law Spiral as defined above and a more full model with 3 components:
1) A power law trend that is adjusted to 2 standard deviations from the median Power Law trend. This is done on the basis that the historical bottoms happen to coincide with this particular deviation from the trend.
2) A sinusoidal pulsating function that has a 4-year periodicity and is synchronized to the top of the first of the periodic BTC bubble.
3) An exponential decay fitted to the 3 observed bubbles to represent the empirical decay of the amplitude of these oscillations relative to the trend.

This full model is also represented as a "stretched spiral" in a polar graph.

Finally, given we want to represent the circular path of BTC in a linear graph we took the sine projection of the x and y polar coordinates of the simple model, the full model, and the daily price of BTC.

The usefulness of this script is that it represents in a single graph both the Power Law behavior of BTC but also its cyclic nature. Each quadrant of the spiral clock coincides with a precise market phase with 0 o'clock being the top, 3 o'clock being the bottom, 6 o'clock being the transition from the bear market to the bull market and 9 o'clock being the start of the full bull market.

It is recommended to use this oscillator together with the "Adaptive Power Law Fitting by G. Santostasi" TV indicator.
Cycleseducationalforecasting

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact Quantonomyfund for more information, or follow the author's instructions below.

Please note that this is a private, invite-only script that was not analyzed by script moderators. Its compliance to House Rules is undetermined. TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.

Author's instructions

This is an invite-only script for the Power Law Discord group members. Full instructions are present on the Discord channel. A dark theme is preferred to render the graph. It is best to use in conjunction with the Adaptive Power Law Fitting indicator.