Count the number of true condition function

Hi All,

Is there a built in AFL function that would compute the total true condition for the previous number of bars.
Eg. RSI(14) < 30 for the last 30 bars.

@dhermanus , you can easily do it yourself... This is only one way

condition = RSI(14)<30;  //  Define your condition or test as a logical (0 or 1) test
count = sum(condition, 30);  // add up all the number of TRUE or 1 condition

Thats what I was looking for.. thanks.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.