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,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警')),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.020, 0, '财务预警:'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.170, 0.020, 0, STRCAT(IF(Z值>2.6,'【无警】',''),'')),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.170, 0.020, 0, STRCAT(IF(Z值>=1.2 AND Z值<2.6,'【轻警】',''),'')),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.170, 0.020, 0, STRCAT(IF(Z值<1.2,'【重警】',''),'')),COLORRED;
{DRAWTEXT_FIX(1,0.00,0.25,0,'所属概念:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.06,0.25,0,GNBLOCK),COLORYELLOW;}
DRAWTEXT_FIX(ISLASTBAR,0.050,0.08,0,STRCAT('概 念:',GNBLOCK)),COLOREEEE00;
DRAWTEXT_FIX(ISLASTBAR,0.050,0.14,0,STRCAT('风 格:',FGBLOCK)),COLOREEEE00;