DRAWTEXT_FIX(1,0.073,0,0,HYBLOCK),COLORRED; {行业}
LCT:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LCT,0),5,1)/SMA(ABS(CLOSE-LCT),5,1)*100;
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(WRSI-WR10);
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2))>95;
DRAWTEXT_FIX(1,0.70,0.15,1,STRCAT(STRCAT('',CON2STR(活跃度比,2)),'')),COLORCYAN;
HSL:=IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FINANCE(7)/100);
攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;
攻击流量:=攻击量A+攻击量B,COLORSTICK;
攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;
资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)))>100,COLORYELLOW;
资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;
资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;
资金出入:=资金流入+资金流出,COLORSTICK;
资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));
{DRAWTEXT_FIX(1,0.550,0.75,0,STRCAT(STRCAT('流量比',CON2STR(资金流量比,2)),'%买')),COLORCYAN;}
DRAWTEXT_FIX(1,0.70,0.35,1,STRCAT(STRCAT('',CON2STR(资金攻击度,2)),' ')),COLORCYAN;
CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL),COLOR0099FF;
A1:=IF(RANGE(FROMOPEN,0,61),VOL/CAPITAL*100*60/FROMOPEN,DRAWNULL);
A2:=IF(RANGE(FROMOPEN,60,121),VOL/CAPITAL*100*120/FROMOPEN,A1);
A3:=IF(RANGE(FROMOPEN,120,181),VOL/CAPITAL*100*180/FROMOPEN,A2);
A4:=IF(RANGE(FROMOPEN,180,241),VOL/CAPITAL*100*240/FROMOPEN,A3);
A5:=IF(ISLASTBAR&&PERIOD=5,VOL/CAPITAL*100*240/FROMOPEN,DRAWNULL);
预测:IF(ISLASTBAR&&PERIOD=4,A4,A5),COLORRED;
STICKLINE(ISLASTBAR,预测,0,-1,-1),COLORGREEN;
J10:=O>REF(C,1) AND C<O;{今日高开低走}
J15:=V/REF(MA(V,13),1);
J20:=J15>5;
DRAWNUMBER(J10 AND J20,HSL*1.1,J15);
换手:100*DYNAINFO(37),VOLSTICK,NODRAW;
十换手:SUM(换手,10),NODRAW;
廿换手:SUM(换手,20),COLORFF6EC7,NODRAW;
获利比:WINNER(C)*100,COLOR0080FF,NODRAW;
量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED,NODRAW;
P1:=HSL<=1;
P2:=HSL>1 AND HSL<=3;
P3:=HSL>3 AND HSL<=5;
P4:=HSL>5 AND HSL<=10;
P5:=HSL>10;
STICKLINE(P4 AND TIME<=0935,1,3,2.0,0),COLOR008000;
STICKLINE(P4 AND TIME<=0935,3,5,2.0,0),COLOR0080FF;
STICKLINE(P4 AND TIME<=0935,5,HSL,2.0,0),COLOR0000FF;
{STICKLINE(P5,0,1,2.0,0),COLOR808080;
STICKLINE(P5,1,3,2.0,0),COLOR008000;
STICKLINE(P5,3,5,2.0,0),COLOR0080FF;
STICKLINE(P5,5,10,2.0,0),COLOR0000FF;
STICKLINE(P5,10,HSL,2.0,0),COLORGREEN;
STICKLINE(P1,0,HSL,2.0,0),COLOR808080;
STICKLINE(P2,0,1,2.0,0),COLOR808080;
STICKLINE(P2,1,HSL,2.0,0),COLOR008000;
STICKLINE(P3,0,1,2.0,0),COLOR808080;
STICKLINE(P3,1,3,2.0,0),COLOR008000;
STICKLINE(P3,3,HSL,2.0,0),COLOR0080FF;
STICKLINE(P4,0,1,2.0,0),COLOR808080;}
M5:MA(HSL,5),COLORWHITE;
M10:MA(HSL,10),COLORYELLOW;
M20:MA(HSL,20),COLORFF00FF;
DRAWICON(换手>25,换手,15);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
QM:=LLVBARS(MACD,QZQ+20);
MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);
QF:=LLVBARS(DIFF,QZQ+20);
DQDZ:=IF(QF>QZQ,REF(DIFF,QF),0);
XG1:=MACD<0 AND MACD>MQDZ AND DIFF<0 AND DIFF>DQDZ
AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ<0 AND DQDZ<0;
MACD双背离:REF(XG1,1)=1 AND MACD>REF(MACD,1),LINETHICK2,COLORYELLOW,NODRAW;
DRAWICON(MACD双背离,H,26);
{换手率解盘};
FJ1:=1;
FJ2:=2;
FJ3:=3;
FJ4:=5;
FJ5:=8;
FJ6:=15;
FJ7:=25;
HS:=DYNAINFO(37)*100,LINETHICK2,COLORYELLOW;