Download: FUNCTION-PVI.ELA
File Includes: Function - PVI
Description: If volume is up, 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 ;
PVI = PVI[1] + IFF ( VOLUME > VOLUME[LENGTH], ROCH, 0 ) ;