不用东忙西走,好用的财务主图在这里,所属行业,所属地区,概念,主营业务,主题投资,等等,一应俱全。
M1:=5;M2:=10;M3:=13;M4:=20;M5:=30;M6:=60;M7:=120;M8:=240;
DRAWBAND(MA(CLOSE,5),RGB(250,255,240),MA(CLOSE,5),RGB(250,255,240)),LINETHICK2;
IF(MA(CLOSE,5)>REF(MA(C,5),1),DRAWBAND(MA(CLOSE,5),RGB(255,0,0),MA(CLOSE,5), RGB(255,0,0)),DRAWNULL),COLORRED,LINETHICK2;
DRAWBAND(MA(CLOSE,10),RGB(250,255,0),MA(CLOSE,10),RGB(250,255,0)),LINETHICK2;
IF(MA(CLOSE,10)>=MA(CLOSE,30),DRAWBAND(MA(CLOSE,10),RGB(250,255,0),MA(CLOSE,10), RGB(255,0,0)),DRAWNULL),COLORRED,LINETHICK2;
MA5:=MA(C,M1),NODRAW;
MA10:=MA(C,M2),NODRAW;
MA13:MA(C,M3);
MA20:MA(C,M4);
MA30:MA(C,M5),COLORYELLOW,LINETHICK2;
MA60:MA(C,M6),LINETHICK2,COLORBLUE;
MA120:MA(C,M7),COLORGREEN,LINETHICK2;
MA240:MA(C,M8),LINETHICK2,COLORRED;
DRAWICON(CROSS(C,MA13) AND C>MA60,L-0.08,1);
DRAWTEXT_FIX(1,0.00,0,0,’所属行业:’)COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,’所属地区:’)COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.045,0,’主题投资:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.045,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.09,0,’概念:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.09,0,EXTERNSTR(0,2))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.135,0,’主营业务:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.135,0,EXTERNSTR(0,3))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.18,0,’股东变动:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.18,0,EXTERNSTR(0,4))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.225,0,’一季业绩:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.225,0,EXTERNSTR(0,5))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.27,0,’中报业绩:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.27,0,EXTERNSTR(0,6))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.315,0,’三季业绩:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.315,0,EXTERNSTR(0,7))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.36,0,’盈利预测:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.36,0,EXTERNSTR(0,8))COLOR0000FF;
C2:=REF(C,1);
非ST涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
涨停:=非ST涨停;
半涨1:=IF((C-C2)*100/C2>=(5-0.01*100/C2),1,0);
半涨2:=IF((C-C2)*100/C20;
NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);
DRAWNUMBER(非ST涨停,HIGH*1.04,NUMBER),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.56,0.00,0,NUMBER),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.00,0,’上市以来共涨停’),COLORYELLOW;
{股本市值}
总股本:=STRCAT(STRCAT(‘总股本: ‘,CON2STR(TOTALCAPITAL/1000000,2)),’亿’);
流通盘:=STRCAT(STRCAT(‘ 流通盘: ‘,CON2STR(CAPITAL/1000000,2)),’亿’);
全流通:=STRCAT(‘ 全流通: ‘,CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT(‘ 流通市值: ‘,CON2STR((CAPITAL/1000000)*C,2)),’亿’);
上市天数:=STRCAT(‘ 上市天数: ‘,CON2STR(FINANCE(42),0));
上市日期:=STRCAT(‘ 上市日期: ‘,CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));
股本市值:=STRCAT(‘股本市值: ‘,STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市天数));
{业绩综合}
市盈率:=STRCAT(‘市盈率: ‘,CON2STR(C/FINANCE(33),2));
市销率:=STRCAT(‘ 市销率: ‘,CON2STR(C/(FINANCE(20)/FINANCE(1)),2));
市净率:=STRCAT(‘ 市净率: ‘,CON2STR(C/FINANCE(34),2));
净资收益率:=STRCAT(‘ 净资收益率: ‘,CON2STR(FINANCE(33)/FINANCE(34)*100,2));
毛利率:=STRCAT(‘ 毛利率: ‘,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
净利润率:=STRCAT(‘ 净利润率 ‘,CON2STR(FINANCE(30)/FINANCE(20)*100,2));
主营利润率:=STRCAT(‘ 主营利润率 ‘,CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT(‘当前业绩: ‘,STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));
{风险系数}
X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};
X3:=FINANCE(23)/FINANCE(10)*3.3;
X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}
X5:=FINANCE(20)/FINANCE(15)*0.999;
Z值:=X1+X2+X3+X4+X5;
预警:=IF(Z值=1.2 AND Z值