scarf

Coloured Volume Grid 1.0

Candles are coloured based on relative price and volume:

- If today’s closing price and volume are greater than (n) bars ago, color today’s volume bar green.
- If today’s closing price is greater than (n) bars ago but volume is not, color today’s volume bar lime.
- Similarly, if today’s closing price and volume is less than (n) bars ago, color today’s volume bar orange.
- If today’s closing price is less than (n) bars ago but volume is not, color today’s volume bar red.

The above logic in itself gives pretty remarkable considering how simple the idea is. I have added a multi-timeframe feature where the same logic is applied to 4 other timeframes. This way you can quickly be aware without having to check. There are four layers and the default settings show (from top to bottom) daily, 4h, 1h and 15m

All timeframes are adjustable in the settings.

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.

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.

Want to use this script on a chart?