AddRankColumn
- add ranking column(s) according to current sort set by SetSortColumns

Exploration / Indicators
(AmiBroker 7.70)


SYNTAX AddRankColumn()
RETURNS NOTHING
FUNCTION The function adds ranking column(s) according to current sort set by SetSortColumns to exploration result list.
EXAMPLE Filter = 1;
AddColumn( Close, "Close" );
AddColumn( Volume, "BI" );
AddSummaryRows( 31 + 32, 1.5 );

AddRankColumn(); // without prior sorting AddRankColumn just adds line number
SetSortColumns( -4 );
AddRankColumn(); // rank according to 4th column (descending)
SetSortColumns( 3 );
AddRankColumn(); // rank according to 3rd column (ascending)
SEE ALSO SetSortColumns() function

References:

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

More information:

See updated/extended version on-line.