OPEN-SOURCE SCRIPT

Bitcoin Logarithmic Regression


This indicator displays logarithmic regression channels for Bitcoin. A logarithmic regression is a function that increases or decreases rapidly at first, but then steadily slows as time moves. The original version of this indicator/model was created as an open source script by a user called Owain but is not available on TradingView anymore. So I decided to update the code to the latest version of pinescript and fine tune some of the parameters.

How to read and use the logarithmic regression:

There are 3 different regression lines or channels visible:

Green Channel: These lines represent different levels of support derived from the logarithmic regression model.

Purpose: The green channel is used to identify potential support levels where the price might find a bottom or bounce back upwards.

Interpretation:
If the price is approaching or touching the lower green lines, it might indicate a buying opportunity or an area where the price is considered undervalued.

------------------------------------------------

Red Channel: These lines represent different levels of resistance derived from the logarithmic regression model.

Purpose: The red channel is used to identify potential resistance levels where the price might encounter selling pressure or face difficulty moving higher.

Interpretation:
If the price is approaching or touching the upper red lines, it might indicate a selling opportunity or an area where the price is considered overvalued.

-------------------------------------------------

Purple Line This line represents to so-called "fair price" of Bitcoin according to the regression model.

Purpose: The purple line can be used to identify if the current price of Bitcoin is under- or overvalued.

Interpretation: A simple interpretation here would be that over time the price will have the tendency to always return to its "fair price", so starting to DCA more when price is under the line and less when it is over the line could be a suitable investment strategy.

----------------------------------------------------

Practical Application:

You can use this regression channel to build your own, long term, trading strategies. Notice how Bitcoin seems to always act in kind of the same 4 year cycle:

- Price likes to trade around the purple line at the time of the halvings
- After the halvings we see an extended sideways range for up to 300 days
- After the sideways range Bitcoin goes into a bull market frenzy (the area between the green and red channel)
- The price tops out at the upper red channel and then enters a prolonged bear market.

Buying around the purple line or lower line of the green channel and selling once the price reaches the red channel can be a suitable and very profitable strategy.
Bands and ChannelsCyclesLOGARITHMIC

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?


更多:

免責聲明