TradingView
ImmortalFreedom
15 Nis 2020 05:43

Correlation Trend Indicator - Dr. John Ehlers 

Viper Energy, Inc.NASDAQ

Açıklama

Hot off the press, I present this "Correlation Trend Indicator" employing PSv4.0, originally formulated by Dr . John Ehlers for TASC - May 2020 Traders Tips. John Ehlers might describe it's characteristics as being a mean reverting trend identification oscillator range bound to +/-1.0 irregardless of any timeframe or asset. I could have finessed this indicator with all kinds of bells and whistles, but I wanted to keep it simple and handy enough for novice Pine programmers or Tradingview newcomers to use. This algorithm, in a slightly modified form, is actually a small portion of the base code for John Ehlers' highly complex Autocorrelation Periodogram and his Convolution SwamiChart.

Some members may have notice that I published a very similar script last month. That is correct. It's sole intention was completely different, having more diverse versatility and complexity, but with slightly reduced computational performance. While they seem eerily similar, they are genetically different. This function only has only one required "series" parameter and the correlation is calculated using the period, not bar_index. Correlating with bar_index or period yields identical results either way. Bottom line, this indicator is elegantly simplistic, yet highly utilitarian and easy to use.

Features List Includes:
Dark Background - Easily disabled in indicator Settings->Style for "Light" charts or with Pine commenting
AND a few more... You have the source!

The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Yorumlar
rocky502
how i can use this tool
ImmortalFreedom
@rocky502, I would suggest looking up information/videos about oscillating indicators theory and operation. There you will learn fundamentals of oscillators and how they function. This specific oscillator uses "correlation" in it's calculation. There is an abundance of information regarding that topic as well.
Ydnar
I appreciate this effort. Great correlation tool to have and from a great resource in Ehlers. If I knew how to code (I will get there someday) my only change would be to allow an "area" color change for above and below the dashed white middle line, just a quick glance, visual convenience idea, but totally not needed as this works great as designed. Thanks!
PVIII
Hi there, is this indicator suggesting that when there is a upward strong trend that there is a positive reading and when the trend is weakening that you will get a lower reading? And viceversa for bear trends (except the reading will stregnthen in bear). Thanks.

This way you can spot possible trend reversals if the trend correlated to previous price action is now lessening and to expect a possible reversal. This is what I am assuming, if correct?
ImmortalFreedom
@PVIII, In a general sense, yes. Wikipedia in the first few paragraphs explains "Correlation" very well. This script is an Ehlers' creation most closely related to "Pearson correlation".
PVIII
@ImmortalFreedom, Cheers, thanks
blackcat1402
another great Ehlers new osc! thanks for sharing!
INDO-SURFER
Thank You!!
ForexGold11
This script is brilliant, thank you :)
ln266505
Excellent! A true asset to the TV community!
Daha Fazla