{风险系数}

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;

DRAWTEXT_FIX(1,0.85,0.01,1,'财务预警:'),COLORRED;

DRAWTEXT_FIX(Z值<1.2,0.838,0.11,1,'●重警●'),COLORLIRED;

DRAWTEXT_FIX(BETWEEN(Z值,1.2,2.6),0.838,0.11,1,'○轻警○'),COLOR0099FF;

DRAWTEXT_FIX(Z值>2.6,0.838,0.11,1,'◎无警◎'),COLORLIGREEN;

JJ:Z值>2.6;

DRAWGBK(JJ, RGB(50,60,250),RGB(17,21,89),0,'11',1);

SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));

量能:=(IF(SAT>1,1,SAT)*100);

{DRAWTEXT_FIX(1,0.50,0.50,1,STRCAT(STRCAT('量能:',CON2STR(量能,2)),'%')),COLORYELLOW;}

{}

X_1:=POW(10,6)+241230-DATE;

X_2:=IF(X_1>0,1,0);

X_3:=IF(X_1>0,1,0);

X_4:=HHV(CLOSE,10);

起爆线:EMA(X_4,30),COLORMAGENTA,LINETHICK2;

IF(起爆线<=REF(起爆线,1),起爆线,DRAWNULL),COLORCYAN,LINETHICK2;

X_5:=EMA(X_4,120);

X_6:=MA(CLOSE*VOL,20);

X_7:=MA(CLOSE*VOL,60);

X_8:=1000*(X_6-REF(X_6,1))/REF(X_6,1)*2;

X_9:=1000*(X_7-REF(X_7,1))/REF(X_7,1)*2;

X_10:=(X_8-X_9)*VOL*CLOSE/MA(REF(VOL*CLOSE,1),5);

X_11:=LLV(LOW,200);

X_12:=EMA((CLOSE-X_11)/X_11,30)*100+200;

X_13:=FILTER(CLOSE>=REF(CLOSE,1)*1.05 AND X_10>=X_12/2 AND CLOSE>=OPEN AND (CROSS(CLOSE,起爆线) OR (CLOSE>起爆线 AND REF(LOW,1)<起爆线)),20);

X_14:=SUMBARS(X_13,1)*X_2;

STICKLINE(X_13,CLOSE,OPEN,2,0),COLORYELLOW;

{STICKLINE(X_14,REF(CLOSE,X_14-1),REF(CLOSE,X_14-1),2,0),COLORYELLOW;

STICKLINE(X_14,REF(CLOSE,X_14+1),REF(CLOSE,X_14+1),2,0),COLORCYAN;}

STICKLINE(X_13,LOW-0.46,LOW-0.65,3.8,0),COLORCYAN;

STICKLINE(X_13,LOW-0.44,LOW-0.65,3.6,0),COLORCYAN;

STICKLINE(X_13,LOW-0.42,LOW-0.65,3.4,0),COLORCYAN;

STICKLINE(X_13,LOW-0.4,LOW-0.65,3.2,0),COLOR444444;

STICKLINE(X_13,LOW-0.38,LOW-0.65,3,0),COLOR555555;

STICKLINE(X_13,LOW-0.36,LOW-0.65,2.8,0),COLOR666666;

STICKLINE(X_13,LOW-0.34,LOW-0.65,2.6,0),COLOR777777;

STICKLINE(X_13,LOW-0.32,LOW-0.65,2.4,0),COLOR888888;

STICKLINE(X_13,LOW-0.3,LOW-0.65,2.2,0),COLOR999999;

STICKLINE(X_13,LOW-0.28,LOW-0.55,2,0),COLOR003300;

STICKLINE(X_13,LOW-0.26,LOW-0.55,1.8,0),COLOR004400;

STICKLINE(X_13,LOW-0.24,LOW-0.55,1.6,0),COLOR005500;

STICKLINE(X_13,LOW-0.22,LOW-0.55,1.4,0),COLOR006600;

STICKLINE(X_13,LOW-0.2,LOW-0.55,1.2,0),COLOR007700;

STICKLINE(X_13,LOW-0.18,LOW-0.55,1,0),COLOR008800;

STICKLINE(X_13,LOW-0.16,LOW-0.55,0.8,0),COLOR009900;

STICKLINE(X_13,LOW-0.14,LOW-0.55,0.6,0),COLOR00BB00;

