M5角度:ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.1416,COLORFF00FF,NODRAW;
CC:=(3*C+H+L+O)/6;
MA6:=EMA(MA(IF(MA(CC,3)>MA(CC,4),MA((CC+3*H)/4,3),REF(MA((CC+3*L)/4,3),1)),3),5);
MA61:=MA(C,20);
REF(MA6,1), COLOR8A8A8A,COLORYELLOW,LINETHICK2;
REF(MA6,2), COLOR898989;
REF(MA6,3), COLOR888888;
REF(MA6,4), COLOR878787;
REF(MA6,5), COLOR868686;
REF(MA6,6), COLOR858585;
REF(MA6,7), COLOR848484;
REF(MA6,8), COLOR838383;
REF(MA6,9), COLOR828282;
REF(MA6,10), COLOR818181;
REF(MA6,11), COLOR808080;
REF(MA6,12), COLOR7A7A7A;
REF(MA6,13), COLOR797979;
REF(MA6,14), COLOR787878;
REF(MA6,15), COLOR777777;
REF(MA6,16), COLOR767676;
REF(MA6,17), COLOR757575;
REF(MA6,18), COLOR747474;
REF(MA6,19), COLOR737373;
REF(MA6,20), COLOR727272;
REF(MA6,21), COLOR717171;
REF(MA6,22), COLOR707070;
REF(MA6,23), COLOR6A6A6A;
REF(MA6,24), COLOR696969,COLORCYAN;
{涨跌停显示}
涨停1:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停1,O,C,2,0),COLORRED;
跌停:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(跌停<-9.9,O,C,2,0),COLORGREEN;
ST:=NAMELIKE('ST')||NAMELIKE('*ST')||NAMELIKE('SST');
C1:=REF(C,1);
ST涨停:=IF(1.05*C1-C<0.005,2,0)&&ST;
非ST涨停:=IF(1.1*C1-C<0.005,2,0);
STICKLINE(ST涨停,O,C,2,0),COLORRED;
STICKLINE(ST涨停,H,L,0,0),COLORRED;
ST跌停:=IF(C-0.95*C1<0.005,2,0)&&ST;
STICKLINE(ST跌停,O,C,2,0),COLORGREEN;
STICKLINE(ST跌停,H,L,0,1),COLORGREEN;