Skip to content
Advertisement

Why do I keep getting ‘undeclared identifier’ error message on pine script?

I’ve been getting undeclared identifier’ error message on pine script and now it’s getting frustrating.

JavaScript

This is the full code, Thanks y’all.

JavaScript

Advertisement

Answer

Variables that are declared inside a function can only be used inside that function. It is also important to observe the correct number of spaces.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement