OPEN-SOURCE SCRIPT
Sine Wave

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
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
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.