M:=20;
总手:vol;
stICKLINE(C O,0,V,10,0),colorred;
STICKLINE(C =O,0,V,10,0),colorgreen;
ma20:MA(V,M);
K20:=MA(CLOSE,20);
VAR1:=IF(V MA20 AND C K20,1,0);
VAR2:=REF(VAR1,2);
VAR3:=REF(VAR1,3);
x:IF(VAR1=1 AND VAR2=0,1,0);
y:IF(VAR1=1 AND VAR2=1 AND VAR3=0,2,0);