Gradient
The _gradient object expands PineScript's color.from_gradient() method. It allows for setting a neutral color, which eases the blending from high to low. The _gradient object has the following properties:
Properties
- Name
max
- Type
- float
- Description
The maximum value corresponding to the up color.
- Name
min
- Type
- float
- Description
The minimum value corresponding to the down color.
- Name
up
- Type
- color
- Description
The color for the maximum value.
- Name
neutral
- Type
- color
- Description
The color for the neutral value.
- Name
down
- Type
- color
- Description
The color for the minimum value.