[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a challenging formula.



PureBytes Links

Trading Reference Links

hi members.
this has been troubling me.
how do i solve this example below.

first condition. H==HHV(H,5); first instance only.

now the next condition is either the low or high crossing the first 
instance the first cond was true, whichever crosses first.

if the low crosses first, the new value is that low, 
if the high crosses first the new value is that high.

in this example assume the low crossed first,this low will now be 
the new value, and a high or low crossing this line will then become 
the new value. E.T.C.

so the first rule is basically the start for the rest of the 
formula.

basically once the 2nd cond is true, forget first cond after this 
point and the value of the first cond is now the same value as the 
2nd cond E.T.C.

I am trying to do this in AFL.

would this need a loop? 


cheers: john.