Guest User | Sign In

Knowledge Base

Accumulation Since Signal Function

Overview


ACCSINCESIGNAL(Source, Signal)

Added in Optuma v1.3 this function takes two scripts, the first script is the value which is accumulated and the second script is a Boolean value that signals a reset of the accumulation.

An example of this script:

R1 = RSI() > 75;
R2 = RSI() < 72;
c1 = SWITCH(R1, R2);
c1_on = c1 and (OFFSET(c1, OFFSET=1) <= 0);
ACCSINCESIGNAL(RSI() , c1_on)


This example script would accumulate the RSI values when the c1_on signal changes to a value of 1.



 Last updated Wed, Jun 20 2018 2:15pm

Please Wait!

Please wait... it will take a second!