ColorRGB
|
Miscellaneous functions |
SYNTAX | ColorRGB( red, green, blue ) |
RETURNS | NUMBER |
FUNCTION | The function allows to specify color out of 16 million color (24 bit) palette using Red, Green, Blue components.
The return value is a number that can be used in Plot, PlotOHLC, PlotForeign, AddColumn, AddTextColumn functions to specify chart or column color.
Parameters: For more information about RGB color model please read: http://en.wikipedia.org/wiki/RGB_color_model |
EXAMPLE | Plot( MA(C,10), "Light Red", ColorRGB( 255, 128, 128 ) ); Plot( MA(C,20), "Light Green", ColorRGB( 128, 255, 128 ) ); Plot( MA(C,30), "Light Blue", ColorRGB( 128, 128, 255 ) ); |
SEE ALSO | ColorHSB() function , PLOT() function , AddColumn() function |
The ColorRGB function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.