+1 888 340 6572

ConditionalAccumultr

Article/Author: Omega Research Inc., 1996

Download: FUNCTION-CONDITIONALACCUMULTR.ELA

File Includes: Function - ConditionalAccumultr

EasyLanguage Code:
INPUT: OCCUR(TRUEFALSESERIES),ELEMENT(NUMERICSERIES),STARTVAL(NUMERICSERIES);


IF BARNUMBER = 1 THEN CONDITIONALACCUMULTR = STARTVAL ELSE
CONDITIONALACCUMULTR = IFF(OCCUR,CONDITIONALACCUMULTR[1] + ELEMENT,CONDITIONALACCUMULTR[1])