OPEN-SOURCE SCRIPT
Updated Horrible Pine Script

A script with a bug in setting the background color. Specifically written for the QQQ. Regardless of the parameter, the color is always red. Three test values are output.
Release Notes
Use it on the QQQ ticker. The script reproduces a bug with assigning a background color to a background table based on a value. When using the variable "Close", the command doesn't work. If you don't use the variable "Close", the script works.Release Notes
A working solution was suggested in chat: color the cells instead of the tables. The problem with the table remains. We're waiting for TW's response.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.
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.
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.