Pine Script 5

Pine Script 5 reorganized the built-in function library into namespaces. This reduces naming collisions and makes code easier to read.

// Red with 70% opacity (0 is transparent, 100 is solid) fillColor = color.new(color.red, 70) plot(close, color=color.new(color.green, 0)) // Solid green pine script 5

Go to Top