精准买卖[大智慧公式]
相关标签:
有网友要我的主图,现在分享出来,希望大家能喜欢。里面的B、S 点用到未来函数,仅供参考。
源码如下:
{精准买卖}
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;{压力线}
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;{支撑线}
cxh3:=LLV(H,240);
cxh4:=100*(C-cxh3)/cxh3;
cxh5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;
cxh6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;
cxh7:=0;
cxh8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;
cxh9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;
cxhA:=BARSCOUNT(C);
cxhB:=cxh8<20 AND cxh9<23 AND cxhA>35;
cxhC:=cxhB AND COUNT(cxhB,1)=1;
cxhD:=EMA(C,21)-EMA(C,8);
cxhE:=EMA(cxhD,5);
cxhF:=TROUGH(3,6,1)<4 AND CROSS(cxhD,cxhE);
cxh10:=IF(TROUGH(3,16,1)=0 AND H>L+0.04,4,0);
cxh11:=ZIG(3,6)>REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2)
AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
cxh12:=ZIG(3,6)<REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2)
AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
cxh13:=ZIG(3,22)>REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
cxh14:=ZIG(3,22)<REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
cxh15:=ZIG(3,51)>REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
cxh16:=ZIG(3,51)<REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
cxh17:=ZIG(3,72)>REF(ZIG(3,72),1)
AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
cxh18:=ZIG(3,72)<REF(ZIG(3,72),1)
AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
cxh19:=EMA(C,2)-EMA(C,150);
cxh1A:=EMA(cxh19,100);
cxh1B:=2*(cxh19-cxh1A);
cxh1C:=POW(cxh1B,3)*0.1+POW(cxh1B,1);
cxh1D:=SQRT(SQRT(L*H*O*C));
cxh1E:=EMA(cxh1D*0.97,3);
cxh1F:=(H+L+C)/3;
cxh20:=(cxh1F-MA(cxh1F,14))/(0.015*AVEDEV(cxh1F,14));
cxh21:=CROSS(cxh1E,L);
买点1:=cxh10;
买点2:=(cxh11+cxh13+cxh15+cxh17);
卖点1:=(cxh12+cxh14+cxh16+cxh18);
cxh22:=买点1 AND cxhF AND cxhC AND cxh21 AND cxh4<0
AND cxh5=0 AND cxh6=0 AND cxh20<(-110);
cxh1:=MA(C,5);
cxh2:=MA(C,10);
cxh31:=MA(C,30);
cxhB1:=SUM(C*V*100,28)/SUM(V*100,28);
cxhC1:=INTPART(cxhB1*100)/100;
cxhD1:=EMA(C,5)-EMA(C,10);
cxhE1:=EMA(cxhD1,9);
cxh131:=REF(cxhE1,1);
cxh141:=cxhE1;
cxh151:=cxh141-cxh131;
cxh161:=REF(cxhD1,1);
cxh171:=cxhD1;
cxh181:=cxh171-cxh161;
cxh191:=O;
cxh1A1:=C;
drawtext(买点1>0,L-0.15,'B'),LINETHICK2,ALIGN1,colorred;
drawtext(买点2>0,L-0.15,'B'),LINETHICK2,ALIGN1,COLORFF00FF;
drawtext(卖点1>0,H+0.05,'S'),LINETHICK2,ALIGN1,COLORYELLOW,valign2;{程序化交易 www.cxh99.com }
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容