通达信冲击涨停分时图指标


示意图


通达信冲击涨停分时图指标  第1张

通达信冲击涨停分时图指标  第2张

通达信冲击涨停分时图指标  第3张


代码分享




X:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));

主力:=EXPMA(CLOSE/X,20);大户:=EXPMA(CLOSE/X,60);散户:=EXPMA(CLOSE/X,120);

底:=1;1.02,NODRAW;高:=1.03;

DRAWTEXT(CROSS(主力,1.02),C*0.999,'-拉升'),COLORCYAN;

DRAWICON(CROSS(主力,1.04),C,24);

DRAWTEXT(CROSS(主力,1.04),C*0.999,'-冲涨停'),COLORLIMAGENTA;

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;

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;

H1:=MAX(DYNAINFO(3),DYNAINFO(5));

L1:=MIN(DYNAINFO(3),DYNAINFO(6));

P1:=H1-L1;

阻力:=L1+P1*7/8,COLORGREEN;

支撑:=L1+P1*0.5/8,COLORMAGENTA;

DRAWTEXT(LONGCROSS(支撑,C,2),C,'买'),COLOR00FFFF;

DRAWTEXT(LONGCROSS(C,阻力,2),C,'出'),COLORGREEN;

CC:=C;

TT:=BARSCOUNT(CC);

均价:SUM(V*C,0)/SUM(V,0),COLORGREEN;

均:=MA(CC,TT);

DRAWICON(CROSS(均价,均),均价,1);

突破:=REF(EMA(C,20),1);

A1X:=(EMA(C,10)-突破)/突破*100;

多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);

空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);

STICKLINE(A1X>=0,多方,突破,2,0),COLOR0000FF;

STICKLINE(A1X<0,空方,突破,2,0),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,0.04,0,BBB1),COLORRED;

DRAWTEXT_FIX(DD1=1,0,0.12,0,BBB2),COLORGREEN;

DRAWTEXT_FIX(DD1=1,0,0.20,0,BBB3),COLOR00FFFF;

中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100;

DRAWTEXT_FIX(1,0.02,0,0,'☆微信公众号:(海龟社区) ☆'),COLORRED;

DRAWTEXT((比>1.1 AND 中期线<5),C,'--机会'),COLORYELLOW;

DRAWTEXT((比<1.1 AND 中期线>98.0),C,'--风险'),COLORYELLOW;


发表评论 取消回复

电子邮件地址不会被公开。 必填项已用*标注

有些内容是需要登录本网站才可以查看的,若是需要登录的话,欢迎加站长微信“laogong0311”,站长免费帮大家注册账号!

遇到问题?请给我们留言

请填写您的电话号码,我们将回复您电话