当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:波段王,龙行千股VOL,分时资金

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、波段王,叠加概念板块行业

波段操作,变色彩带,还可以看到股票所属概念板块行业

使用方法:
粉红色时持股 ,绿色卖出持币

MID:=(3*CLOSE+LOW+HIGH+OPEN)/6;
KX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,19))/210;
MX:MA(KX,6);
DRAWBAND(KX,RGB(255,0,255),MX,RGB(0,255,127));
{DRAWBAND(REF(KX,5),RGB(255,0,255),REF(MX,5),RGB(0,255,127));}
MA20:MA(C,20),COLORRED;
MA60:MA(C,60),COLORGREEN,LINETHICK3;
COST50:COST(50),DOTLINE,COLORYELLOW;
COST90:COST(90),DOTLINE,COLORBLUE;
DYBLOCK1:=STRSPACE(DYBLOCK);
HYBLOCK1:=STRSPACE(HYBLOCK);
FGBLOCK1:=STRSPACE(FGBLOCK);
ZHBLOCK1:=STRSPACE(ZHBLOCK);
GNBLOCK1:=STRSPACE(GNBLOCK);
板块类别:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FGBLOCK),ZHBLOCK),GNBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,板块类别),COLORWHITE;




2、龙行千股VOL

龙行千股VOL

公式解释用法:
1,黄色量柱 大于120日均线的时候,表示股票走势很强;
2,红色 60日均线大于120日均线,表示股票走势更强;
3,灰色表示地量 。( 股 民 学 院 : http://www.58188.com )
4,地量线 大于60日均线或120日均线 庄家嫌疑出货 或者对倒 小心

{龙行千股VOL}
成交量1:VOL/CAPITAL*100,VOLSTICK;
VAR1:=MIN(REF(成交量1,1),REF(成交量1,2));
VAR2:=MIN(REF(成交量1,3),REF(成交量1,4));
VAR3:=MIN(REF(成交量1,5),REF(成交量1,6));
VAR4:=MIN(REF(成交量1,7),REF(成交量1,8));
VAR5:=MIN(REF(成交量1,9),REF(成交量1,10));
VAR6:=MIN(REF(成交量1,11),REF(成交量1,12));
VAR7:=MIN(REF(成交量1,13),REF(成交量1,14));
VAR8:=MIN(REF(成交量1,15),REF(成交量1,16));
VAR9:=MIN(MIN(VAR1,VAR2),MIN(VAR3,VAR4));
VAR10:=MIN(MIN(VAR5,VAR6),MIN(VAR7,VAR8));
VAR11:=MIN(VAR9,VAR10);
HX60:MA(成交量1,60);
HX120:MA(成交量1,120);
VAR12:=成交量1>HX120;
VAR13:=成交量1>HX120 AND HX60>HX120;
AB1:DRAWBAND(HX60,RGB(250,99,71),HX120,RGB(50,250,50));
STICKLINE(VAR12,0,成交量1,1.5,0),COLORYELLOW;
STICKLINE(VAR13,0,成交量1,0.5,0),COLORRED;
芝麻量线:VAR11,COLORRED,LINETHICK2;
VAR14:=成交量1<芝麻量线;
STICKLINE(VAR14,(-1),成交量1,1.5,0),COLORCYAN;



3、分时资金

公式是原创,仿造收费版本的分时资金,无未来函数,
同时附上今天关注的股票的分时图( 股 民 学 院 : http://www.58188.com )

 
A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-VOL/CAPITAL*100,0)),0);
成交额:=V*C/100,NODRAW;
A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((ISLASTBAR),((100*A2)/A6),0);
A8:=IF((ISLASTBAR),((100*A3)/A6),0);
A9:=IF((ISLASTBAR),((100*A4)/A6),0);
A10:=IF((ISLASTBAR),((100*A5)/A6),0);
机构买:(A2),LINETHICK3,COLORRED;
机构卖:(A3),LINETHICK3,COLORGREEN;
机构进出:=机构买-机构卖,NODRAW;
散户买:(A4),COLOR5555FF;
散户卖:(A5),COLORCYAN;
散户进出:=散户买-散户卖,,COLORWHITE,NODRAW;
强势:((100*A2)/A6>50);
STICKLINE(强势,机构买*1.02,机构买*1.1,3,0),COLORYELLOW;
拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18;
STICKLINE(拉升,机构买*1.1,机构买*1.2,3,0),COLORRED;
DRAWTEXT(ISLASTBAR=1,机构买*0.95,''),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR=1,机构卖*0.95,''),LINETHICK2,COLORFFFF55;
Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
DRAWICON(CROSS((C/Q2),1.03),机构买,5);
XG:C/Q2;
DD1:=1;
AAA1:=STRCAT(STRCAT('机构买入',CON2STR((100*A2)/A6,0)),'%');
AAA2:=STRCAT(STRCAT('机构卖出',CON2STR((100*A3)/A6,0)),'%');
AAA0:=STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%');
AAA3:=STRCAT(STRCAT('散户买入',CON2STR((100*A4)/A6,0)),'%');
AAA4:=STRCAT(STRCAT('散户卖出',CON2STR((100*A5)/A6,0)),'%');
AAA5:=STRCAT(STRCAT('散户总买入',CON2STR((100*(A4-A5))/A6,0)),'%');
DRAWTEXT_FIX(DD1=1,0.001,0.05,0,AAA1),COLORYELLOW;
DRAWTEXT_FIX(DD1=1,0.001,0.15,0,AAA2),COLORYELLOW;
DRAWTEXT_FIX(DD1=1,0.001,0.25,0,AAA3),COLORYELLOW;
DRAWTEXT_FIX(DD1=1,0.001,0.35,0,AAA4),COLORYELLOW;
DRAWTEXT_FIX(DD1=1,0.001,0.45,0,AAA0),COLORYELLOW;
DRAWTEXT_FIX(DD1=1,0.001,0.55,0,AAA5)COLORYELLOW;
主力净买额:=(机构进出+散户进出)/成交额,NODRAW;
AAA6:=STRCAT(STRCAT('主力净买额',CON2STR(主力净买额,0)),'%');
DRAWTEXT_FIX(DD1=1,0.14,0.05,0,AAA6),COLORMAGENTA,LINETHICK1;

上一篇:通达信公式下载:犀牛捉妖系统,极牛主图

下一篇:通达信源码:起爆成妖,控鹤擒龙,告别韭菜