OPEN-SOURCE SCRIPT

Live Bar Inside Bar Coloring

115
This script colors the current candle if it is inside the prior candle on the timeframe displayed.

There are other indicators which color inside bars, this indicator only colors the live / active candle.*

This also allows it to color differently if price is above or below the candle open.

* Note, there is a bug where a prior candle's color will persist, if you can identify the issue I will be grateful!

Disclaimer

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.