您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

同花顺狙击手公式源码[同花顺公式]

同花顺狙击指标,低买高买,可能信号漂移,非常简单易用,仅作参考

 

源代码:

 
N:=75;P:=5;P1:=10;
M1:=4;M2:=18;M3:=80;
A1:=REF(HIGH,P)=HHV(HIGH,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);
E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
F1:=E1>REF(E1,1);
//www.cxh99.com
A2:=REF(LOW,P)=LLV(LOW,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);
E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
F2:=E2>REF(E2,1);
AA1:=REF(HIGH,P1)=HHV(HIGH,2*P1+1);
BB1:=FILTER(AA1,P1);
CC1:=BACKSET(BB1,P1+1);
DD1:=FILTER(CC1,P1);
EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);
FF1:=EE1>REF(EE1,1);
AA2:=REF(LOW,P1)=LLV(LOW,2*P1+1);
BB2:=FILTER(AA2,P1);
CC2:=BACKSET(BB2,P1+1);
DD2:=FILTER(CC2,P1);
EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);
FF2:=EE2>REF(EE2,1);
STICKLINE(C>=O,C,O,3,0),COLOR000045;
STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
STICKLINE(C<O,C,O,3,0),COLOR353500;
STICKLINE(C<O,C,O,2.5,0),COLOR454500;
STICKLINE(C<O,C,O,2,0),COLOR555500;
STICKLINE(C<O,C,O,1.5,0),COLOR656500;
STICKLINE(C<O,C,O,1,0),COLOR757500;
STICKLINE(C<O,C,O,0.5,0),COLOR858500;
STICKLINE(C<O,H,L,0,0),COLOR959500;
高:=REFDATE(HHV(HIGH,N),DATE);
低:=REFDATE(LLV(LOW,N),DATE);
H1:=高-(高-低)*0.191;
H2:=高-(高-低)*0.382;
H3:=高-(高-低)*0.5;
H4:=高-(高-低)*0.618;
H5:=高-(高-低)*0.809;
DRAWTEXT_FIX(CURRBARSCOUNT=10,高,'高'),COLORGREEN;//http://www.cxh99.com
DRAWTEXT_FIX(CURRBARSCOUNT=10,H1,'809'),colorcyan;
DRAWTEXT_FIX(CURRBARSCOUNT=10,H2,'618'),colorgray;
DRAWTEXT_FIX(CURRBARSCOUNT=10,H3,'中'),coloryellow;
DRAWTEXT_FIX(CURRBARSCOUNT=10,H4,'382'),colorlired;
DRAWTEXT_FIX(CURRBARSCOUNT=10,H5,'191'),colormagenta;
DRAWTEXT_FIX(CURRBARSCOUNT=10,低,'低'),colorred;
EXP1:EXPMA(C,M1),colorwhite;
EXP2:EXPMA(C,M2),coloryellow;
EXP3:EXPMA(C,M3),COLORGREEN;//http://www.cxh99.com
TYX3:=MA(REF(HHV((CLOSE+LOW+OPEN+H)/4,30),1),3);
TYX4:=MA((CLOSE+LOW+OPEN+H)/4,13);
TYX5:=EMA((CLOSE+LOW+OPEN+H)/4,21);
STICKLINE(H=L AND C=O AND (C/REF(C,1))>1.048,H,L,3,0) ,colorred;
STICKLINE(H=L AND C=O AND (REF(C,1)/C)>1.048,H,L,3,0) ,COLOR00FF00;
DRAWTEXT_FIX(C>O,0.001,0.001,0,'代编写服务QQ:511411198 微信:CXH99CXH99 公众号:A26206'),COLORWHITE;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L*0.99,1);
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);
AZ6:=(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)));
cxhC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
DRAWTEXT((cxhC=1),L,'买入'),COLOR0000FF;

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容