OPEN-SOURCE SCRIPT

EMA deviation & Range with barcolor change

This indicator includes an EMA, a range and outer lines similar to the Bollinger Bands, but with a different calculation (which also becomes apparent once you compare the two). This indicator fits very well with the EMA pullback strategy.

The color of the candles changes depending on where it is located.
Above the EMA - green
Below it - red
Inside the range - black

All colors as well as lines are customizable under the Style tab.
The "Deviation" can be set to 0, here there are only slight deviations.
The EMA range can be adjusted in 0.1 steps to achieve the highest possible accuracy of the pullbacks.

If you have any questions, please don't hesitate to contact me.
exponentialmovingaveragesMoving AveragespullbackTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer