+1 888 340 6572

PVI

Article/Author: Omega Research Inc., 1997

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