TradingView
blackcat1402
Oct 31, 2020 3:11 AM

[blackcat] L2 Ehlers Decycler 

US Nas 100OANDA

描述

Level: 2

Background

John F. Ehlers introuced Decycler in his "Cycle Analytics for Traders" chapter 4 on 2004.


Function

The concept of a decycler is really pretty simple. The cyclic components are removed by the process of cancellation. If the high-pass filter output is subtracted from the input data, the residual only contains the low-frequency components. The decycler is a one-pole filter because the denominator contains only a first-order polynomial. By examination, the decycler must closely follow the input data because there is no difference term in the numerator of the transfer response.

Key Signal

Decycler ---> Decycler Indicator fast line
Trigger ---> Decycler Indicator slow line


Pros and Cons

100% John F. Ehlers definition translation of original work, even variable names are the same. This help readers who would like to use pine to read his book. If you had read his works, then you will be quite familiar with my code style.

Remarks

The 36th script for Blackcat1402 John F. Ehlers Week publication.

Readme

In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.

The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.

Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.

Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.

Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.

Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.

Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.

版本注释

Based on @sgrabowski15 recommendations, I change another way to display buy and sell labels.
评论
tra4suc
I have been using this script for 3 weeks and it's amazing! I really appreciate your works and i feel very lucky to find your works, please keep going :) I have been using this script with RSI, CCI and Money Flow to find out overbougt or oversold areas for short and long positions. Well, it works almost perfect for 1 HR and 4 HR. Thank you in advance.
blackcat1402
@tra4suc, glad to hear that, also i like this one very much as well. Dr. Ehlers have large numbers of inidcators, but which one could be helpful that really need your own efforts to find out. thanks for your feedback, i will try on 4H as well, and typically i use it on 30mins :D
tra4suc
@blackcat1402, i have been trying it for 15 mins, 1 HR and 4 HR. The best results is 4HR so far. But after your reply, i will try it for 30 mins too :)
sgrabowski15
Another great script sir! Keep up the amazing work; I'm a big fan! :) I have spotted a small issue with this script relating to the BUY/SELL signals. I haven't had time to check your other recent scripts - with Buy/Sell signals - to see if this is an isolated problem with this script or not. Just as an example of the problem, If you look at a BTC/USD chart on the 1D TF between the 12th and 24th April 2020, you will notice that no BUY signal appears where it should. I have noticed this on other rare occasions too, but most of the time there is no issue, and a majority of the Buy/Sell signals work flawlessly. Very strange. Hope this helps :)
sgrabowski15
@sgrabowski15,
Edit: I think the problem occurs whenever the Fast and Slow lines cross twice within two/three bars. I can't see it happen in any other situation as far as I can see. Hope this helps :)
blackcat1402
@sgrabowski15, thanks for your reminding on this! I think this may happen with current label generation, i will try other label generatio scheme according for main chart.
sgrabowski15
@blackcat1402, A pleasure and thanks for the shout out :)
更多