Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 10/18/2006(UTC) Posts: 16
|
I tried this:
SALTO2:=CLOSE-Ref(CLOSE,-2); SALTO4:=CLOSE-Ref(CLOSE,-4);
% U STANDS FOR SETUP %
U:=IF(SALTO4<0 AND REF(SALTO4,-1)<0 AND REF(SALTO4,-2)<0 AND REF(SALTO4,-3)<0 AND REF(SALTO4,-4)<0 AND REF(SALTO4,-5)<0 AND REF(SALTO4,-6)<0 AND REF(SALTO4,-7)<0 AND REF(SALTO4,-8)<0 AND REF(SALTO4,-9)>0,1,0);
X:=IF(SALTO2<0,1,0);
IF( (SUM(X,13)=13 AND REF(U,-13)) OR (SUM(X,14)=13 AND REF(U,-14)) OR (SUM(X,15)=13 AND REF(U,-15)) OR (SUM(X,16)=13 AND REF(U,-16)) OR (SUM(X,17)=13 AND REF(U,-17)) OR (SUM(X,18)=13 AND REF(U,-18)) OR (SUM(X,19)=13 AND REF(U,-19)) OR (SUM(X,20)=13 AND REF(U,-20)) OR (SUM(X,21)=13 AND REF(U,-21)) OR (SUM(X,22)=13 AND REF(U,-22)) OR (SUM(X,23)=13 AND REF(U,-23)) OR (SUM(X,24)=13 AND REF(U,-24)) OR (SUM(X,25)=13 AND REF(U,-25)) OR (SUM(X,26)=13 AND REF(U,-26)) OR (SUM(X,27)=13 AND REF(U,-27)) OR (SUM(X,28)=13 AND REF(U,-28)) OR (SUM(X,29)=13 AND REF(U,-29)) ,1,0)
(... untill there is no remaining space...)
|