Z:=20;
M:=32;
P1:=80;
P2:=100;
VAR111:=(2*C+H+L)/4;
压力线:MA(VAR111,Z)*(1+P1/1000),POINTDOT,LINETHICK3 ;
支撑线 :MA(VAR111,M)*(1-P2/1000),POINTDOT,LINETHICK3 ;
上中轨:压力线-(压力线-支撑线)*0.33,POINTDOT,LINETHICK3,COLORLIGRAY;
下中轨:支撑线+(压力线-支撑线)*0.33,POINTDOT,LINETHICK3,COLORGRAY;
AA:压力线*1.008 POINTDOT,LINETHICK4,COLORGRAY;
BB:支撑线*0.992 POINTDOT,LINETHICK4,COLORGRAY;
选股A:=crOSS(C ,支撑线) OR (L<支撑线 AND C>支撑线);
工作线2:=MA(CLOSE,12),COLORRED,LINETHICK0;
选股B:=CROSS(C,工作线2) AND 选股A;
DRAWICON (选股A AND 选股B,L*0.9998,23),COLORRED;