TDX反K線(原碼)
DRAWKLINE(-LOW, -OPEN, -HIGH, -CLOSE); MA5: -MA(CLOSE, 5),COLORWHITE,LINETHICK1; MA10: -MA(CLOSE, 10),COLORYELLOW,LINETHICK1; MA20: -MA(CLOSE, 20),COLORFF00FF,LINETHICK2; MA30: -MA(CLOSE, 30),COLORGREEN,LINETHICK1; MA60: -MA(CLOSE, 60),COLORGRAY,LINETHICK1; MA120: -MA(CLOSE,120),COLORBLUE,LINETHICK1; BOLL中線:MA20,COLORFF00FF; LB上軌:-"BOLL-M".LB,CROSSDOT,COLORYELLOW; UB下軌:-"BOLL-M".UB,CROSSDOT,COLORWHITE; O線:0,COLOR00BBBB; TR:=EMA(EMA(EMA(CLOSE,N),N),N); TRIX:-(TR-REF(TR,1))/REF(TR,1)*100,COLORWHITE; MATRIX:MA(TRIX,9),COLORYELLOW; A1:STICKLINE(TRIX>MATRIX,MATRIX,TRIX,1,0),COLORRED; A2:STICKLINE(TRIX<MATRIX,TRIX,MATRIX,1,0),COLORGREEN; VAR1:=-(2*CLOSE+HIGH+LOW)/4; VAR2:=-EXPMA(EXPMA(EXPMA(VAR1,4),4),4); J:-(VAR2-REF(VAR2,1))/REF(VAR2,1)*100*0.4, COLORSTICK; D: MA(J,3),COLORYELLOW; K: MA(J,1),COLORWHITE; |
|