TradingView
Julien_Eche
17 Th12 2021 08:27

Logarithmic Trend Channel 

Church & Dwight Company, Inc.NYSE

Mô tả

This indicator automatically draws a regression channel plotted on logarithmic scale from the first quotation.

This model is useful for the long term series data (such as 10 or 20 years time span).

The Pearson correlation measures the strength of the linear relationship between two variables. It has a value between to 1, with a value of 0 meaning no correlation, and + 1 meaning a total positive correlation.

Logarithmic price scales are a type of scale used on a chart, plotted such that two equivalent price changes are represented by the same vertical changes on the scale.
They differ from linear price scales because they display percentage points and not dollar price increases for a stock.

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 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.

Phát hành các Ghi chú

Colour adjustments

Phát hành các Ghi chú

shorttitle changed

Phát hành các Ghi chú

Pine script V5 update
Bình luận
DL_INVEST
Thank you very much !
HisNomad
Smart, thanks mate!
jbuick9
Good job I like this. What does the number on the bottom left of the channel signify? In example above it says 0.982.
Julien_Eche
@jbuick9, Pearson's R attempts to find how correlated data is with a potential pattern.
The closer the pearson is to 1, the stronger the trend.
Thêm nữa