主图一线打天下 通达信主图指标 源码

N:=5;
X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=CLOSE<MA(CLOSE,N) AND REF(CLOSE,1)>REF(MA(CLOSE,N),1);
STICKLINE(X_2,OPEN,CLOSE,2,0),COLORGREEN;
X_3:=CLOSE/REF(CLOSE,1)>=1.095 AND CLOSE=HIGH;
STICKLINE(X_3,OPEN,CLOSE,2,0),COLORYELLOW;