AddColumn
|
Exploration / Indicators |
SYNTAX | AddColumn( array, name, format = 1.2, textColor = colorDefault, bkgndColor = colorDefault, width = -1, barchart = Null ) |
RETURNS | NOTHING |
FUNCTION | Adds a new column to the exploration result list. The column
shows array values and has a caption of name. The values are
formatted using format specification. By default all variables are displayed with 2 decimal digits, but you can change this by assigning a different value to this variable: 1.5 gives 5 decimal digits, 1.0 gives no decimal digits. (Note for advanced users: the integer part of this number can be used to pad formatted number with spaces - 6.0 will give no decimal digits but a number space-padded upto 6 characters.) Next two parameters allow to modify text and background color. special format constants:
|
EXAMPLE | 1. Simple column showing close price
2. Colorful output
3. Barchart example
|
SEE ALSO | ADDTEXTCOLUMN() function |
The AddColumn function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.