Exploration / Indicators
|SYNTAX||EncodeColor( colorIndex )|
|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|
The EncodeColor function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.