I want to do something like below:

cond1 = iif(a == b, 1, 0);
cond2 = iif((crosses(c, ema(c,5)) and (h > min(valuewhen(cond1, h), 
valuewhen(cond2, h))), 1, 0);

My problem is not able to get H of bar with prev cond2 true, in order 
to compare it with H of bar with prev cond1 true, and assign true for 
current bar's cond2 as true.

Is it possible to reference previous assigned values of array for 
calculating and assigning current value. Specifically for 1/0(true/
false) type of array. I know that its possible to use AMA2 function if 
I want some value calculated. But, I want to check previous true 
condition in array.

I hope explanation is clear.

Reply via email to