以下是通达信高抛低吸源码附图(无源码的请下载附件导入)
X_1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
X_2:=SMA(X_1,3,1);
X_3:=SMA(X_2,3,1);
X_4:=3*X_2-2*X_3;
STICKLINE(X_4>REF(X_4,1),HHV(X_4,3),LLV(X_4,3),0,0),COLORRED;
STICKLINE(X_4>REF(X_4,1),X_4,REF(X_4,1),3,0),COLORRED;
STICKLINE(X_4<REF(X_4,1),HHV(X_4,3),LLV(X_4,3),0,0),COLORFFFF80;
STICKLINE(X_4<REF(X_4,1),X_4,REF(X_4,1),3,0),COLORFFFF80;
高抛线:100,COLORGREEN,LINETHICK3;
低吸线:0,COLORRED,LINETHICK3;
DRAWTEXT(ISLASTBAR,高抛线,24),COLORGREEN;
DRAWTEXT(ISLASTBAR,低吸线,25),COLORRED;
76499117.jpg
|