MA5:MA(C,5); { MA10:MA(C,10); MA20:MA(C,20); MA60:MA(C,60); } 涨幅:=(C-REF(C,1))/REF(C,1)*100; {标注涨停} TT:=C=ZTPRICE(REF(CLOSE,1),0.1) AND C=H; 涨停2:=涨幅>10 AND 涨幅<10.55; STICKLINE(TT OR 涨停2,O,C,3,0),COLOR0000FF; {标注涨停ST} ST:=C=ZTPRICE(REF(CLOSE,1),0.05) AND C=H; {STICKLINE(ST,O,C,3,0),COLOR0000FF;} {标注涨停20CM} TT20CM:=C=ZTPRICE(REF(CLOSE,1),0.2) AND C=H; STICKLINE(TT20CM,O,C,3,0),COLORA723ED; {标注跌停} TT2:=C/REF(C,1)<=0.91 AND C=L; STICKLINE(TT2,O,C,3,0),COLOR00FF00; {标注炸板} TTT:=(H/REF(C,1)-1)*100>=9.8 AND C<H; STICKLINE(TTT AND CODE!='880005',O,C,0.2,0),COLOR00FFFF; {标注翘板} 翘板:=(L/REF(C,1)-1)*100<=-9.8 AND C>L; STICKLINE(翘板,O,C,0.2,0),COLORFF8000; {在屏幕左上角显示所属板块} 概念STR:=STRCAT(STRCAT(DYBLOCK,'--'),GNBLOCK); DRAWTEXT_FIX(ISLASTBAR,0.02,0.05,0,STRCAT('所属概念:',概念STR)),COLOR00FFFF; DRAWTEXT_FIX(ISLASTBAR,0.02,0.10,0,STRCAT('所属风格:',FGBLOCK)),COLOR00FFFF; DRAWTEXT_FIX(ISLASTBAR,0.02,0.15,0,STRCAT('所属行业:',HYBLOCK)),COLOR00FFFF; 成交额STR:=STRCAT(VAR2STR(AMOUNT/100000000,2),'亿元'); 换手率STR:=STRCAT(VAR2STR(DYNAINFO(37)*100,2),'%'); DRAWTEXT_FIX(ISLASTBAR,0.02,0.2,0,STRCAT('成交额:',成交额STR)),COLOR00FFFF; DRAWTEXT_FIX(ISLASTBAR,0.02,0.25,0,STRCAT('换手率:',换手率STR)),COLOR00FFFF; 流通市值STR:=STRCAT(VAR2STR(FINANCE(40)/100000000,2),' 亿元'); DRAWTEXT_FIX(ISLASTBAR,0.02,0.3,0,STRCAT('流通市值:',流通市值STR)),COLOR00FFFF; 开盘金额:=DYNAINFO(15); 开盘金额STR:=STRCAT(CON2STR(开盘金额/10000,0),' 万元'); DRAWTEXT_FIX(ISLASTBAR,0.02,0.35,0,STRCAT('开盘金额:',开盘金额STR)),COLOR00FFFF;
效果图: