AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*102/100;
通道2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:=(1+7/100)*DD;
通道4:=(1-7/100)*DD;
MID1:=(通道3+通道4)*0.5;
VAR2:=CLOSE*VOL;
VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6)+EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,13);
SUP:=1.06*VAR3;
SDN:=VAR3*0.94;
MID:=(SUP+SDN)*0.5;
ZTB:=C>1.097*REF(C,1);
QS:=EXIST(H>通道2,2)&&EXIST(H>通道1,2)&&EXIST(H>通道3,2) AND EXIST(L<MID1,2) AND EXIST(L<MID,2);
CS1:=O<MA(C,20)&&O<MA(C,10)&&O<MA(C,5) AND C>MA(C,20)&&C>MA(C,10)&&C>MA(C,5) AND ZTB;
CS:=EXIST(CS1,2);
XG:QS AND CS;