H1:EMA(C,20),COLOR00FFFF,LINETHICK2;
H2:EMA(CLOSE,8),COLORFFFFFF;
VAR1:=H2-H1;
STICKLINE(VAR1>=0,H2,H1,0.5,0),COLOR0000FF;
STICKLINE(VAR1<0,H2,H1,0.5,0),COLOR00FF00;
DRAWICON(CROSS(H1,H2),LOW,3);
大盘指数:INDEXC,NODRAW;
大盘涨跌:=(INDEXC-REF(INDEXC,1))*100/REF(INDEXC,1);
上涨家数:=INDEXADV;
下跌家数:=INDEXDEC;
每股收益:=FINANCE(33);
主营业务利润率:=FINANCE(21)/FINANCE(20)*100;
套牢盘:=100-WINNER(C)*100;
投资收益:=FINANCE(24)/10000; {投资收益}
净利润:=FINANCE(30)/10000; {净利润}
每股未分配利润:=FINANCE(32);{每股未分配利润}
每股公积金:=FINANCE(18);
经营现金流量:=FINANCE(25)/10000;
负债比率:=(FINANCE(15)+FINANCE(16))/FINANCE(10)*100;
行业涨幅排名:=HORCALC(HYBLOCK,105,1,1);
总市值_亿:=FINANCE(41)/100000000;
DRAWTEXT_FIX(ISLASTBAR AND 大盘涨跌<0,0.004,0.82,0,STRCAT('大盘涨跌:',CON2STR(大盘涨跌,2))),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND 大盘涨跌>=0,0.004,0.82,0,STRCAT('大盘涨跌:',CON2STR(大盘涨跌,2))),COLORRED;
DRAWTEXT_FIX(C>0,0.098,0.82,0,STRCAT('上涨家数:',CON2STR(上涨家数,0))),COLORRED;
DRAWTEXT_FIX(C>0,0.185,0.82,0,STRCAT('下跌家数:',CON2STR(下跌家数,0))),COLORGREEN;
DRAWTEXT_FIX(C>0,0.275,0.82,0,STRCAT('总市值_亿:',CON2STR(总市值_亿,2)));
DRAWTEXT_FIX(C>0,0.004,0.86,0,STRCAT('行业涨幅排名:',CON2STR(行业涨幅排名,0)));
DRAWTEXT_FIX(C>0,0.098,0.86,0,STRCAT('每股收益(元):',CON2STR(每股收益,2)));
DRAWTEXT_FIX(C>0,0.2,0.86,0,STRCAT('套牢盘:',CON2STR(套牢盘,2)));
DRAWTEXT_FIX(C>0,0.275,0.86,0,STRCAT('主营业务利润率:',CON2STR(主营业务利润率,2)));
DRAWTEXT_FIX(C>0,0.004,0.895,0,STRCAT('投资收益(万元):',CON2STR(投资收益,2)));
DRAWTEXT_FIX(C>0,0.125,0.895,0,STRCAT('净利润(万元):',CON2STR(净利润,2)));
DRAWTEXT_FIX(C>0,0.245,0.895,0,STRCAT('每股未分配利润(元):',CON2STR(每股未分配利润,2)));
DRAWTEXT_FIX(C>0,0.004,0.93,0,STRCAT('每股公积金(元):',CON2STR(每股公积金,2)));
DRAWTEXT_FIX(C>0,0.108,0.93,0,STRCAT('经营现金流量(万元):',CON2STR(经营现金流量,2)));
DRAWTEXT_FIX(C>0,0.258,0.93,0,STRCAT('负债比率:',CON2STR(负债比率,2)));
DRAWTEXT_FIX(C>0,0.004,1,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.06,1,0,HYBLOCK),COLORRED;
DRAWTEXT_FIX(C>0,0.12,1,0,EXTERNSTR(0,1)),COLORWHITE;