万:VOL/10000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预测:AA/10000;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000,COLORRED;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000,COLORLIBLUE;
主力净买:(主动买+主动卖)/10000,COLORMAGENTA;
持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE;
持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
上涨家:INDEXADV,COLOR0080FF,NODRAW;
下跌家:INDEXDEC,COLORGREEN,NODRAW;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLOR00FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR007777 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR009999 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00BBBB ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR00DDEE ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.2 , 0 ) , COLORFFFFFF ;
STICKLINE(主动买>=0,VOL,-主动卖,3.2,0),COLOR000033;
STICKLINE(主动买>=0,VOL,-主动卖,2.7,0),COLOR000066;
STICKLINE(主动买>=0,VOL,-主动卖,2.1,0),COLOR000099;
STICKLINE(主动买>=0,VOL,-主动卖,1.5,0),COLOR0000CC;
STICKLINE(主动买>=0,VOL,-主动卖,0.9,0),COLOR0000FF;
STICKLINE(主动买>=0,VOL,-主动卖,0.2,0),COLORCC66FF;
STICKLINE(主动卖<=0,0,-主动卖,3.2,0),COLOR990000;
STICKLINE(主动卖<=0,0,-主动卖,2.7,0),COLORCC0000;
STICKLINE(主动卖<=0,0,-主动卖,2.1,0),COLORFF4400;
STICKLINE(主动卖<=0,0,-主动卖,1.5,0),COLORFF8800;
STICKLINE(主动卖<=0,0,-主动卖,0.9,0),COLORFFCC00;
STICKLINE(主动卖<=0,0,-主动卖,0.2,0),COLORCYAN;
五日: MA(V,5),COLOR40FF00;
三五日: MA(V,35),COLORYELLOW;
一三五日:MA(V,135),COLOR0080FF;
NOTEXT强:IF(五日>MA(五日,2),五日,DRAWNULL),COLORRED;
N:=IF(TOTALBARSCOUNT>=120,120,TOTALBARSCOUNT);
HH0:=HHV(H,N);
LL0:=LLV(L,N);
MM0:=CONST((HH0+LL0)*0.5);
S01:=CONST(IF(REF(C,N-15)>MM0,1.00,-0.08));
S02:=CONST(IF(REF(C,N-15)>MM0,-1,1));
S1:=IF(FINDSTR(EXTERNSTR(0,13),'万元'),S01+(0.08*S02),S01),NODRAW;
S2:=IF(FINDSTR(EXTERNSTR(0,12),'。'),S1+(0.08*S02),S1),NODRAW;
S3:=IF(FINDSTR(EXTERNSTR(0,8),'公告'),S2+(0.08*S02),S2),NODRAW;
S4:=IF(FINDSTR(EXTERNSTR(0,10),','),S3+(0.08*S02),S3);
S5:=IF(FINDSTR(EXTERNSTR(0,15),'-'),S4+(0.08*S02),S4);
S6:=IF(FINDSTR(EXTERNSTR(0,1),','),S5+(0.08*S02),S5);
S7:=IF(FINDSTR(EXTERNSTR(0,14),'-'),S6+(0.08*S02),S6);
S8:=IF(FINDSTR(EXTERNSTR(0,11),'-'),S7+(0.08*S02),S7);
S9:=IF(FINDSTR(EXTERNSTR(0,9),'-'),S8+(0.08*S02),S8);
K:=IF(S1<=0,0.05,IF(S1>=0,-0.05,0));
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=-L2_AMO(0,3)/10000.0;
大S:=-L2_AMO(1,3)/10000.0;
中S:=-L2_AMO(2,3)/10000.0;
小S:=-L2_AMO(3,3)/10000.0;
净流入:=(超B+大B+中B+小B)+(超S+大S+中S+小S);
大宗净流入:=(超B+大B)+(超S+大S);
三日大宗:=SUM(大宗净流入,3);
十日大宗:=SUM(大宗净流入,10);
超大单:=(超B)+(超S);
大单:=(大B)+(大S);
中单:=(中B)+(中S);
小单:=(小B)+(小S);
大宗进:=(超B)+(大B);
大宗出:=(超S)+(大S);
非大宗进:=(中B)+(小B);
非大宗出:=(中S)+(小S);
近3日流向:=SUM(净流入,3);
近10日流向:=SUM(净流入,10);
主力资金线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0,LINETHICK2;
主力买力度:=LARGEINTRDVOL*100/VOL;
主力卖力度:=LARGEOUTTRDVOL*100/VOL;
DRAWRECTREL(0,0,264,999.4,IF(120,RGB(10,0,0),0));
AA1:=CONST(MAX(ABS(大宗净流入),MAX(ABS(三日大宗),ABS(十日大宗)))),NODRAW;
DRAWRECTREL(153,CONST(800-(ABS(大宗净流入)*500/AA1)),188,900,IF(CONST(大宗净流入)>0,RGB(192,17,27),RGB(0,50,0)));
DRAWRECTREL(190,CONST(800-(ABS(三日大宗)*500/AA1)),225,900,IF(CONST(三日大宗)>0,RGB(192,17,27),RGB(0,50,0)));
DRAWRECTREL(227,CONST(800-(ABS(十日大宗)*500/AA1)),262,900,IF(CONST(十日大宗)>0,RGB(192,17,27),RGB(0,50,0)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.155,0.8,0,INTPART(大宗净流入)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.191,0.8,0,INTPART(三日大宗)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.228,0.8,0,INTPART(十日大宗)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.154,0.970,0,'大宗流入'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.192,0.970,0,'三日大宗'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.228,0.970,0,'十日大宗'),COLORYELLOW;
AA01:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;
DRAWRECTREL(2,CONST(800-(ABS(大宗进)*500/AA01)),37,900,IF(CONST(大宗进)>0,RGB(192,17,27),RGB(0,50,0)));
DRAWRECTREL(39,CONST(800-(ABS(大宗出)*500/AA01)),74,900,IF(CONST(大宗出)<0,RGB(0,50,0),RGB(0,50,0)));
DRAWRECTREL(76,CONST(800-(ABS(非大宗进)*500/AA01)),111,900,IF(CONST(非大宗进)>0,RGB(192,17,27),RGB(0,50,0)));
DRAWRECTREL(113,CONST(800-(ABS(非大宗出)*500/AA01)),148,900,IF(CONST(非大宗出)<0,RGB(0,50,0),RGB(0,50,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.006,0.970,0,'主 力 进'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.044,0.970,0,'主 力 出'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.080,0.970,0,'散 户 进'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.117,0.970,0,'散 户 出'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.004,0.8,0,INTPART(大宗进)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.040,0.8,0,INTPART(大宗出)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.078,0.8,0,INTPART(非大宗进)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.113,0.8,0,INTPART(非大宗出)),COLORWHITE;
DRAWRECTREL(2,0,86,100,IF(CONST(主力买力度)>CONST(主力卖力度),RGB(192,17,27),RGB(0,50,0)));
DRAWRECTREL(2,105,86,205,IF(CONST(主力卖力度)>CONST(主力买力度),RGB(0,50,0),RGB(192,17,27)));
DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT('主力买力度:',CON2STR(主力买力度,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.005,0.12,0,STRCAT('主力卖力度:',CON2STR(主力卖力度,2))),COLORWHITE;
DRAWRECTREL(175,0,262,100,IF(CONST(大宗进-REF(大宗进,1))>0,RGB(192,17,27),RGB(0,50,0)));
DRAWRECTREL(175,105,262,205,IF(CONST(大宗出-REF(大宗出,1))>0,RGB(0,50,0),RGB(192,17,27)));
DRAWTEXT_FIX(1,0.180,0.01,0,STRCAT('主力正能量:',CON2STR(大宗进-REF(大宗进,1),2))),COLORWHITE;
DRAWTEXT_FIX(1,0.180,0.12,0,STRCAT('主力负能量:',CON2STR(大宗出-REF(大宗出,1),2))),COLORWHITE;
流入比:=净流入*1000000/AMOUNT;
DRAWRECTREL(87,0,174,100,IF(CONST(流入比)>0,RGB(192,17,27),RGB(0,50,0)));
DRAWTEXT_FIX(1,0.100,0.01,0,STRCAT('资金参与度:',CON2STR(流入比,2))),COLORWHITE;
大宗流入比:=大宗净流入*1000000/AMOUNT;
DRAWRECTREL(87,105,174,205,IF(CONST(大宗流入比)>0,RGB(192,17,27),RGB(0,50,0)));
DRAWTEXT_FIX(1,0.100,0.12,0,STRCAT('机构参与度:',CON2STR(大宗流入比,2))),COLORWHITE; |