MA8:MA(CLOSE,8),colorgreen,linethick1;
买卖线增平仓线10:=MA(CLOSE,10),coloryellow;
中线趋势20:MA(CLOSE,20),colorwhite,linethick3;
上轨:中线趋势20+2*STD(CLOSE,20),colorred,linethick2;
下轨:中线趋势20-2*STD(CLOSE,20),colorgreen,linethick2;
生命线:=MA(CLOSE,30),color222666;
多空趋势60:MA(CLOSE,60),colorliblue;
MA61:EMA(多空趋势60,3),colorliblue;
MA62:EMA(MA61,3),colorliblue;
MA63:EMA(MA62,3),colorliblue;
半年线:=MA(CLOSE,120),colorblue,linethick1;
DRAWTEXT(CROSS(中线趋势20,生命线),生命线*0.98,'走强'),colorgreen,linethick2;
DRAWTEXT(CROSS(生命线,多空趋势60),多空趋势60*0.98,'走牛'),COLOR0000FF,linethick2;
DRAWTEXT(CROSS(多空趋势60,半年线),半年线*0.98,'长牛'),COLOR999999,linethick2;
STICKLINE(C/REF(C,1)>1.0925 AND C=H,CLOSE,OPEN,8,0),colormagenta;
C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,8,0),coloryellow;