定海神针-(风头很劲的掌股专家指标公式--[大智慧公式]
相关标签:
定海神针
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=IF(CROSS(diff,dea) and diff > 0 and dea >0,0,1);
能量线:IF (A2,A1/10,A1/100);
cxh1:=EMA(MA(IF(CLOSE>OPEN,(CLOSE-OPEN)*VOL,IF(CLOSE<OPEN,(CLOSE-OPEN)*VOL,0)),5),1);
cxh2:=EMA(MA(IF(CLOSE>REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,IF(CLOSE<REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,0)),5),1);
cxh3:=EMA(MA(IF(OPEN>REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,IF(OPEN<REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,0)),5),1);
cxh4:=EMA(MA(IF(CLOSE<OPEN,(OPEN-CLOSE)*VOL,IF(CLOSE>OPEN,(OPEN-CLOSE)*VOL,0)),10),1);
cxh5:=EMA(MA(IF(CLOSE<REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,IF(CLOSE>REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1);
cxh6:=EMA(MA(IF(OPEN<REF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,IF(OPEN>REF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1);
DX:=(cxh1+cxh2+cxh3)/3/100;
CX:=(cxh4+cxh5+cxh6)/3/100;
B1:=BARSLAST(REF(CROSS(DX,CX),1));
买:IF (CROSS(DX,CX) AND 能量线 >0.5 and 能量线 < 2 and diff > REF(diff,1) AND B1 >5,0,-7);
{卖:IF(A1>2 ,-7,0);}
Sar1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
Sar2:=SMA(SMA(Sar1,3,1),3,1);
Sar3:=EMA(Sar2,5);
Sar4:=3*Sar2-2*Sar3;
Sar5:=IF(Sar4 < REF(Sar4,1),1,0);
buyp:=REF(CLOSE,BARSLAST(REF(买=0,1)))*1.07;
buyk:=REF(CLOSE,BARSLAST(REF(买=0,1)))*0.9;
buyd:=BARSLAST(REF(买=0,1));
卖1:=IF( HIGH > buyp and买=-7,1,0);{已获利}
卖2:=IF(Sar5 and买=-7,1,0);{注意顶部}
卖3:=IF(buyd > 10 and买=-7 ,1,0);{超出短线操作持股天数}
卖4:=IF(LOW < buyk and买=-7,1,0);{听天由命吧~已亏损10%}
x11:=买=0;
x12:=卖1=1;
a11:=BARSLAST(买=0);{买成立到现在的周期数}
x13:=IF(卖1=1 Or 卖2=1 Or 卖3=1 Or 卖4=1,1,0);
a12:=COUNT(x13=1,a11);
s1:DRAWTEXT(卖1=1 and a12=2,1,'已获利'),COLORRED;
s2:DRAWTEXT(卖1=0 and 卖2=1 and a12=2,1,'注意顶部'),COLORRED;
s3:DRAWTEXT(卖1=0 and 卖2=0 and 卖3=1 and a12=2,1,'超出持股天数'),COLORRED;
s4:DRAWTEXT(卖1=0 and 卖2=0 and 卖3=0 and 卖4=1 and a12=2,1,'止损'),COLORGREEN;{http://www.cxh99.com}
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容