- reverse the order of the elements in the array

Miscellaneous functions
(AFL 3.90)

SYNTAX Reverse( array, first = 0, last = -1 )
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


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

More information:

Updated on-line reference