If green, the symbol performs better than total crypto; if red, the symbol performs worse than total crypto.
If green, the current symbol performs better than the total crypto market; if red, the current symbol performs worse than the total crypto market.
In this version I did some code refactoring.
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.