Ehlers Correlation Trend Indicator CTI by Cryptorhythms [CR]

Ehlers Correlation Trend Indicator CTI by Cryptorhythms

In his article ÔÇťCorrelation As A Trend IndicatorÔÇŁ in issue May 2020 of TASC, author John Ehlers introduces a new trend indicator that is based on the correlation between a securityÔÇÖs price history and the ideal trend: a straight line. He describes methods for using the indicator to not only identify the onset of new trends but to identify trend failures as well. He presents what looks like a simple and elegant idea for a trend-detection and mode-switching indicator.

Careful market selection may be the key to a correct application of the indicator. Even such barebone rules could shine with stocks like AAPL that tend to develop prolonged trends. But for others like CAT, which can keep oscillating in ranges for years, results will be much less impressive. They require a different approach. For example, you would want to buy when Correlation Trend falls significantly below zero and sell when it reaches positive values.

Therefore, it would be an interesting problem to research Correlation TrendÔÇÖs ability to identify the switch to a cycle mode. That might help develop countertrend systems and
trade pullbacks. Another possible application might be to act as a system filter of change from trending mode to mean-reversion mode.

As usual when porting indicators to the library here on tradingview, I like to add some extra flare!

­čĺáCustomizable Overbought and Oversold Zones for Alert Creation
­čĺáBar coloration based on trade state for easy visual at a glance chart checking
­čĺáSome basic example Entry and Exit conditions and a simple Trade State Engine to get you going creating your own strategy

­čĹŹ We hope you enjoyed this indicator and find it useful! We post free crypto analysis, strategies and indicators regularly. This is our 81st script on Tradingview!
Usuń z Ulubionych Skryptów Dodaj do Ulubionych Skryptów


Works perfect for me, thank you for this, greatly appreciated as I couldn't code although I read the article. Trying to " filter of change from trending mode to mean-reversion mode " just like you said, maybe build the perfect strategy :)
+1 Odpowiedz
Interesting, thanks.
+1 Odpowiedz
Thank you so much for sharing! Any idea how the close thing can be fixed so I could get the following code running:
strategy.entry("L", strategy.long, when=longCond and time_cond)
strategy.close("LX", when=exitLong)
strategy.entry("S", strategy.short, when=shortCond and time_cond)
strategy.close("SX", when=exitShort)

Somehow the candle coloration also does not work properly. Same problem I guess.
i have checked this on daily chart
actually not working well
There are many errors In the calculation of trends
theheirophant alirezakaj
@alirezakaj, Well I merely ported the code as Mr. Ehlers himself presented it. I never said it was the holy grail, though I do immensely respect the man's ideas and work. Perhaps your complaint would be better directed toward Mr Ehlers, I am sure he is anxiously awaiting your opinion.
+5 Odpowiedz
Strona g┼é├│wna Skaner akcji Skaner Forex Skaner Krypto Kalendarz ekonomiczny Jak to dzia┼éa Funkcje wykres├│w Cennik Pole─ç przyjaciela Dobre Praktyki Centrum Pomocy Rozwi─ůzania internetowe i brokerskie Wid┼╝ety Wykresy Lekka Biblioteka Wykres├│w Blog i wiadomo┼Ťci Twitter
Profil Ustawienia profilu Konto i p┼éatno┼Ťci Pole─ç przyjaciela Wiadomo┼Ťci do dzia┼éu obs┼éugi Centrum Pomocy Opublikowane Pomys┼éy Obserwuj─ůcy Obserwujesz Wiadomo┼Ť─ç prywatna Czat Wyloguj