您现在的位置:程序化交易>> 股票公式>> 大智慧>> 大智慧公式>>正文内容

横盘突破[大智慧公式]

相关标签:

 

rcc:=DYNAINFO(3); s2:=sma(c,3,1); s6:=sma(c,5,1);
dk:=10*(s2-s6); kk:=IF(DATATYPE=8,0.95,1);
STICKLINE(dk>0,rcc*kk,rcc*kk+dk,0,1),COLORRED;
STICKLINE(dk<0,rcc*kk,rcc*kk+dk,0,1),COLORCYAN;

XG:HHV(H,480),DOTLINE,COLORRED;
STICKLINE(FILTER(CROSS(C,REF(XG,1)),10),C*0.99,C,8,0),COLORGREEN;{http://www.cxh99.com}
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10),C*0.99,'上突'),COLORYELLOW;

T:=BARSCOUNT(C);
TP:= FILTER( C>=HHV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME0>39600,240) ;
DRAWTEXT(TP,L,'突破'),COLORred;
VERTLINE( tp,1),COLORGREEN,LINETHICK1;
HHV(h,T),DOTLINE,Color00FFFF;

ZLLR:=AMOUNT*(DYNAINFO(95)+DYNAINFO(94))/10000;
ZLLC:=AMOUNT*(DYNAINFO(98)+DYNAINFO(97))/10000;
TDLR:=AMOUNT*DYNAINFO(95)/10000;
TDLC:=AMOUNT*DYNAINFO(98)/10000;
DDLR:=AMOUNT*DYNAINFO(94)/10000;
DDLC:=AMOUNT*DYNAINFO(97)/10000;
ZDLR:=AMOUNT*DYNAINFO(93)/10000;
ZDLC:=AMOUNT*DYNAINFO(96)/10000;
XDLR:=1-(AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93)))/10000;
XDLC:=1-(AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96)))/10000;

SHJM:=SUM(XDLR-XDLC,0);
ZHJM:=SUM(ZDLR-ZDLC,0);
DHJM:=SUM(DDLR-DDLC,0);
JGJM:=SUM(TDLR-TDLC,0);
ZLJM:=SUM(ZLLR-ZLLC,0);

ZLMR:=SUM(ZLLR,0);
ZLMC:=SUM(ZLLC,0);
JGMR:=SUM(TDLR,0);
JGMC:=SUM(TDLC,0);
DHMR:=SUM(DDLR,0);
DHMC:=SUM(DDLC,0);
ZHMR:=SUM(ZDLR,0);
ZHMC:=SUM(ZDLC,0);
SHMR:=SUM(XDLR,0);
SHMC:=SUM(XDLC,0);

DRAWTEXTABS(1,10,'主力流入:'+ NUMTOSTRN(ZLMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,10,'主力流出:'+ NUMTOSTRN(ZLMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,10,'主力净买:'+ NUMTOSTRN(ZLJM,1)),COLORRED,LINETHICK2;
DRAWTEXTABS(1,25,'机构流入:'+ NUMTOSTRN(JGMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,25,'机构流出:'+ NUMTOSTRN(JGMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,25,'机构净买:'+ NUMTOSTRN(JGJM,1)),COLORRED,LINETHICK2;
DRAWTEXTABS(1,40,'大户流入:'+ NUMTOSTRN(DHMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,40,'大户流出:'+ NUMTOSTRN(DHMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,40,'大户净买:'+ NUMTOSTRN(DHJM,1)),COLORRED,LINETHICK2;
DRAWTEXTABS(1,55,'中户流入:'+ NUMTOSTRN(ZHMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,55,'中户流出:'+ NUMTOSTRN(ZHMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,55,'中户净买:'+ NUMTOSTRN(ZHJM,1)),COLORRED,LINETHICK2;
DRAWTEXTABS(1,70,'小股民流入:'+ NUMTOSTRN(SHMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,70,'小股民流出:'+ NUMTOSTRN(SHMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,70,'小股民净买:'+ NUMTOSTRN(SHJM,1)),COLORRED,LINETHICK2;

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容