通达信画线波谷BS通道主图指标公式

天际: (MA(CLOSE,40)) + 2*STD(CLOSE,40),LINETHICK2,COLORBLUE; 海底: (MA(CLOSE,40)) - 2*STD(CLOSE,40),LINETHICK2,COLORBLUE; 买卖决策①:EXPMA(CLOSE,12),CIRCLEDOT,COLORWHITE; 红持绿抛②:MA(CLOSE,25),COLORRED; 红持绿抛③:MA(CLOSE,30),COLORGREEN;DRAWBAND(红持绿抛②,RGB(255,0,0),红持绿抛③,RGB(0,255,0)); NOTEXT1:IF(CLOSE>买卖决策① AND CLOSE!=买卖决策①,买卖决策①,DRAWNULL),CIRCLEDOT,COLORRED; NOTEXT2:IF(CLOSE<买卖决策① AND CLOSE!=买卖决策①,买卖决策①,DRAWNULL),CIRCLEDOT,COLORGREEN; 现价:=C,POINTDOT; M3:MA(C,3); 持股13线:=EMA(CLOSE,13); 突破77线:=EMA(CLOSE,77); 翻锅99线:=EMA(CLOSE,99); DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); AA:=EMA(CLOSE,10); 多头:=STICKLINE(DIF>DEA,CLOSE,OPEN,2,0),COLORRED; STICKLINE(DIF>DEA,HIGH,LOW,0,0),COLORRED; 空头:=STICKLINE(DIF<=DEA,CLOSE,OPEN,2,0),COLORGREEN; STICKLINE(DIF<=DEA,HIGH,LOW,0,0),COLORGREEN; STICKLINE(DIF<=DEA AND AA>MA(CLOSE,50),CLOSE,OPEN,2,0),COLORYELLOW; STICKLINE(DIF<=DEA AND AA>MA(CLOSE,50),HIGH,LOW,0,0),COLORYELLOW; DRAWTEXT(CROSS(DIF,DEA),LOW*0.995, 'B'),COLORYELLOW,LINETHICK3,; DRAWTEXT(CROSS(DEA,DIF),HIGH*1.02, 'S'),COLORGREEN,LINETHICK3,; A:=TROUGH(3,10,1); B:=TROUGHBARS(3,10,1)=0; 画底线:DRAWLINE(B,A,B,A,1),COLORYELLOW; D:=PEAK(3,10,1); E:=PEAKBARS(3,10,1)=0; 画顶线:DRAWLINE(E,D,E,D,1),COLOR00FF00; 百分比:=10;{也可设立参数:百分比(5,30,10)} 误差:=2;{误差百分比} 允许误差:=误差/100+0.004;{也可设立参数:允许误差(0,0.02,0)} 波谷1距离:= 1+CONST(TROUGHBARS(2,百分比,1)); 波谷值1: CONST(TROUGH(2,百分比,1)); 波谷值2:= CONST(TROUGH(2,百分比,2)); 波谷值3:= CONST(TROUGH(2,百分比/2,2)); 波谷值4:= CONST(TROUGH(2,百分比*2,2));
 




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

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

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