您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信公式>>正文内容

牛眼盯盘 主力建仓量(通达信公式 主图指标公式 公式、源码 测试图)[通达信公式]

相关标签:

 

{牛眼盯盘}DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORWHITE;DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORWHITE;DRAWTEXT_FIX(1,0.005,0.06,0,'所属概念:'),COLORWHITE;DRAWTEXT_FIX(1,0.06,0.06,0,GNBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.12,0,'所属板块:'),COLORWHITE;DRAWTEXT_FIX(1,0.06,0.12,0,DYBLOCK),COLORMAGENTA;DRAWTEXT_FIX(1,0.11,0.12,0,HYBLOCK),COLORRED;STICKLINE(C>REF(C,1),H,L,0,1),COLOR0000FF;STICKLINE(C>REF(C,1),C,O,3.2,0),COLOR000033;STICKLINE(C>REF(C,1),C,O,2.7,0),COLOR000066;STICKLINE(C>REF(C,1),C,O,2.1,0),COLOR000099;STICKLINE(C>REF(C,1),C,O,1.5,0),COLOR0000CC;STICKLINE(C>REF(C,1),C,O,0.9,0),COLOR0000FF;STICKLINE(C>REF(C,1),C,O,0.3,0),COLORCC66FF;STICKLINE(C<REF(C,1),H,L,0,1),COLORFF9900;STICKLINE(C<REF(C,1),C,O,3.2,0),COLOR990000;STICKLINE(C<REF(C,1),C,O,2.7,0),COLORCC0000;STICKLINE(C<REF(C,1),C,O,2.1,0),COLORFF4400;STICKLINE(C<REF(C,1),C,O,1.5,0),COLORFF8800;STICKLINE(C<REF(C,1),C,O,0.9,0),COLORFFCC00;STICKLINE(C<REF(C,1),C,O,0.3,0),COLORFFFF00;STICKLINE(C=REF(C,1),H,L,0,1),COLORFFFFFF;STICKLINE(C=REF(C,1),C,O,3.2,0),COLOR555555;STICKLINE(C=REF(C,1),C,O,2.7,0),COLOR777777;STICKLINE(C=REF(C,1),C,O,2.1,0),COLOR999999;STICKLINE(C=REF(C,1),C,O,1.5,0),COLORBBBBBB;STICKLINE(C=REF(C,1),C,O,0.9,0),COLORDDDDDD;STICKLINE(C=REF(C,1),C,O,0.3,0),COLORFFFFFF;AA:=CLOSE/REF(C,1)>=1.09;STICKLINE(AA,L,H,0,1),COLOR00FFFF;STICKLINE(AA,O,C,3.2,0),COLOR0066FF;STICKLINE(AA,O,C,2.7,0),COLOR00AAFF;STICKLINE(AA,O,C,2.1,0),COLOR00DDFF;STICKLINE(AA,O,C,1.5,0),COLOR00FFFF;STICKLINE(AA,O,C,0.9,0),COLOR99FFFF;STICKLINE(AA,O,C,0.3,0),COLORFFFFFF;AAA:=(3*C+H+L+O)/6;cxh1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;cxh2:=(HHV(cxh1,5)+HHV(cxh1,10)+HHV(cxh1,20))/3;cxh3:=(LLV(cxh1,5)+LLV(cxh1,10)+LLV(cxh1,20))/3;cxh4:=(HHV(cxh2,5)+HHV(cxh2,10)+HHV(cxh2,20))/3;cxh5:=(LLV(cxh3,5)+LLV(cxh3,10)+LLV(cxh3,20))/3;cxh6:=(LLV(cxh1,2)+LLV(cxh1,4)+LLV(cxh1,6))/3;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>cxh1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则 AND 突破;条件成立:=FILTER(成立,3);DRAWTEXT(条件成立,L*0.99,'牛眼'),COLORYELLOW;大盘指数:INDEXC,NODRAW,COLORLIMAGENTA ;大盘指数涨跌:(大盘指数-REF(大盘指数,1)),NODRAW;涨家数:INDEXADV,NODRAW,COLORLIMAGENTA ;跌家数:INDEXDEC,NODRAW,COLORGREEN;C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2.5,0),COLORYELLOW;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2.5,0),COLORBLUE;中轴线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,LINETHICK2,COLORYELLOW;MA3:MA(CLOSE,3),COLORCYAN,LINETHICK2;{EMA17:EMA(CLOSE,17);EMA50:EMA(CLOSE,50);}{MA321:MA(CLOSE,321);}{极点H}A1:=REF(H,TS)=HHV(H,2*TS+1);B1:=FILTER(A1,TS);C1:=BACKSET(B1,TS+1);HD:=FILTER(C1,TS);波峰: REF(H,BARSLAST(HD)),POINTDOT,COLOR990099;{极点L}AL1:=REF(L,TS)=LLV(L,2*TS+1);BL1:=FILTER(AL1,TS);CL1:=BACKSET(BL1,TS+1); LD:=FILTER(CL1,TS);波谷: REF(L,BARSLAST(LD)),POINTDOT,COLOR009900;T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);STICKLINE(T1,波峰,波峰,10,0),COLOR009911,LINETHICK2;STICKLINE(T2,波谷,波谷,10,0),COLOR044537;{主力建仓量}cxh1:=REF(LOW,1);cxh2:=SMA(ABS(LOW-cxh1),3,1)/SMA(MAX(LOW-cxh1,0),3,1)*100;cxh3:=EMA(IF(CLOSE*1.2,cxh2*10,cxh2/10),3);cxh4:=LLV(LOW,38);cxh5:=HHV(cxh3,38);cxh6:=IF(LLV(LOW,90),1,0);cxh7:=EMA(IF(LOW<=cxh4,(cxh3+cxh5*2)/2,0),3)/618*cxh6;cxh8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;cxh9:=SMA(cxh8,13,8);底线:0,COLOR00FFFF;主力吸货:cxh7,COLOR0000FF;吸筹1:STICKLINE(cxh7,0,cxh7,6,0),COLOR0000FF;吸筹2:STICKLINE(cxh7,0,cxh7,5,0),COLOR6600FF;吸筹3:STICKLINE(cxh7,0,cxh7,4,0),COLORBB00FF;吸筹4:STICKLINE(cxh7,0,cxh7,3,0),COLORFF00FF;吸筹5:STICKLINE(cxh7,0,cxh7,2,0),COLORFF33FF;吸筹6:STICKLINE(cxh7,0,cxh7,1,0),COLORFF66FF;吸筹7:STICKLINE(cxh7,0,cxh7,0,0),COLORFF99FF;风险:CEILING(SMA(cxh9,13,8)),LINETHICK2,COLORGREEN;涨跌:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,COLORRED;{程序化交易 www.cxh99.com }

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容