N:=5;N1:=25;
A:(N-HHVBARS(H,N))/N*100,COLORGREEN;
B:(N-LLVBARS(L,N))/N*100,COLORRED;
P:(N1-HHVBARS(H,N1))/N1*100,COLORCYAN;
Q:(N1-LLVBARS(L,N1))/N1*100,COLORMAGENTA;
{- }
卖:IF(REF(P,1)=REF(A,1) AND REF(A,1)=100 AND (A AND P)<100 AND Q<=40 AND B<=50 ,90,100),COLORGREEN,LINETHICK3;
买:IF(REF(Q,1)=REF(B,1) AND REF(B,1)=100 AND (B AND Q)<100 AND P<=40 AND A<=50 ,80,100),COLORYELLOW,LINETHICK2;