源码
input:p1(13,0,999),p2(26,0,999),p3(135,0,999),p4(156,0,999),p5(321,0,999);
短期盈利13线:MA(CLOSE,P1),PRECIS2;
短期盈利26线:MA(CLOSE,P2),PRECIS2;
上涨确认135线:MA(CLOSE,P3),PRECIS2,linethick2;
多空止损156线:MA(CLOSE,P4),PRECIS2;
牛熊分界321线:MA(CLOSE,P5),PRECIS2,ColorFFFF00,linethick2;
a:=MA(c,13);
b:=MA(c,26);
盈利金叉:BARSLAST(a
DRAWTEXTABS(20,5,'当前盘面提示:'),ColorFFFFFC,LINETHICK1;
DRAWTEXTABS(115,5,STKLABEL+' '+STKNAME),LINETHICK1,ColorFFFFFC;
流通盘大小:=FINANCE2(37)/1000000*100;
金叉:=barslast(FILTER(CROSS("KD.K","KD.D") and "KD.D"<30,13));
主力吸筹区:=if(金叉>0 and 金叉<61,金叉,0);
DRAWTEXTABS(245,5,'流通盘大小:'+NUMTOSTRN(流通盘大小,2)+'亿'),LINETHICK1,ColorFFFFFC;
DRAWTEXTABS(400,5,'主力建仓天数:'+NUMTOSTRN(主力吸筹区,0)+'天'),ColorFFFFFC,LINETHICK1;
每股收益:=FINANCE2(3);
每股市盈率:=DYNAINFO(39);
每股净资产:=FINANCE2(4);
销售毛利率:=FINANCE2(12);
主营收入同比:=FINANCE2(11);
净利润同比增长:=FINANCE2(10);
市值:=C*CAPITAL*VOLUNIT/100000000;
股本:=FINANCE2(35)/10000;
流通:=FINANCE2(37)/10000;
人均持股:=CEILING(CAPITAL*100/selfdata('shx'));
市净率:=c/FINANCE2(4);
每股公积金:=FINANCE2(7);
每股未分配:=FINANCE2(8);
F:=COST(5 );J:=COST(95 );
M:=COST(15 );N:=COST(85 );
F1:=(J-F)/(F+J)*100;M1:=(N-M)/(N+M)*100;
成本集中度:=F1;
莸利比例:=WINNER(c )*100;
净资收益率:=FINANCE2(5);
净利润率:=FINANCE2(33)/FINANCE2(27)*100;
股东权益比:=FINANCE2(9);
DRAWTEXTABS(20,50,'基本面优劣提示:'),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(115,65,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),ColorFFFF07;
DRAWTEXTABS(245,65,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),ColorFFFF07;
DRAWTEXTABS(115,50,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),ColorFFFFFF;
DRAWTEXTABS(115,80,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(245,95,'主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),LINETHICK1,ColorFFFFFF;
DRAWTEXTABS(400,95,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),LINETHICK1,ColorFFFFFF;
DRAWTEXTABS(20,35,'换手率高低提示:'),ColorFFFFFC,LINETHICK1;
当日换手率:=sum(100*v/capital,1);
DRAWTEXTABS(115,35,'当日换手率: '+NUMTOSTRN(当日换手率,2)+'%'),ColorFFFFFC,LINETHICK1;
五日换手率:=sum(100*v/capital,5);
DRAWTEXTABS(245,35,'5日换手率: '+NUMTOSTRN(五日换手率,2)+'%'),ColorFFFFFC,LINETHICK1;
十日换手率:=SUM(VOL,10)*100/CAPITAL;
DRAWTEXTABS(400,35,'10日换手率: '+NUMTOSTRN(十日换手率,2)+'%'),ColorFFFFFC,LINETHICK1;
DRAWTEXTABS(20,112,'■短期盈利:盈利金叉:'+NUMTOSTRN(盈利金叉,0)+'天'),Color00FFFF;
DRAWTEXTABS(186,112,'■关注:上涨确认135线 → 多空止损156线 → 牛熊分界321线运用'),Color00FFFF;
DRAWTEXTABS(20,128,'■所属板块:'+BKNAME),Color00FF00;
DRAWTEXTABS(115,20,'市值:'+市值+'亿'),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(20,20,'股本:'+股本+'亿'),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(245,20,'成本集中度:'+成本集中度+' '),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(400,20,'莸利比例:'+莸利比例+'%'),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(115,50,'人均持股:'+人均持股+' '),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(400,65,'市净率:'+市净率+' '),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(245,50,'每股公积金:'+每股公积金+'元 '),LINETHICK1,ColorFFFFFF;
DRAWTEXTABS(400,50,'每股未分配:'+每股未分配+'元 '),LINETHICK1,ColorFFFFFF;
DRAWTEXTABS(245,80,'净资收益率:'+净资收益率+'% '),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(400,80,'净利润率:'+净利润率+'% '),LINETHICK1,ColorFFFF07;
DRAWTEXTABS(115,95,'股东权益比:'+股东权益比+' '),LINETHICK1,ColorFFFFFF;