OPEN-SOURCE SCRIPT
Updated

Ehlers Sinewave Indicator [CC]

9684
The Sinewave Indicator was created by John Ehlers (Rocket Science For Traders pgs 97-99) and this is a few indicators in one. Simply put it is a leading indicator which you don't see too many of those these days. If the blue line crosses over the red line then within the next few bars the price will start an uptrend and if the blue line crosses below the red line then in the next few bars it will start a downtrend. I have also included an immediate buy and sell signal on the 0 line which is green when you should buy and red when you should sell.

Let me know if you would like to see any other scripts or if you want something custom done!
Release Notes
made changes to fix errors in the source book
Release Notes
fixed a typo
Release Notes
fixed a typo
Release Notes
Updated to v5 and fixed error reported by @kamicopia
Release Notes
Fixed an issue with degrees not being converted to radians

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.