M0:=ZST1.VOL0#DAY;
M1:=ZST1.VOL1#DAY;
M2:=ZST1.VOL2#DAY;
M3:=ZST1.VOL3#DAY;
M4:=ZST1.VOL4#DAY;
M5:=ZST1.VOL5#DAY;
M6:=ZST1.VOL6#DAY;
M7:=ZST1.VOL7#DAY;
M8:=ZST1.VOL8#DAY;
M9:=ZST1.VOL9#DAY;
MAXV:=ZST1.MAXV#DAY;
R0:=ZST1.R0#DAY;
R1:=ZST1.R1#DAY;
R2:=ZST1.R2#DAY;
R3:=ZST1.R3#DAY;
R4:=ZST1.R4#DAY;
R5:=ZST1.R5#DAY;
R6:=ZST1.R6#DAY;
R7:=ZST1.R7#DAY;
R8:=ZST1.R8#DAY;
R9:=ZST1.R9#DAY;
RR0:=ZST1.RR0#DAY;
RR1:=ZST1.RR1#DAY;
RR2:=ZST1.RR2#DAY;
RR3:=ZST1.RR3#DAY;
RR4:=ZST1.RR4#DAY;
RR5:=ZST1.RR5#DAY;
RR6:=ZST1.RR6#DAY;
RR7:=ZST1.RR7#DAY;
RR8:=ZST1.RR8#DAY;
RR9:=ZST1.RR9#DAY;
DRAWRECTREL(990,CONST(1000-(M0*500/MAXV)),1000,1000,IF(IF(RR0=1,RR0,R0),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(975,CONST(1000-(M1*500/MAXV)),985,1000,IF(IF(RR1=1,RR1,R1),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(960,CONST(1000-(M2*500/MAXV)),970,1000,IF(IF(RR2=1,RR2,R2),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(945,CONST(1000-(M3*500/MAXV)),955,1000,IF(IF(RR3=1,RR3,R3),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(930,CONST(1000-(M4*500/MAXV)),940,1000,IF(IF(RR4=1,RR4,R4),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(915,CONST(1000-(M5*500/MAXV)),925,1000,IF(IF(RR5=1,RR5,R5),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(900,CONST(1000-(M6*500/MAXV)),910,1000,IF(IF(RR6=1,RR6,R6),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(885,CONST(1000-(M7*500/MAXV)),895,1000,IF(IF(RR7=1,RR7,R7),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(870,CONST(1000-(M8*500/MAXV)),880,1000,IF(IF(RR8=1,RR8,R8),RGB(255,0,0),RGB(23,125,225)));
DRAWRECTREL(855,CONST(1000-(M9*500/MAXV)),865,1000,IF(IF(RR9=1,RR9,R9),RGB(255,0,0),RGB(23,125,225)));
QM0:=ZST1.净流入#DAY;
QM1:=ZST1.超大单#DAY;
QM2:=ZST1.大单#DAY;
QM3:=ZST1.中单#DAY;
QM4:=ZST1.小单#DAY;
QMAXV:=ZST1.DAZHI#DAY;
DRAWRECTREL(0,649,252,999.2,IF(120,RGB(10,0,0),0));
DRAWRECTREL(0,CONST(950-(ABS(QM0)*200/QMAXV)),40,950,IF(CONST(QM0)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(50,CONST(950-(ABS(QM1)*200/QMAXV)),90,950,IF(CONST(QM1)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(100,CONST(950-(ABS(QM2)*200/QMAXV)),140,950,IF(CONST(QM2)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(150,CONST(950-(ABS(QM3)*200/QMAXV)),190,950,IF(CONST(QM3)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(200,CONST(950-(ABS(QM4)*200/QMAXV)),240,950,IF(CONST(QM4)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,1,0,'净流'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.053,1,0,'超大'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.103,1,0,'大户'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.153,1,0,'中户'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.204,1,0,'散户'),COLORYELLOW;
MD:=EMA(C,1)-EMA(C,5);
STICKLINE(MD>0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLOR5151A2;
STICKLINE(MD<=0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLOR74743A;
分时线:CLOSE,COLORWHITE;
MM:=0.805;
MM1:=0.105;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.003,MM-ABS(QM0)*MM1/QMAXV,0,CEILING(QM0)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.053,MM-ABS(QM1)*MM1/QMAXV,0,CEILING(QM1));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.103,MM-ABS(QM2)*MM1/QMAXV,0,CEILING(QM2)),COLORLIBLUE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.153,MM-ABS(QM3)*MM1/QMAXV,0,CEILING(QM3));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.204,MM-ABS(QM4)*MM1/QMAXV,0,CEILING(QM4));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.253,1,0,'单位(万元)'),COLORYELLOW;
分时均价线:SUM(C*V,240)/SUM(V,240),COLORMAGENTA,LINETHICK3;
{价:=C,COLORWHITE;
TT:=BARSCOUNT(C);
ZZ:=SUM(AMOUNT,TT)/SUM(VOL*100,TT);
ZZ1:=BETWEEN(C/ZZ,1.05,0.95);
均线:IF(ZZ1=0,MA(C,TT),ZZ),COLORYELLOW ,NODRAW;
突破:=C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>13 AND TT<240;
DRAWTEXT( C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>=13 AND TT<240 ,C-0.10 , '突--破'),COLORRED;
STICKLINE( C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>=13 AND TT<230 ,DYNAINFO(3) ,CLOSE+0.10 ,0.8 ,1);}
{资金流量 攻击流量}
资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;
资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;
资金出入:=资金流入+资金流出,COLORSTICK;
资金流量:=资金出入,COLORFFFFFF,LINETHICK1;
资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));
增强流量比:=IF(资金流量比>50,资金流量比,50);
攻击量:=((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,LINETHICK2;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK2;
攻击流量:=攻击量A+攻击量B,COLORSTICK;
NOTEXT攻击线:=攻击流量,COLORYELLOW,LINETHICK2;
攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;
资金攻击度:=IF(攻击比>0,(攻击比+50),100-ABS((攻击比-50)));
攻击度限制:=IF(资金攻击度>100,100,IF(资金攻击度<0,0,资金攻击度));
增强攻击度:=IF(资金攻击度>50,资金攻击度,50);
开始攻击:=CROSS(攻击流量,0) AND (C>REF(C,2) OR (资金流量>0 AND 资金流量>攻击流量));
开始攻击量:=CROSS(攻击流量,0) AND C>REF(C,2) AND V>LLV(V,3)*3;
DRAWRECTREL(110,5,410,60,RGB(0,100,200));
DRAWRECTREL(110,5,260,60,RGB(0,250,50));
DRAWRECTREL(110,5,110+CONST(资金流量比*300/100),60,RGB(175,50,250));
DRAWRECTREL(260,23,260+CONST((增强流量比-50)*300/100),42,RGB(250,150,0));
DRAWTEXT_FIX(1,0.000,0.01,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW;
DRAWRECTREL(610,5,910,60,RGB(0,100,200));
DRAWRECTREL(610,5,760,60,RGB(0,250,50));
DRAWRECTREL(610,5,610+CONST(攻击度限制*300/100),60,RGB(175,50,250));
DRAWRECTREL(760,23,760+CONST((增强攻击度-50)*300/100),42,RGB(250,150,0));
DRAWTEXT_FIX(1,0.500,0.01,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.004,0.085,0,DYBLOCK),COLORYELLOW,LINETHICK1;
DRAWTEXT_FIX(C>0,0.08,0.085,0,HYBLOCK),COLORRED,LINETHICK1;
DRAWTEXT_FIX(C>0,0.16,0.085,0,EXTERNSTR(0,1)),COLORWHITE,LINETHICK1;
拉升量:=IF(C>REF(C,1),VOL,0);
昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;
今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORYELLOW,NODRAW;
攻击力度:=今拉升最高值/昨拉升最高值,NODRAW;
均线1:IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),10.5,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW ,LINETHICK1;
AAA:DYNAINFO(5),COLORWHITE,LINETHICK1,POINTDOT;{最高}
BBB:DYNAINFO(6),COLORWHITE,LINETHICK1,POINTDOT;{最低}
CCC:=AAA-BBB;中G:(AAA+BBB)/2,COLORWHITE,LINETHICK1,POINTDOT;{中}
上顶:BBB+CCC*7/8,COLORWHITE,DOTLINE;
阻力:BBB+CCC*2/3,COLORWHITE,LINETHICK1,POINTDOT;
支撑:BBB+CCC/3,COLORWHITE,LINETHICK1,POINTDOT;
下底:BBB+CCC*1/8,COLORWHITE,DOTLINE;
DRAWNUMBER(CURRBARSCOUNT=12,AAA*0.9995,AAA),COLORFFAAFF;
DRAWNUMBER(CURRBARSCOUNT=12,BBB,BBB),COLORDDDD00;
DRAWNUMBER(CURRBARSCOUNT=12,中G,中G),COLORDDDDDD;
DRAWNUMBER(CURRBARSCOUNT=12,上顶,上顶),COLOR00FFFF;
DRAWNUMBER(CURRBARSCOUNT=12,阻力,阻力),COLOR00FFFF;
DRAWNUMBER(CURRBARSCOUNT=12,支撑,支撑),COLOR00FFFF;
DRAWNUMBER(CURRBARSCOUNT=12,下底,下底),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=20,AAA*0.9995,'最高:'),COLORFFAAFF;
DRAWTEXT(CURRBARSCOUNT=20,BBB,'最低:'),COL |