Ehlers Sinewave Indicator V2 [CC]

The Sinewave Indicator was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pgs 154-155) and this is an updated version of his original Sinewave Indicator which in my opinion seems to be more reactive to changes. Buy when the blue line crosses over the red line and sell when the blue line crosses under the red line. Also keep in mind that this indicator is based on cycles so it won't act the same as a typical indicator.

Let me know if there are other scripts you would like to see me publish or if you want something custom done!
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Once again, shouldn't the trading signal be the other way around (leadSine > or < sine, instead of the other way around)? That's what Ehlers said in his book.
sig = sine > leadSine ? 1 : sine < leadSine ? -1 : 0

Shouldn't be the other way around (leadSine > sine or leadSine < sine), since the leadSine crosses the sine before?
cheatcountry marketrading001
@marketrading001, That was how he did it in his book but I wasn't' personally happy with the signals it produced and I got overall better buy and sell results with flipping them around. I'm sorry for getting back to you so late. I have been taking the month off for the holidays
thank you!
@kalio5, yw
Good work bro!!!
Thank you for sharing))
cheatcountry DawnButlers
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter