TradingView
sal157011
Feb 21, 2018 5:05 PM

Sine Wave  

S&P 500SP

Description

This is John F. Ehlers, Hilbert Sine Wave with barcolor and bgcolor.
When fast line red crosses down slow line blue that is a zone of resistance in the price chart, and when fast line crosses up slow line blue that is a zone of support.
When close of the bar is equal or greater than the zone of resistance there is a trend up mode in place and trending instruments like Hull moving average should be used, and when the close of the bar is equal or greater than the zone of resistance there is a trend down in place and trending instruments should be used too.
When none of the preceeding conditions are valid there is a cycle mode, and cycle instruments like oscillators, stochastics and the Sine Wave itself should be used. Note that the Sine Wave is almost always a leading indicator when in a cycle mode.
Barcolor and bgcolor mean: Green = Trend Up , Red = Trend Down, Yellow= Cycle mode
Comments
Wakojako98
Can we create alerts for a colour change?
ICEKI
Very nice works, thanks for your generous! =D
Super_Boud
Thank you very much for your work! Your code really helped me a lot as a spring board to explore many other interesting ideas, genuinely appreciate it
levith
Great, I didn't understand the original script, read your I understand, thank you very much!!!!
NYBKLYN
This is awesome. Beautiful.
IagoLemos
I don't understand... Fast limit and slow limit doesn't make any difference at the chart. Why is that?
sal157011
@IagoLemos, You are right. The first part of the code is common to various Ehlers indicators. Fast limit and slow limit are part of the mama/fama indicator and when I copy/paste I forgot to erase those variables that are not necessary to the present Sine Wave.
More