以下是通达信趋势阶梯源码附图(无源码的请下载附件导入)
趋势阶梯源码
X_1:=(CLOSE+HIGH+LOW)/3;
X_2:=EMA(X_1,13);
X_3:=REF(X_2,1);
X_4:=EMA(CLOSE,3);
X_5:=EMA(CLOSE,8);
X_6:=EMA(X_5,13);
M4:EMA(X_5,55),COLORWHITE,LINETHICK2;
持股区域:STICKLINE(X_2>X_3,X_2,X_3,3,0),COLORRED;
持币区域:STICKLINE(X_2<X_3,X_2,X_3,3,0),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.3,0.03,0,3),COLORYELLOW;
838400135.jpg
|