很多年前一直在用,挺不错的KDJ公式
源码
a1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0); RSV:=(a1-LLV(a1,34))/(HHV(a1,34)-LLV(a1,34))*100; K:SMA(RSV,5,1),COLORRED; D:SMA(K,3,1),COLOR00FF00; J:3*K-2*D; 50,colorgray;