RWI

Indicators 
SYNTAX  rwi( minperiods, maxperiods ) 
RETURNS  ARRAY 
FUNCTION  Calculates the Random Walk Index indicator as a difference between Random Walk Index from Highs (RWIHI() function) and Random Walk Index from Lows (RWILO() function. 
EXAMPLE  rwi( 9, 40 ); 
SEE ALSO 
The RWI function is used in the following formulas in AFL online library:
See updated/extended version online.