Reverse
- reverse the order of the elements in the array

Miscellaneous functions
(AmiBroker 5.90)


SYNTAX Reverse( array, first = 0, last = -1 )
RETURNS
FUNCTION Returns a new array with the order of the elements in specified range reversed. The range is specified by first and last arguments. If last is not specified or negative then AmiBroker will use BarCount - 1.
EXAMPLE Filter = 1;
AddColumn( BarIndex(), "BI");
AddColumn( Reverse( BarIndex() ), "Reversed BI" );
SEE ALSO Sort() function

References:

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

More information:

See updated/extended version on-line.