GradientColor (Reserved Word)
This word returns a specific color from a user defined gradient color range, such as Blue to White.
Usage
GradientColor( dValue, dMin, dMax, nFromColor, nToColor )
Return
Returns a specific color from a user defined gradient color range, such as Blue to White
Inputs
-
dValue = value being passed-in that is within the specified Min/Max range of values
-
dMin = Starting value for the gradient range, where the nFromColor is displayed
-
dMax = Ending value for the gradient range, where the nToColor is displayed
-
nFromColor = Starting color of the gradient
-
nToColor = Ending color of the gradient
Example
Vars: RSIValue( 0 );
RSIValue = RSI( Close, 14 );
Plot1( RSIValue, "RSI");
SetPlotColor( 1, GradientColor( RSIValue, 20, 80, White, Blue));