MA主图显示已经突破天数和价格划线源码分享

XA_1:=EMA(CLOSE,7);
XA_2:=EMA(CLOSE,21);
XA_3:=10;
XA_4:=CONST(HHVBARS(VOL,XA_3));
XA_5:=XA_3;
XA_6:=CONST(REF(HHVBARS(VOL,XA_5),XA_4+1)+XA_4+1);
突破天数:XA_6,NODRAW,COLOR40FF00;
XA_7:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(MAX(CLOSE,OPEN),XA_6)),DRAWNULL);
突破价咯:XA_7,COLOR40FF00;
XA_8:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(HIGH,XA_6)),DRAWNULL);
XA_9:=DRAWICON(CURRBARSCOUNT=XA_6+1,XA_7,25);
XA_10:=CONST(LLVBARS(VOL,XA_5));
XA_11:=XA_6+1;{股票指标网 整理}
XA_12:=REF(MAX(CLOSE,OPEN),XA_6);
XA_13:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(VOL,XA_6)),DRAWNULL);
XA_14:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND REF(MAX(CLOSE,OPEN),XA_4+1)=HHV(MAX(REF(CLOSE,1),REF(OPEN,1)),XA_4+1) AND XA_11>=5 AND XA_11<=11;
XA_15:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND LAST(MAX(REF(CLOSE,1),REF(OPEN,1))<=REF(MAX(CLOSE,OPEN),1),XA_11,1) AND XA_11>=4 AND XA_11<=11 AND CLOSE>OPEN;
XA_16:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND LAST(MAX(CLOSE,OPEN)<XA_8,XA_11-2,1) AND XA_11>=5 AND XA_11<=11 AND CLOSE>OPEN;
XA_17:=XA_16 AND CROSS(XA_1,XA_2);
STICKLINE(CURRBARSCOUNT=XA_6+1,CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(XA_17,XA_7,OPEN,2,0),COLORMAGENTA;
M5:MA(CLOSE,5);
M10:MA(CLOSE,10),COLORCYAN;
M20:MA(CLOSE,20);
M30:MA(CLOSE,30),COLORYELLOW,LINETHICK2;
M60:MA(CLOSE,60),COLORLIMAGENTA,LINETHICK2;
MA120:MA(CLOSE,120),COLOR80FF00;
MA250:MA(CLOSE,250),COLORFF0080;
 



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

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

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

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