在线检测未来函数

通达信简单上下轨道指标公式

来源:Internet,编辑:股旁网,2024-01-25

VAR2:=MA(ADVANCE-DECLINE,3)/100;
VAR3:=MA(CLOSE,5)*1.01;
VAR4:=MA(OPEN,13)*1.01;
VAR5:=(MA(HIGH,3)+MA(LOW,5)+MA(CLOSE,3)+MA(OPEN,3)+CLOSE+OPEN)/6+VAR2;
VAR6:=IF(VAR4>VAR5,VAR4,VAR5);
VAR7:=IF(VAR4< VAR5,VAR4,VAR5);
VAR8:=3/100;
下轨:MA(VAR7,5)*(1-VAR8),LINETHICK2,COLORRED;
上轨:MA(VAR6,5)*(1+VAR8),LINETHICK2,COLOR00FF11;
STICKLINE(VAR3>VAR4,VAR4,VAR3,0.01,0),LINETHICK2 COLORYELLOW;
STICKLINE(VAR3< VAR4,VAR3,VAR4,0.01,0),LINETHICK1 COLORWHITE;
STICKLINE(VAR5>VAR4,VAR5,VAR4,0.01,0)COLORMAGENTA;
STICKLINE(VAR5< VAR4,VAR4,VAR5,0.01,0)COLORCYAN;

通达信简单上下轨道指标公式

相关文章