通达信量加资金副图公式
源码
套盘:=(1-WINNER(C))*100,COLORGREEN,NODRAW;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
虚拟换:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME/CAPITAL*100,DRAWNULL),COLORGREEN,NODRAW;
换手:VOL/CAPITAL*100,POINTDOT,NODRAW,COLORMAGENTA;
超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),NODRAW;
N:=30;
ZJD:=HHV(净流入,N);
ZJX:=LLV(净流入,N);
CJ:=HHV(V,N);
BEIS:=CJ/(ZJD-ZJX);
值:=CONST(CJ+ABS(ZJX)*BEIS);
STICKLINE(净流入>0 ,值,值+净流入*BEIS,2,0),COLOR0000AA;
STICKLINE(净流入<=0 ,值,值+净流入*BEIS,2,0),COLOR00AA00;
DRAWTEXT(ISLASTBAR=1 AND 净流入<=0,值*1.12,\’ 净流入\’),COLORGREEN;
DRAWTEXT(ISLASTBAR=1 AND 净流入>0,值*0.88,\’ 净流入\’),COLORRED;
VOLUME:VOL,VOLSTICK;
V1:=MA(VOLUME,5);
V2:=MA(VOLUME,10);
V3:=MA(VOLUME,30);
{空中加油}
STICKLINE(CREF(C,1),0,V,2,0),COLORMAGENTA;
虚拟成交:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟成交,0,-1,-1),COLORC0C0C0;
【手】:VOL,NODRAW,VOLSTICK;
标准:HHV(V,100)*0.382,NODRAW;
量倍:V/REF(V,1),NODRAW,COLOR0000DD;
STICKLINE(IF(V>REF(HHV(V,239),1),0.99,1)<1,V,0,-1,1),COLORDD00DD;
STICKLINE(IF(V>REF(HHV(V,239),1),0.99,1)C,V,0,-1,0),COLORDD00DD;
STICKLINE(IF(V<REF(LLV(V,119),1),0.99,1)<1,V,0,-1,0),COLOR00DD00;
STICKLINE(IF(V<REF(LLV(V,239),1),0.99,1)<1,V,0,-1,0),COLORDD0000;
STICKLINE(V/REF(V,1)>2 ,0,V/2,2,0),COLORDDDDDD;
DRAWICON(LAST(V>REF(V,1),2,0),V/3,1);
DRAWICON(LAST(V>标准,2,0) AND C>O,0,38);
DRAWBAND(标准,RGB(250,250,0),标准,RGB(0,0,0));
DRAWRECTREL(0,0,225,999.2,IF(120,RGB(0,10,10),0));
TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);
超大单:=(超B)-(超S);
大单:=(大B)-(大S);
中单:=(中B)-(中S);
小单:=(小B)-(小S);
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;
DRAWRECTREL(0,CONST(880-(ABS(净流入)*500/DAZHI)),35,930,IF(CONST(净流入)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(39,CONST(880-(ABS(超大单)*500/DAZHI)),82,930,IF(CONST(超大单)>0,RGB(102,0,204),RGB(23,125,255)));
DRAWRECTREL(85,CONST(880-(ABS(大单)*500/DAZHI)),129,930,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(133,CONST(880-(ABS(中单)*500/DAZHI)),175,930,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(180,CONST(880-(ABS(小单)*500/DAZHI)),222,930,IF(CONST(小单)>0,RGB(255,0,0),RGB(0,128,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,1,0,\’净流入\’),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.046,1,0,\’超大单\’),COLOR660099;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.099,1,0,\’大单\’),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.141,1,0,\’中单\’),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.191,1,0,\’小单\’),COLORGREEN;
{M:=0.53;M1:=0.33;}M:=0.58;M1:=0.39;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.001,0.790,0,CEILING(净流入));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.054,0.790,0,CEILING(超大单));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.093,0.790,0,CEILING(大单));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.137,0.790,0,CEILING(中单));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.194,0.790,0,CEILING(小单));
大宗进:=(超B)+(大B),NODRAW;
大宗出:=(超S)+(大S),NODRAW;
非大宗进:=(中B)+(小B),NODRAW;
非大宗出:=(中S)+(小S),NODRAW;
总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;
总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;
大宗进限制:=IF((超B+大B)=0,0,大宗进),NODRAW;
大宗出限制:=IF((超S+大S)=0,0,大宗出),NODRAW;
非大宗进限制:=IF(中B+小B=0,0,非大宗进),NODRAW;
非大宗出限制:=IF(中S+小S=0,0,非大宗出),NODRAW;
资金流向买:=大宗进限制+非大宗进限制;
资金流向卖:=大宗出限制+非大宗出限制;
流入比:=净流入*1000000/AMOUNT,NODRAW;
大宗净流入:=(超B+大B)-(超S+大S),NODRAW;
大宗流入比:=大宗净流入*1000000/AMOUNT,NODRAW;
主买A:=ACTINVOL,COLORRED,NODRAW;
主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;
主买:主买A*100/(主买A+主卖A),NODRAW,COLORRED;
主卖:主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;
XX:=CONST(主买*500/(主买+主卖)+50),NODRAW;
DRAWRECTREL(50,0,CONST(主买*500/(主买+主卖)+0),60,RGB(230,35,0));
DRAWRECTREL(50,70,CONST(主卖*500/(主买+主卖)+0),130,RGB(0,104,0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.005,0,0,\’主买\’),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.005,0.070,0,\’主卖\’),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,CONST(主买*500/(主买+主卖)+05)/1000,0.001,0,ROUND(主买));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,CONST(主卖*500/(主买+主卖)+05)/1000,0.070,0,ROUND(主卖));
成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;
机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW;
DRAWRECTREL(00,150,225,236,RGB(0,250,50));
DRAWRECTREL(00,150,225,236,RGB(200,0,50));
DRAWRECTREL(00,150,50+CONST(大宗流入比*160/100),236,RGB(175,50,250));
DRAWTEXT_FIX(1,0.22,0.14,1,STRCAT(STRCAT(\’主力介入度 \’,CON2STR(大宗流入比,0)),\’ \’)),COLORYELLOW;
DRAWRECTREL(00,245,225,329,RGB(200,0,50));
DRAWRECTREL(00,245,225,329,RGB(200,0,50));
DRAWRECTREL(00,245,50+CONST(流入比*160/100),329,RGB(175,50,250));
DRAWTEXT_FIX(1,0.22,0.25,1,STRCAT(STRCAT(\’资金介入度 \’,CON2STR(流入比,0)),\’ \’)),COLORYELLOW;
{大型股票公式,股票编程,股票技术教程投稿平台-你就是股神,网址:694.cn 备注:如果正文内容没有显示完全的,说明在附件中,请点击‘立即下载’下载该附件!}