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

Function RSI

MyTT.py:96–98  ·  view source on GitHub ↗
(CLOSE, N=24)

Source from the content-addressed store, hash-verified

94 return K, D, J
95
96def RSI(CLOSE, N=24):
97 DIF = CLOSE-REF(CLOSE,1)
98 return RD(SMA(MAX(DIF,0), N) / SMA(ABS(DIF), N) * 100)
99
100def WR(CLOSE, HIGH, LOW, N=10, N1=6): #W&R 威廉指标
101 WR = (HHV(HIGH, N) - CLOSE) / (HHV(HIGH, N) - LLV(LOW, N)) * 100

Callers

nothing calls this directly

Calls 5

REFFunction · 0.85
RDFunction · 0.85
SMAFunction · 0.85
MAXFunction · 0.85
ABSFunction · 0.85

Tested by

no test coverage detected