STICKLINE(X_13,LOW-0.12,LOW-0.55,0.4,0),COLOR00DD00;

STICKLINE(X_13,LOW-0.1,LOW-0.55,0.2,0),COLORRED;

STICKLINE(X_13,LOW-0.48,LOW-0.3,2,0),COLORCYAN;

STICKLINE(X_13,LOW-0.48,LOW-0.3,1.8,0),COLORCYAN;

STICKLINE(X_13,LOW-0.48,LOW-0.3,1.6,0),COLOR000055;

STICKLINE(X_13,LOW-0.48,LOW-0.3,1.4,0),COLOR000066;

STICKLINE(X_13,LOW-0.48,LOW-0.3,1.2,0),COLOR000077;

STICKLINE(X_13,LOW-0.48,LOW-0.3,1,0),COLOR000088;

STICKLINE(X_13,LOW-0.48,LOW-0.3,0.8,0),COLOR000099;

STICKLINE(X_13,LOW-0.48,LOW-0.3,0.6,0),COLOR0000AA;

STICKLINE(X_13,LOW-0.48,LOW-0.3,0.4,0),COLOR0000CC;

STICKLINE(X_13,LOW-0.48,LOW-0.3,0.2,0),COLOR0000EE;

STICKLINE(X_13,LOW-0.38,LOW-0.3,2,0),COLOR005566;

STICKLINE(X_13,LOW-0.38,LOW-0.3,1.8,0),COLOR006677;

STICKLINE(X_13,LOW-0.38,LOW-0.3,1.6,0),COLOR007788;

STICKLINE(X_13,LOW-0.38,LOW-0.3,1.4,0),COLOR008899;

STICKLINE(X_13,LOW-0.38,LOW-0.3,1.2,0),COLOR0099AA;

STICKLINE(X_13,LOW-0.38,LOW-0.3,1,0),COLOR00AABB;

STICKLINE(X_13,LOW-0.38,LOW-0.3,0.8,0),COLOR00BBCC;

STICKLINE(X_13,LOW-0.38,LOW-0.3,0.6,0),COLOR00CCDD;

STICKLINE(X_13,LOW-0.38,LOW-0.3,0.4,0),COLOR00DDEE;

STICKLINE(X_13,LOW-0.38,LOW-0.3,0.2,0),COLOR00EEFF;

STICKLINE(X_13,LOW-0.68,LOW-0.75,4,0),COLOR111188;

STICKLINE(X_13,LOW-0.66,LOW-0.74,3.6,0),COLOR332299;

STICKLINE(X_13,LOW-0.64,LOW-0.73,3.2,0),COLOR5533AA;

STICKLINE(X_13,LOW-0.62,LOW-0.72,2.8,0),COLOR8844BB;

STICKLINE(X_13,LOW-0.6,LOW-0.71,2.4,0),COLORAA55CC;

STICKLINE(X_13,LOW-0.58,LOW-0.7,2,0),COLORBROWN;

STICKLINE(X_13,LOW-0.56,LOW-0.69,1.6,0),COLORYELLOW;

STICKLINE(X_13,LOW-0.54,LOW-0.68,1.2,0),COLORYELLOW;

竞价金额:DYNAINFO(15)/10000,NODRAW;

竞价量:DYNAINFO(15)/DYNAINFO(4)/100,NODRAW,LINETHICK3;

TT3:=CONST(BARSLAST(竞价量));

{STICKLINE(PERIOD=5 AND CURRBARSCOUNT=TT3+1,竞价量,竞价量,20,0),COLORMAGENTA;}

P:=CONST(BARSLAST(竞价量));

{STICKLINE(CURRBARSCOUNT=P+1,O,竞价量,2.5,0),COLORMAGENTA;}

OO:=DYNAINFO(15)/DYNAINFO(4)/100;

A:=OO/REF(V,1)*100;

AAZ:=STRCAT(STRCAT(' ',CON2STR(A,0)),'');

{DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,AA),COLORLIRED;}

DRAWTEXT_FIX(ISLASTBAR,0.30,0.50,0,AAZ),COLORGREEN;

BIJ:=VOL/DYNAINFO(50)*100;

DRAWTEXT_FIX(1,0.75,0.50,1,STRCAT(STRCAT('',CON2STR(BIJ,2)),'')),COLORMAGENTA;