EncodeColor
- encodes color for indicator title

Exploration / Indicators
(AFL 2.2)


SYNTAX EncodeColor( colorIndex )
RETURNS STRING
FUNCTION Converts color index to string escape sequence that changes color of text output in chart title. Color escape sequence uses cXX sequence where XX is 2 digit number specifying color index c38 - defines violet, there is a special sequence c-1 that resets to default axis color.
EXAMPLE Title = "This is written in " + EncodeColor( colorViolet ) + "violet color " + EncodeColor( colorGreen ) + "and this in green"; SEE ALSO Using colors in Indicator Builder
SEE ALSO

References:

The EncodeColor function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference