TradingView
BillionaireLau
Oct 12, 2020 11:17 AM

Logarithmic regression 

Coffee C FuturesICEUS

描述

Logarithmic regression (or known as Tseng's tunnels), is used to model data where growth or decay accelerates rapidly at first and then slows over time.
This model is for the long term series data (such as 10 years time span).

The user can consider entering the market when the price below 25% or 5% confidence and consider take profit when the price goes above 75% or 95% confidence line.

Technical issues
*The user have to pan over the chart from the beginning to the end of the study range (such as 10 years of bars) so the pine script could generate those regression lines on the chart.
*If on the chart the number of bar is less than the lookback period, it won't generate any lines as well
评论
Manoj_Murali
@BillionaireLau I don't see the lines formed, instead it is coming below the chart as a separate panel.
Manoj_Murali
@BillionaireLau, Please ignore, as I didn't notice the sample chart above properly .
BillionaireLau
@Manoj_Murali, You can also try this script. This is my last update version of logarithmic regression:
tradingview.com/script/uBQVS2is-Universal-logarithmic-growth-curves-with-support-and-resistance/
quicksilver774
@BillionaireLau, is it possible to have extensions of the lines for this script?
更多