Pine Script – Undeclared identifier ‘green’ / ‘color.green’ – how to fix it?
You might see the following error in Pine Script quite often, especially if you’re trying to merge a few scripts or copy certain elements from another script. You might see this error with basically all supported colors: Undeclared identifier `color.red` Undeclared identifier `color.black` Undeclared identifier `color.white` Undeclared identifier ‘red’ Undeclared identifier ‘black’ Undeclared identifier ‘white’ Pine Script – Undeclared identifier ‘green’ / ‘color.green’ – how to fix it? Read More →