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

Miscellaneous > CONDACC

Article/Author: Omega Research Inc., 1996

Download: CONDACC.ELA

File Includes:

Indicator - CONDACC
Function - ConditionalAccumltr

Category: Indicator > Miscellaneous

Description:

This is a very useful indicator which accumulates an element to a start value based on the occurance of user-specified condition. It can be used not only as stand-alone, but as a part of more complicated studies which are depends on the quantity of repeated conditions.

Usage:

Set required condition, increment, indicator start value and indicator will plot accumulated value




Inputs:

OCCUR(TrueFalseSeries) - required condition
Element(NumericSeries) - increment
StartVal(NumericSeries) - indicator satrt value

EasyLanguage Code:
INPUT: OCCUR(LOW > HIGH[1]),ELEMENT(1),STARTVAL(0);


PLOT1(CONDITIONALACCUMULTR(OCCUR,ELEMENT,STARTVAL) ,"PLOT1");