您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

多空决策线主图指标公式[其他软件公式]

多空决策线主图指标公式:

 

 
input:N(88,1,1111),N1(888,1,1111);
a1:=IF((C < 800),((AMOUNT / V) / 100),((((C * 2) + H) + L) / 4));
a2:=((HHV(H,15)) + (LLV(L,30))) / 2;
a3:=EMA((MA(a1,5)),10);
a4:=EMA((MA(a1,15)),10);
a5:=EMA((MA(a1,13)),21);
a6:=((a3 + a4) + a5) / 3;
决策线:EMA((MA(C,5)),3),COLORGREEN;{http://www.cxh99.com}
多空带:((((REF(a6,1)) + a6) + (REF(a6,2))) / 3),linethick0;
a7:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.191;
a8:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.236;
a9:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.809;
a10:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.764;
a11:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.618;
地线:(a9),linethick1,Coloryellow;
天线:(a7),linethick1,ColorFF0000;
支撑线:(a10),linethick2,Color73740F;
阻力线:(a8),linethick2,Color509046;
a12:=((EMA((MA(a1,3)),3)) + (WMA(a1,5))) / 2;
a13:=REF(a12,1);
a14:=BARSCOUNT(C);
a15:=IF((a14 = 1),0,(((a12 - a13) / a13) * 100));
a16:=REF(C,1);
a17:=IF((a14 = 1),0,(((C - a16) / a16) * 100));
a18:=IF((a14 = 1),((C + O) / 2),a13);
a19:=REF(a12,2);
a20:=((a12 + a13) + a19) / 3;
a21:=((ABS((a12 - a20)) + ABS((a13 - a20))) + ABS((a19 - a20))) / 3;
a22:=IF((a14 < 3),0,((a21 / a12) * 100));
a23:=IF((((a15 > 0.5) AND ((a22 > 0.215) OR (L > a18))) AND (C >= O)),1,0);
a24:=IF((((a15 < (0 - 0.3)) AND ((a22 > 0.2) OR (H < a18))) AND ((O >= C) OR (a17 < -1))),1,0);
B:((COUNT(a23,BARSLAST(a24))) = 1) AND a23,linethick0;
D:((COUNT(a24,BARSLAST(a23))) = 1) AND a24,linethick0;
DRAWTEXT(B,(L * 0.98),'㊣'),linethick3,ALIGN1,colorWhite;
DRAWTEXT(D,(H * 1.035),'S'),linethick3,ALIGN1,COLORGREEN;{http://www.cxh99.com}
STICKLINE(((B > 0) OR (D > 0)),a1,(a1 * 0.998),8,0),ColorFF0000;
a25:=(EMA(C,12)) - (EMA(C,26));
a26:=EMA(a25,9);
a27:=2 * (a25 - a26);
a28:=IF((((((((REF(a27,1)) < (REF(a27,2))) AND ((REF(a27,2)) < (REF(a27,3)))) AND (a27 > (REF(a27,1)))) AND (a27 >= 0)) AND ((LLV(a27,4)) > 0)) AND (COUNT((a27 < 0.18),5))),(a27 * 2),0);
a29:=IF(((COUNT((CROSS(a26,a25)),8)) AND (CROSS(a25,a26))),(a27 * 4),0);
a30:=(a28 > 0) AND (C >= (((REF(a6,1)) + a6) + (REF(a6,2))) / 3);
DRAWICON(a30,L,12),ALIGN1;
a31:=(((C / a16) - 1) * 100) >= 7;
a32:=H - ((H - L) / 3);
a33:=L + ((H - L) / 3);
a34:=(C > 0) AND a31;
a35:=((H - L) * 0.618) + L;
a36:=((H - L) * 0.382) + L;
STICKLINE(a34,a32,a33,8,0),colorYellow;
STICKLINE(a34,((H + L) / 2),((H + L) / 2),8,0);
STICKLINE(a34,C,a35,8,0),colorRed;
STICKLINE(a34,C,a35,7,0),Color1414FF;
STICKLINE(a34,C,a35,6,0),Color2828FF;
STICKLINE(a34,C,a35,5,0),Color3D3DFF;
STICKLINE(a34,C,a35,4,0),Color5151FF;
STICKLINE(a34,C,a35,3,0),Color6565FF;
STICKLINE(a34,C,a35,2,0),Color7A7AFF;
STICKLINE(a34,C,a35,1,0),Color8E8EFF;
STICKLINE(a34,a36,O,8,0),COLORGREEN;{http://www.cxh99.com}
STICKLINE(a34,a36,O,7,0),Color28FF28;
STICKLINE(a34,a36,O,6,0),Color3DFF3D;
STICKLINE(a34,a36,O,5,0),Color51FF51;
STICKLINE(a34,a36,O,4,0),Color65FF65;
STICKLINE(a34,a36,O,3,0),Color7AFF7A;
STICKLINE(a34,a36,O,2,0),Color8EFF8E;
STICKLINE(a34,a36,O,1,0),ColorA2FFA2;
a37:=((C - (EMA(a1,25))) / (EMA(a1,25))) * 100;
DRAWTEXT(((a37 > 12) AND (CROSS(决策线,C))),H,'卖出');
a41:=L < a11;
DRAWICON(a41,L,1);
DRAWICON((((CROSS(C,(REF(a9,1)))) AND (a15 < -3)) OR (((L < 支撑线) AND (C > 支撑线)) AND (a15 < -3.5))),L,7),ALIGN1;
DRAWTEXT((CROSS(C,(REF(a10,1)))),(L * 0.96),'仓1/2'),colorYellow;
DRAWTEXT((CROSS(C,(REF(((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.681),1)))),(L * 0.98),'1/2仓'),Color005EFF;
DRAWTEXT(a41,H,'满仓出击');
a43:=((SMA((MAX((C - a16),0)),5,1)) / (SMA(ABS((C - a16)),5,1))) * 100;
DRAWTEXT(((CROSS(a43,10)) AND (a15 < -4)),(L * 0.92),'◢◣'),ALIGN1,colorRed;
DRAWTEXT((((a15 < -5) AND (a37 < -24)) AND (a43 < 12)),(L * 0.95),'▲'),ALIGN1,colorMagenta;
a44:=L > (REF(H,1));
a45:=H < (REF(L,1));
DRAWTEXT(a44,((REF(H,1)) * 1.003),'─'),ALIGN1,colorWhite;
DRAWTEXT(a44,(L * 1.003),'─'),ALIGN1,colorWhite;
DRAWTEXT(a45,((REF(L,1)) * 1.003),'─'),ALIGN1,COLORGREEN;{http://www.cxh99.com}
DRAWTEXT(a45,(H * 1.003),'─'),ALIGN1,COLORGREEN;{http://www.cxh99.com}
突破:REF(EMA(CLOSE,5),1)COLORMAGENTA,LINETHICK2;
/////////////////////////////////////////////////
A1X:=(EMA(CLOSE,5)-突破)/突破*100;
出击:PARTLINE(A1X>=0,REF(EMA(CLOSE,5),BARSLAST(CROSS(A1X,0))+1)),COLORYELLOW,LINETHICK2;
休假:PARTLINE(A1X<0,REF(EMA(CLOSE,5),BARSLAST(CROSS(0,A1X))+1)),COLORBLUE,LINETHICK3;
STICKLINE(A1X>=0,REF(EMA(CLOSE,5),BARSLAST(CROSS(A1X,0))+1),突破,0.5,-1),COLORRED;
STICKLINE(A1X<0,REF(EMA(CLOSE,5),BARSLAST(CROSS(0,A1X))+1),突破,0,-1),COLORGREEN;{http://www.cxh99.com}
PARTLINE(A1X<0,突破),COLORGREEN,LINETHICK2;
//////////////////////////////////////////////////
cxh0:=EMA(EMA(EMA(C,2),2),2);
海岸线:=(HHV(cxh0,13)*0.98),LINETHICK3,colorFF00;
K1:=EMA(C,3),colorFF0000;
K2:=EMA(C,5),colorFF0000;
K3:=EMA(C,8),colorFF0000;
K4:=EMA(C,13),colorFF0000;
K5:=EMA(C,15),colorFF0000;
QQ:=(((((MA(K1,1)+MA(K2,3))+MA(K3,5))+MA(K4,7))+MA(K5,9))/5),LINETHICK2,colorFF00FF;
K6:=EMA(C,30),colorFFFF;
暗器24:=IF(CROSS(K6,QQ),海岸线,0);
DRAWTEXT((暗器24>0),L,'■神偷'),colorFFFF;
//////////////////////////////////////////////////

 

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容