通达信虎哥分时主图指标

[复制链接]
查看80 | 回复0 | 2021-8-20 10:51:52 | 显示全部楼层 |阅读模式

以下是通达信虎哥分时主图指标(无源码的请下载附件导入)

攻击量:=((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)));
资金流入:=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.250,0.8,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORCYAN;
 DRAWTEXT_FIX(1,0.000,0.8,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORCYAN;

A1:=(VOL/CLOSE)/3;
 A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
 A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
 A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
 A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
 A6:=((A2+A3)+A4)+A5;{www.goodgupiao.com}
 A7:=IF((BARSTATUS=2),((100*A2)/A6),0);
 A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));
 A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));
 A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));
机构买盘:=(A2),LINETHICK2;
机构卖盘:=(A3),LINETHICK2;
散户买盘:=(A4);
散户卖盘:=(A5);
 DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORRED;
 DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;
 DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORRED;
 DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;

量价:=(VOL/CLOSE)/3;
 B2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
 B3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);
 B6:=B2+B3;DD1:=1;比:=B2/B3;
 BBB1:=STRCAT(STRCAT('买= ',CON2STR((100*B2)/B6,0)),'%');
 BBB2:=STRCAT(STRCAT('卖= ',CON2STR((100*B3)/B6,0)),'%');
 BBB3:=STRCAT(STRCAT('差= ',CON2STR((100*(B2-B3))/B6,0)),'%');
 DRAWTEXT_FIX(DD1=1,0.88,0.62,0,BBB1),COLORWHITE;
 DRAWTEXT_FIX(DD1=1,0.88,0.70,0,BBB2),COLORGREEN;
 DRAWTEXT_FIX(DD1=1,0.88,0.78,0,BBB3),COLOR00FFFF;

{支撑}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
 L1:=MIN(DYNAINFO(3),DYNAINFO(6));
 P1:=H1-L1;
阻力:L1+P1*7/8,COLORWHITE;
支撑:L1+P1*0.5/8,COLORYELLOW ;
现价:=C;
 DRAWICON(LONGCROSS(支撑,现价,2),支撑*1.001,7);
 DRAWICON(LONGCROSS(现价,阻力,2),现价,8);

{跟庄涨停}
A12:=(DVOL/C)/2,NODRAW;
 A22:=SUM(IF(A12>100 AND CLOSE>REF(CLOSE,1),A12,0),0);
 A32:=SUM(IF(A12>100 AND CLOSE<REF(CLOSE,1),A12,0),0);
 A42:=SUM(IF(A12<100 AND CLOSE>REF(CLOSE,1),A12,0),0);
 A52:=SUM(IF(A12<100 AND CLOSE<REF(CLOSE,1),A12,0),0);
 A62:=A22+A32+A42+A52;
机买:=(A22/A62)*100,LINETHICK2,COLORRED;
机卖:=(A32/A62)*100,LINETHICK2,COLORGREEN;
散买:=(A42/A62)*100,LINETHICK0;
散卖:=(A52/A62)*100,LINETHICK0;
主力差:=机买-机卖,LINETHICK2,NODRAW;
散户差:=散买-散卖,LINETHICK0,NODRAW;
 DRAWTEXT(主力差>0 AND REF(主力差,1)<=0,C,'●'),COLORYELLOW;

QW1:=(HIGH+LOW+CLOSE*2)/4;
 QW3:=EMA(QW1,10);
 QW4:=STD(QW1,10);
 QW5:=(QW1-QW3)*100/QW4;
 QW6:=EMA(QW5,5);
涨:=EMA(QW6,10)+100/2-5,LINETHICK2, COLORYELLOW;
跌:=EMA(涨,4),LINETHICK2,COLORRED;
获利了结:=IF(涨>160,120,160),COLORFFFF00,LINETHICK2;
出局:=IF(涨>180,140,190),COLORYELLOW,LINETHICK2;
观注:=IF(CROSS(涨,跌) AND 涨<90 AND 涨>0,30,-80),COLORE500E5;
介入:=IF(CROSS(涨,跌) AND 涨<-60 ,60,-90),COLORYELLOW,LINETHICK2;
预警:=IF(CROSS(涨,跌) AND 涨<-7,30,-10),COLORGREEN,CIRCLEDOT;
卖:=涨>180 AND REF(涨,1)<180;
 DRAWTEXT(卖,C,'●出 局') COLORGREEN;

均价:=SUM(AMOUNT,0)/SUM(VOL,0)/100;
 LL:=C<REF(C,1) AND C/均价<(1-0.008);
 LL1:=CROSS(SUM(LL,0),0.5);
 BB1:=SUM(LL1,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL1)),0.5);
 Y1:=BARSLAST(BB1);
底1:=REF(C,Y1+1);
 LL2:=CROSS(SUM(LL AND C<底1*0.99,0),0.5);
 BB2:=SUM(LL2,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL2)),0.5);
低吸:=BB1 OR BB2 ;
 DRAWTEXT(低吸,C,'●低吸') COLORYELLOW;

648399997.jpg

648399997.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则