OPEN-SOURCE SCRIPT
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.
- 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 creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.