Skip to content
Algo Trade Analytics Docs

color.g() - Pine Script Function

Retrieves the value of the color’s green component.

color.g(color) → const float
NameTypeDescription
colorconst colorColor.

The value (0 to 255) of the color’s green component.

//@version=6
indicator("color.g", overlay=true)
plot(color.g(color.green))