Bar Color

Here is another indicator.

This indicator is useful from psychological point of view. It has a 20 EMA , which you can change to any value. The color of the candles or the bars will stay green unless and until we have a closing below 20 EMA , where it would give a red bar.
The tool has a great impact on psychology and keeps us in trade irrespective of the candlestick patterns.

Hope you will enjoy

JJ Singh
Full TIme Trader/Investor
Moderator, TradingView

✅Free Telegram channel for live analysis at

✅Tweet at
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 a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?