旨在优选强中取公式 指标 选股 源码[通达信公式]
指标公式源码分析及使用说明参考:
源码:
N1:=7;M1:=5;M2:=10;M3:=20;M4:=60;M5:=120;M6:=250;MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA6:MA(CLOSE,M6);MA5:MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20),COLOR33FFFF;cxh1:=REF(C,1);cxh2:=SMA(MAX(C-cxh1,0),N1,1)/SMA(ABS(C-cxh1),N1,1)*1000;cxh3:=cxh2<=LLV(cxh2,N1),cxh2,1;MA30:MA(C,30),COLORFFFFFF,LINETHICK2;MA55:MA(C,55),COLORCCFF66,LINETHICK1;cxh4:=cxh2=cxh3;cxh5:=cxh2<REF(cxh2,1);MA120:MA(C,120),COLORFF0066;MA250:MA(C,250),COLOR0000FF;DRAWICON(cxh4 AND cxh5,L*0.98,1);DRAWTEXT(cxh4 AND cxh5,L*0.95,'买')COLORRED;RSV:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BM1:=(C+O)/2;BM2:=COUNT(MA30>REF(MA30,1),5)=5 OR COUNT(MA55>REF(MA55,1),5)=5;BM3:=COUNT(MA5/MA30>REF(MA5/MA30,1),5)=5;cxh6:=(2*C+H+L)/4;cxh7:=EMA(EMA(EMA(cxh6,4),4),4);BM4:=(BM1*2-REF(BM1,3));BM5:=C/MA(C,5);BM6:=REF(BM1/MA(BM1,5),1);BM7:=COUNT(BM6>BM5,3)=3;BM8:=C>O;cxh8:=(cxh7-REF(cxh7,1))/REF(cxh7,1)*100;cxh9:=MA(cxh8,3)+0.03;cxh10:=MA(cxh8,1);买:=(CROSS(BM4,MA5) OR CROSS(BM4,MA30)) AND BM2 AND BM8 AND C>MA(C,60);优选:=买 AND (BM7 OR REF(BM7,1) OR REF(BM7,2)),COLORYELLOW,LINETHICK2;STICKLINE(买,O,C,4,1),COLOR00FF00,LINETHICK2;DRAWTEXT(买 ,LLV(L,2)*0.98,'▲'),COLORYELLOW;DRAWICON(CROSS(cxh9,cxh10) AND J>65,H*1.02,15),COLORGREEN;DRAWTEXT(CROSS(cxh9,cxh10) AND J>65,H*1.05,'卖'),COLORYELLOW;AA:=BARSCOUNT(C);AH:=HHV(H,120);AL:=LLV(L,120);A0:=(AH-AL)/30;DRAWTEXT(优选,LLV(L,2)*0.93, '短线追'),COLOR00FF66;DRAWICON(优选,LLV(L,2)*0.96, 1);STICKLINE(优选,O,C,4,1),COLORYELLOW,LINETHICK2;cxh2S:=(2*CLOSE+HIGH+LOW)/4;cxh3S:=IF(YEAR>=2099 AND MONTH>2,0,1);cxh4S:=LLV(LOW,5); cxh5S:=HHV(HIGH,4);BM9:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;涨:IF(MA(CLOSE,5)>REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORRED,LINETHICK2;平:IF(MA(CLOSE,5)=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORYELLOW,LINETHICK3;跌:IF(MA(CLOSE,5)<REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGREEN,LINETHICK2;散户:=EMA((cxh2S-cxh4S)/(cxh5S-cxh4S)*100,4)*cxh3S;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*cxh3S;BM10:=3*SMA(BM9,3,1)-2*(SMA(SMA(BM9,3,1),3,1));DRAWICON(CROSS(90,BM10),H*1.03,2);DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*0.95,'吸货'),COLORRED;DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*0.98,'买点'),COLORLICYAN;{程序化交易 www.cxh99.com }
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容