OPEN-SOURCE SCRIPT
macBar is a script for displaying the trend with colored bars

This script is based on educational materials I received at a webinar by Jeffrey Kennedy of Elliott Wave International. I didn't find such a script in the Tradingview library, so I wrote it myself.
This is a simple script that colors the bars depending on where the price is and its extremes relative to a simple moving average.
The green bars say the market is bullish.
The gray bars indicate that the market is neutral.
The red bars say the market is bearish.
In the script, you can change the period of the simple moving average, by default it is 10.
This is a simple script that colors the bars depending on where the price is and its extremes relative to a simple moving average.
The green bars say the market is bullish.
The gray bars indicate that the market is neutral.
The red bars say the market is bearish.
In the script, you can change the period of the simple moving average, by default it is 10.
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.