通达信只做红波段指标公式

N:=20;jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));
qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));
{ _通达信股票指标公式}
ddx:((qj1+qj2)-(qj3+qj4))/sum(VOL,60)*1,COLOR00aaaa,LINETHICK0;DX:=ma(ddx,5)*n;
DDX1:SMA(DX,3,1)*10,COLORyellow;
{变色}
if(DDX1>ref(DDX1,1),DDX1,0),Circledot,COLORYELLOW,LINETHICK1;
if(DDX1<ref(DDX1,1),DDX1,0),Circledot,COLOR00FF00,LINETHICK1;
{只做红波段}
VAR1:=EMA(CLOSE,13)-EMA(CLOSE,55);
VAR2:=EMA(VAR1,3);
VAR3:=VAR1>VAR2;
VAR4:=VAR1<VAR2;
牛熊分界:0,COLORwhite,LINETHICK2,POINTDOT;
STICKLINE(VAR3,VAR1,VAR2,4,0),COLORRED;
STICKLINE(VAR4,VAR1,VAR2,2,0),COLORGREEN;




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

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

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