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!
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.
marketrading001
⋅
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, 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