市盈率:=DYNAINFO(39);
DRAWTEXTABS(120,10,'市盈率:'+市盈率+' '),LINETHICK1,Color03B4EC;
流通盘大小:=FINANCE2(37)/10000;
DRAWTEXTABS(220,10,'流通盘大小:'+流通盘大小+'亿 '),LINETHICK1,Color00FF00;
当前换手率:=sum(100*v/capital,1);
DRAWTEXTABS(380,10,'当前换手率: '+NUMTOSTRN(当前换手率,2)+'%'),ColorFFFFFC,LINETHICK1;
五日换手率:=sum(100*v/capital,5);
DRAWTEXTABS(380,30,'五日换手率: '+NUMTOSTRN(五日换手率,2)+'%'),colorwhite,LINETHICK1;
销售毛利率:=FINANCE2(12);
净利润同比增长:=FINANCE2(10);
DRAWTEXTABS(20,30,'销售毛利率:'+销售毛利率+'% '),LINETHICK1,colorwhite;
DRAWTEXTABS(200,30,'净利润同比增长:'+净利润同比增长+'% '),LINETHICK1,colorwhite;
DRAWTEXTABS(10,50,'所属板块:'+BKNAME),COLORFF00FF;
DRAWTEXTABS(10,70,'解禁:'), COLORRED;
DRAWTEXTABS(50,70,SELFSTRING('时间')),COLORFF9900;
DRAWTEXTABS(110,70,NUMTOSTRN(SELFDATA('数量'),0)+'万股'),COLOR00FF00,POINTDOT,LINETHICK0;
DRAWTEXTABS(165,70,'解禁2:'), COLORRED;
DRAWTEXTABS(210,70,SELFSTRING('时间2')),COLORFF9900;
DRAWTEXTABS(270,70,NUMTOSTRN(SELFDATA('数量2'),0)+'万股'),COLOR00FF00,POINTDOT,LINETHICK0;
DRAWTEXTABS(340,70,'解禁3:'), COLORRED;
DRAWTEXTABS(390,70,SELFSTRING('时间3')),COLORFF9900;
DRAWTEXTABS(450,70,NUMTOSTRN(SELFDATA('数量3'),0)+'万股'),COLOR00FF00,POINTDOT,LINETHICK0;
WCW:=BARSLAST(WEEKDAY REF(WEEKDAY,1));{周}
CAW:=IF(WCW 0,LLV(C,WCW),LLV(C,WEEKDAY));{周}
周涨幅:=(C/CAW-1)*100;
WCM:=BARSLAST(MONTH REF(MONTH,1));{月}
CAM:=IF(WCM 0,LLV(C,WCM),LLV(C,MONTH));{月}
月涨幅:=(C/CAM-1)*100;
WCY:=BARSLAST(YEAR REF(YEAR,1));{年}
CAY:=IF(WCY 0,LLV(C,WCY),LLV(C,YEAR));{年}
年涨幅:=(C/CAY-1)*100;
DRAWFLAGTEXT(周涨幅,LOW*0.95,'周涨幅:'+NUMTOSTRN(周涨幅,2)+'%');
DRAWFLAGTEXT(月涨幅,LOW*0.95,'月涨幅:'+NUMTOSTRN(月涨幅,2)+'%');
DRAWFLAGTEXT(年涨幅,LOW*0.95,'年涨幅:'+NUMTOSTRN(年涨幅,2)+'%');