OPEN-SOURCE SCRIPT
ZigZag Bands

This script plots a central line and top and bottom lines, like a bands.
If the market is up and price still going up then central line follow the last closed "close" value.
If the market is up and price goes down, then central line stop change. If price still going down and cross bottom line, the direction changes and central line start to follow the close value if it is below central line.
I recommend to use Bandsize = 2 or 3 times ATR(300 or bigger)
This script is used in pair with my ZigZag Volume Accumulator, https://br.tradingview.com/script/Zplglw8b/
If the market is up and price still going up then central line follow the last closed "close" value.
If the market is up and price goes down, then central line stop change. If price still going down and cross bottom line, the direction changes and central line start to follow the close value if it is below central line.
I recommend to use Bandsize = 2 or 3 times ATR(300 or bigger)
This script is used in pair with my ZigZag Volume Accumulator, https://br.tradingview.com/script/Zplglw8b/
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.