Download: FUNCTION-NVI.ELA
File Includes: Function - NVI
Description: If volume is down, this function takes the rate of change, else does nothing
EasyLanguage Code:
INPUTS: PRICE(NUMERICSERIES), LENGTH(NUMERICSIMPLE) ;
VARS: ROCH(0);
ROCH = ( PRICE - PRICE[LENGTH] ) / PRICE[LENGTH] * 100 ;
NVI = NVI[1] + IFF ( VOLUME < VOLUME[LENGTH], ROCH, 0 ) ;