通达信黄金回踩指标公式

M:=20;
XA_1:=MA(C,5);
XA_2:=MA(C,10);
XA_3:=MA(C,30);
XA_4:=SMA(MAX(CLOSE-REF(CLOSE,1),0),17,1)/SMA(Abs(CLOSE-REF(CLOSE,1)),17,1)*100;
XA_5:=BArslAST(crOSS(XA_1,XA_2));
XA_6:=BARSLAST(CROSS(XA_1,XA_3));
XA_7:=BARSLAST(CROSS(XA_2,XA_3));
XA_8:=XA_5>=XA_6 AND XA_6>XA_7 AND XA_5-XA_7<M;
XA_9:=COUNT(CROSS(XA_1,XA_2),XA_5+1)=1 AND COUNT(CROSS(XA_1,XA_3),XA_5+1)=1 AND CROSS(XA_2,XA_3) AND XA_1>XA_2 AND XA_2>XA_3;
XA_10:=XA_8 AND XA_9;
触发:XA_8 AND XA_9,NODRAW,COLORCCCCCC;
XA_11:=COUNT(触发,BARSLAST(触发)+1)=1 AND COUNT(CROSS(XA_3,XA_1),BARSLAST(触发)+1)=0;
回踩:LOW<=XA_3 AND CLOSE>XA_3 AND XA_11 AND BARSLAST(触发)>0,NODRAW,COLORMAGENTA;
XA_12:=COUNT(触发,BARSLAST(触发)+1)=1 AND CROSS(XA_3,XA_1) AND COUNT(CROSS(XA_3,XA_1),BARSLAST(触发)+1)=1;
破坏:XA_12>0,NODRAW,COLORBLUE;
区间:COUNT(触发,BARSLAST(触发)+1)=1 AND COUNT(破坏,BARSLAST(触发)+1)=0,NODRAW,COLOR696960;
STICKLINE(区间>0,0,70,4,0),COLOR696969;
STICKLINE(破坏>0,0,70,4,0),COLORBLUE;
DRAWTEXT(破坏,10,'---破坏'),COLORBLUE;
STICKLINE(回踩>0,0,70,4,0),COLORMAGENTA;
DRAWTEXT(回踩,35,'---回踩'),COLORMAGENTA;
STICKLINE(触发>0,0,70,4,0),COLORWHITE;
DRAWTEXT(触发,60,'---触发'),COLORWHITE;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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