通达信红蓝趋势副图指标

N2:=13;

M2:=5;

M22:=5;

RSV2:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;

K2:=SMA(RSV2,M2,1),LINETHICK4;

D2:=SMA(K2,M22,1),LINETHICK4;

J2:=3*K2-2*D2,LINETHICK4;

STICKLINE((K2 > REF(K2,1) AND K2 > D2),K2,D2,2,0),COLORRED;

STICKLINE((K2 <=REF(K2,1) AND K2 > D2),K2,D2,2,0),COLORWHITE;

STICKLINE((K2 <=REF(K2,1) AND K2 <=D2),K2,D2,2,0),COLORCYAN;

STICKLINE((K2 > REF(K2,1) AND K2 <=D2),K2,D2,2,0),COLORWHITE;

STICKLINE((J2 > REF(J2,1) AND J2 > D2),J2,D2,2,0),COLORRED;

STICKLINE((J2 <=REF(J2,1) AND J2 > D2),J2,D2,2,0),COLORWHITE;

STICKLINE((J2 <=REF(J2,1) AND J2 <=D2),J2,D2,2,0),COLORCYAN;

STICKLINE((J2 > REF(J2,1) AND J2 <=D2),J2,D2,2,0),COLORWHITE;

(0)

相关推荐