N:=20;
bollBB:=15;
P:=2;
MID : MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);
xg:=(UPPER-LOWER)/MID *100<BOLLBB AND vol<MA(VOL,5) AND MA(VOL,5)<MA(VOL,20);
DRAWTEXT(xg=1 AND VOL/MA(VOL,20)<0.5,LOWER,'缩量收口'),colorred;
STICKLINE(C/REF(C,1)>1.0989,O,C,5,0),colormagenta;