MCPcopy
hub / github.com/mpquant/Ashare / KDJ

Function KDJ

MyTT.py:91–94  ·  view source on GitHub ↗
(CLOSE,HIGH,LOW, N=9,M1=3,M2=3)

Source from the content-addressed store, hash-verified

89 return RD(DIF),RD(DEA),RD(MACD)
90
91def KDJ(CLOSE,HIGH,LOW, N=9,M1=3,M2=3): # KDJ指标
92 RSV = (CLOSE - LLV(LOW, N)) / (HHV(HIGH, N) - LLV(LOW, N)) * 100
93 K = EMA(RSV, (M1*2-1)); D = EMA(K,(M2*2-1)); J=K*3-D*2
94 return K, D, J
95
96def RSI(CLOSE, N=24):
97 DIF = CLOSE-REF(CLOSE,1)

Callers

nothing calls this directly

Calls 3

LLVFunction · 0.85
HHVFunction · 0.85
EMAFunction · 0.85

Tested by

no test coverage detected