Black Friday great discounts start today Learn more
+1 888 340 6572

NVI

Article/Author: Omega Research Inc., 1997

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 ) ;