MA5:MA(C,5);
MA10:MA(C,10);
MA250:MA(C,120);

{标注涨停}
TT:=(C/REF(C,1)-1)*100>=9.8 AND C=H;
STICKLINE(TT,O,C,3,0),COLOR0000FF;

{标注跌停}
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,O,C,0.2,0),COLOR00FFFF;

{在屏幕左上角显示所属板块}
DRAWTEXT_FIX(ISLASTBAR,0.02,0.05,0,STRCAT('所属概念:',GNBLOCK)),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.02,0.10,0,STRCAT('所属风格:',FGBLOCK)),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.02,0.15,0,STRCAT('所属行业:',HYBLOCK)),COLOR00FFFF;

{显示当前K线周期数}
DRAWNUMBER_FIX(1,0.01,0.01,0,TOTALBARSCOUNT);

平均成本:=AMOUNT/VOL/100;