|
A1:=REF(H,1)>H AND REF(H,2)<REF(H,1);
A2:=BACKSET(A1,1);
A31:=BACKSET(REFX(A2=1,1),1);
B1:=h=REF(h,1);
B2:=BARSLASTCOUNT(B1);
B3:=IF(CURRBARSCOUNT>0,b2>=1 AND REF(h,b2)>REF(h,b2+1) AND h>REFX(h,1),0);
a3:=a31 OR b3;
A4:=A3*H;
A5:=IF(CURRBARSCOUNT<=1,IF(CURRBARSCOUNT=0,0,C),A4);
A6:=TOPRANGE(A5);
A7:=FILTERX(A5>0,A6);
A8:=IF(CURRBARSCOUNT=0,C,A7*a5);
A9:=IF(h=HHV(h,0),1,TOPRANGE(A8));
a10:=COUNT(a8>0,a9+1);
a11:=REF(COUNT(a8>0,REF(a9,1)+1),1)+1;
a12:=IF(REF(a9,1)>0,a10-a11,a10-2);
a12>=1 AND c>REF(h,1); |
|