TradingView
Julien_Eche
١٧ كانون الأول ديسمبر ٢٠٢١ ٠٨:٢٧

Logarithmic Trend Channel 

Church & Dwight Company, Inc.NYSE

الوصف

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.

ملاحظات الأخبار

Colour adjustments

ملاحظات الأخبار

shorttitle changed

ملاحظات الأخبار

Pine script V5 update
التعليقات
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.
المزيد