趋势为王 一招制胜系列之:波浪矩阵副图指标 通达信 源码 附图

X_1:=120;
X_2:=BARSLAST(CURRBARSCOUNT=X_1);
X_3:=CONST(IF(ISLASTBAR=1,HHV(HIGH,X_2),0));
X_4:=CONST(IF(ISLASTBAR=1,LLV(LOW,X_2),0));
X_5:=X_3-X_4;
X_6:=IF(CURRBARSCOUNT<=X_1/2,X_3,DRAWNULL);
高区:IF(CURRBARSCOUNT<=X_1,X_3,DRAWNULL),COLORRED,LINETHICK2;
低区:IF(CURRBARSCOUNT<=X_1,X_4,DRAWNULL),COLORGREEN,LINETHICK2;
X_7:=IF(CURRBARSCOUNT<=X_1,X_4+X_5/2,DRAWNULL);
低:IF(CURRBARSCOUNT<=X_1/2,X_4,DRAWNULL),COLORCYAN;
高:IF(CURRBARSCOUNT<=X_1/2,X_3,DRAWNULL),COLORYELLOW;
支撑:IF(CURRBARSCOUNT<=X_1/2,X_4+X_5*0.191,DRAWNULL),COLORYELLOW;
强势:IF(CURRBARSCOUNT<=X_1/2,X_4+X_5*0.382,DRAWNULL),COLORMAGENTA;
突破:IF(CURRBARSCOUNT<=X_1/2,X_4+X_5/2,DRAWNULL),COLORRED;
警示:IF(CURRBARSCOUNT<=X_1/2,X_4+X_5*0.618,DRAWNULL),COLORYELLOW;
压力:IF(CURRBARSCOUNT<=X_1/2,X_4+X_5*0.809,DRAWNULL),COLORGREEN;
低涨:IF(CURRBARSCOUNT<=X_1/2,(CLOSE/LLV(LOW,X_2)-1)*100,DRAWNULL),NODRAW,COLORRED;
天数:BARSLAST(LOW=X_4),NODRAW,COLORCYAN;
顶点:IF(CURRBARSCOUNT<=X_1/2,CONST(IF(ISLASTBAR=1,HHV(HIGH,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),CROSSDOT,COLORRED;
低点:IF(CURRBARSCOUNT<=X_1/2,CONST(IF(ISLASTBAR=1,LLV(LOW,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),CROSSDOT,COLORMAGENTA;
STICKLINE(CCI>=200 AND HIGH>=顶点,OPEN,CLOSE,2,0),COLORBLUE;
STICKLINE(CCI<=100 AND LOW<=低点,OPEN,CLOSE,2,0),COLORYELLOW;
DRAWBAND(高区,RGB(120,20,0),X_7,RGB(0,0,0));
DRAWBAND(X_7,RGB(80,0,100),低区,RGB(0,0,0));
DRAWBAND(高,RGB(100,100,0),压力,RGB(0,0,0));
DRAWBAND(压力,RGB(0,80,0),警示,RGB(0,0,0));
DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0));
DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0));
DRAWBAND(强势,RGB(120,0,0),支撑,RGB(0,0,0));
DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0));
STICKLINE(CURRBARSCOUNT=X_1,X_3,X_4,0,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=X_1/2,X_3,X_4,0,0),COLOR408080;
STICKLINE(CURRBARSCOUNT=1,X_3,X_4,0,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT<=X_1/2,支撑,支撑,2,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=X_1/2,强势,强势,2,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=X_1/2,突破,突破,2,0),COLORABABAB;
STICKLINE(CURRBARSCOUNT<=X_1/2,警示,警示,2,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=X_1/2,压力,压力,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,压力,526),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,警示,527),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,突破,528),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=10,强势,529),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,支撑,530),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=X_1/4+5,X_3-X_5*0.09,487),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=X_1/4+5,X_3-X_5*0.3,488),COLORRED;
DRAWTEXT(CURRBARSCOUNT=X_1/4+5,X_3-X_5*0.45,531),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=X_1/4+5,X_3-X_5*0.55,532);
DRAWTEXT(CURRBARSCOUNT=X_1/4+5,X_4+X_5/3,489),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=X_1/4+5,X_4+X_5/10,533),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=X_1/2+40,X_3-X_5*0.25,534),COLORRED;
DRAWTEXT(CURRBARSCOUNT=X_1/2+40,X_4+X_5*0.25,535),COLORYELLOW;
第一防线:REFDATE(低,DATE),POINTDOT,COLORYELLOW,LINETHICK4;
第二防线:REFDATE(支撑,DATE),POINTDOT,COLORWHITE,LINETHICK4;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_8:=CLOSE*VOL;
X_9:=EMA((EXPMA(X_8,27)/EXPMA(VOL,27)+EXPMA(X_8,54)/EXPMA(VOL,54)+EXPMA(X_8,108)/EXPMA(VOL,108)+EXPMA(X_8,316)/EXPMA(VOL,316))/4,34);
X_10:=1.06*X_9;
X_11:=X_9*0.94;
X_12:=REF(CLOSE,1)*1.1-CLOSE<0.01 AND HIGH=CLOSE;
X_13:=CROSS(CLOSE,X_10) OR CROSS(CLOSE,X_11) AND X_12;
DRAWTEXT(X_13,LOW,536),COLORCYAN;
STICKLINE(X_13,CLOSE,OPEN,3,1),COLORWHITE;
STICKLINE(X_13,CLOSE,OPEN,1,0),COLORGREEN;



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

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

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

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