MA5:MA(C,5);
N:=20;
MIDA:=MA(C,N);
ART1:=POW((C-MIDA),2);
ART2:=MA(ART1,N);
ART3:=SQRT(ART2);
UPPERA:=MIDA+2*ART3;
LOWERA:=MIDA-2*ART3;
BOLL:REF(MIDA,1);
UB:REF(UPPERA,1);
LB:REF(LOWERA,1);
XG1:=V/REF(V,1)>=2 AND CROSS(C,BOLL);
XG2:=UB/H<1.005 AND C
DRAWTEXT(XG2,H*1.02,'卖'),COLORGREEN;