无敌天牛[大智慧公式]
相关标签:
dif:=EMA(CLOSE,3)-EMA(CLOSE,13);
dea:=EMA(dif,5);
aa:=EMA(CLOSE,5);
DRAWTEXT(CROSS(dif,dea),LOW*0.98, '▲'),coloryellow,linethick3,align0;
DRAWTEXT(CROSS(dif,dea),LOW*0.94, 'B'),coloryellow,linethick3,align0;
DRAWTEXT(CROSS(dea,dif),HIGH*1.02, '▼'),colorgreen,linethick3,align0;
DRAWTEXT(CROSS(dea,dif),HIGH*1.06, 'S'),colorgreen,linethick3,align0;
B:IF(CROSS(dif,dea),1,0),LINETHICK0;
S:IF(CROSS(dea,dif),1,0),LINETHICK0;
cxh2:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));
cxh3:=((REF(cxh2,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxh4:=((REF(cxh3,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxh5:=((REF(cxh4,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxh6:=((REF(cxh5,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxh7:=((REF(cxh6,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxh8:=((REF(cxh7,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxh9:=((REF(cxh8,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxhA:=((REF(cxh9,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxhB:=((REF(cxhA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxhC:=((REF(cxhB,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxhD:=((REF(cxhC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
STICKLINE((((((((((((cxh2 OR cxh3) OR cxh4) OR cxh5) OR cxh6) OR cxh7) OR cxh8) OR cxh9) OR cxhA) OR cxhB) OR cxhC) OR cxhD),CLOSE,REF(CLOSE,1),8,1),colorred;
cxhE:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));
cxhF:=((REF(cxhE,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxh10:=((REF(cxhF,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxh11:=((REF(cxh10,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxh12:=((REF(cxh11,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxh13:=((REF(cxh12,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxh14:=((REF(cxh13,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxh15:=((REF(cxh14,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxh16:=((REF(cxh15,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxh17:=((REF(cxh16,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
cxh18:=((REF(cxh17,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
cxh19:=((REF(cxh18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
STICKLINE((((((((((((cxhE OR cxhF) OR cxh10) OR cxh11) OR cxh12) OR cxh13) OR cxh14) OR cxh15) OR cxh16) OR cxh17) OR cxh18) OR cxh19),CLOSE,REF(CLOSE,1),8,1),COLORFF9900;
买:(REF((((((((((((cxhE OR cxhF) OR cxh10) OR cxh11) OR cxh12) OR cxh13) OR cxh14) OR cxh15) OR cxh16) OR cxh17) OR cxh18) OR cxh19),1) AND cxh2),LINETHICK0;
drawtext(买,l*0.98,'买'),colorred,ALIGN1,LINETHICK0;
STICKLINE(买,REF(CLOSE,1),REF(CLOSE,2),8,0),COLORyellow;
卖:(REF((((((((((((cxh2 OR cxh3) OR cxh4) OR cxh5) OR cxh6) OR cxh7) OR cxh8) OR cxh9) OR cxhA) OR cxhB) OR cxhC) OR cxhD),1) AND cxhE),LINETHICK0;
STICKLINE(卖,REF(CLOSE,1),REF(CLOSE,2),10,0),COLORBLUE;
drawtext(卖,h*1.02,'卖'),colorblue,ALIGN1;
必买:(B and 买),linethick0;
{程序化交易 www.cxh99.com }
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容