MACD底背离画线源码分享

DIFF: EMA(CLOSE,12) - EMA(CLOSE,26);
DEA: EMA(DIFF,9);
GJ:=MAX(C,O);
L4:=LLV(GJ,4);
JL:=(HHV(DIFF,55)-LLV(DIFF,55))/5;
GT:=DEA>REF(DEA,1) AND REF(DEA,1)<REF(DEA,2);
A1:=BARSLAST(REF(GT,1));
底背离:=REF(L4,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND GT;
DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;
DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;
H4:=HHV(GJ,4);
GT2:=DEA<REF(DEA,1) AND REF(DEA,1)>REF(DEA,2);
A2:=BARSLAST(REF(GT2,1));
顶背离:= REF(H4,A2+1)<H4 AND DIFF<REF(DIFF,A2+1) AND GT2;
DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;
DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;
A12:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离2:=REF(CLOSE,A12+1)>CLOSE AND DIFF>REF(DIFF,A12+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离2,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背离2,DEA,0),colorred,LINETHICK2;
A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离2:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);
顶背:DRAWLINE(A2=0,DEA,顶背离2,DEA,0),colorgreen,LINETHICK2;
VAR1:=(H+L)/2;
AO:=SMA(VAR1,5,1)-SMA(VAR1,34,1),LINETHICK0;
AC:SMA((AO-SMA(AO,5,1)),5,1),COLOR6699CC,DOTLINE;
STICKLINE(AC>=REF(AC,1),0,AC,6,1),COLOR000080,LINETHICK1;
STICKLINE(AC<=REF(AC,1),0,AC,6,1),colorgray;
AC,colorgray,LINETHICK2;
B:=ZIG(3,15/5)*100,colorwhite;
G:=MA(B,2),coloryellow;
D:=CROSS(B,G)*1000,colorred;
W:=CROSS(G,B)*1000,colorblue;
STICKLINE(MACD>0,0.000001,0.000003,15,0),colorred,,LINETHICK2;
STICKLINE(MACD<0,0.000001,0.000003,15,0),colorblue,LINETHICK2;







未来函数检测结果如下:
该公式包含未来函数:ZIG
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图