撑压线通达信公式 主图 源码附图

X_1:=CLOSE/REF(CLOSE,1)>1.095;
STICKLINE(X_1,OPEN,CLOSE,0.8,0),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);
X_2:=MA(VOL,5);
X_3:=CONST(PEAKBARS(X_2,50,1));
X_4:=CONST(PEAKBARS(X_2,50,2));
X_5:=CONST(PEAKBARS(X_2,50,3));
X_6:=CONST(PEAKBARS(X_2,50,4));
X_7:=CONST(PEAKBARS(X_2,50,5));
X_8:=CONST(PEAKBARS(X_2,50,6));
X_9:=CONST(TROUGHBARS(X_2,50,1));
X_10:=CONST(TROUGHBARS(X_2,50,2));
X_11:=CONST(TROUGHBARS(X_2,50,3));
X_12:=CONST(TROUGHBARS(X_2,50,4));
X_13:=CONST(TROUGHBARS(X_2,50,5));
X_14:=CONST(TROUGHBARS(X_2,50,6));
X_15:=CONST(FINDLOW(LOW,X_3,X_4-X_3,1));
X_16:=CONST(FINDLOW(LOW,X_4,X_5-X_4,1));
X_17:=CONST(FINDLOW(LOW,X_5,X_6-X_5,1));
X_18:=CONST(FINDLOW(LOW,X_6,X_7-X_6,1));
X_19:=CONST(FINDLOW(LOW,X_7,X_8-X_7,1));
DRAWLINE(LOW=X_15 AND CURRBARSCOUNT>X_3,X_15,CURRBARSCOUNT=1,X_15,1),DOTLINE,COLORGREEN;
DRAWLINE(LOW=X_16 AND CURRBARSCOUNT>X_4,X_16,CURRBARSCOUNT=1,X_16,1),DOTLINE,COLORGREEN;
DRAWLINE(LOW=X_17 AND CURRBARSCOUNT>X_5,X_17,CURRBARSCOUNT=1,X_17,1),DOTLINE,COLORGREEN;
DRAWLINE(LOW=X_18 AND CURRBARSCOUNT>X_6,X_18,CURRBARSCOUNT=1,X_18,1),DOTLINE,COLORGREEN;
DRAWLINE(LOW=X_19 AND CURRBARSCOUNT>X_7,X_19,CURRBARSCOUNT=1,X_19,1),DOTLINE,COLORGREEN;
X_20:=CONST(FINDHIGH(HIGH,X_9,X_10-X_9,1));
X_21:=CONST(FINDHIGH(HIGH,X_10,X_11-X_10,1));
X_22:=CONST(FINDHIGH(HIGH,X_11,X_12-X_11,1));
X_23:=CONST(FINDHIGH(HIGH,X_12,X_13-X_12,1));
X_24:=CONST(FINDHIGH(HIGH,X_13,X_14-X_13,1));
DRAWLINE(HIGH=X_20 AND CURRBARSCOUNT>X_9,HIGH,CURRBARSCOUNT=1,X_20,1),DOTLINE,COLORRED;
DRAWLINE(HIGH=X_21 AND CURRBARSCOUNT>X_10,HIGH,CURRBARSCOUNT=1,X_21,1),DOTLINE,COLORRED;
DRAWLINE(HIGH=X_22 AND CURRBARSCOUNT>X_11,HIGH,CURRBARSCOUNT=1,X_22,1),DOTLINE,COLORRED;
DRAWLINE(HIGH=X_23 AND CURRBARSCOUNT>X_12,HIGH,CURRBARSCOUNT=1,X_23,1),DOTLINE,COLORRED;
DRAWLINE(HIGH=X_24 AND CURRBARSCOUNT>X_13,HIGH,CURRBARSCOUNT=1,X_24,1),DOTLINE,COLORRED;
 



未来函数检测结果如下:
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:DHIGH
该公式包含未来函数:DLOW
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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