MCPcopy Index your code
hub / github.com/mpquant/Ashare / BIAS

Function BIAS

MyTT.py:105–109  ·  view source on GitHub ↗
(CLOSE,L1=6, L2=12, L3=24)

Source from the content-addressed store, hash-verified

103 return RD(WR), RD(WR1)
104
105def BIAS(CLOSE,L1=6, L2=12, L3=24): # BIAS乖离率
106 BIAS1 = (CLOSE - MA(CLOSE, L1)) / MA(CLOSE, L1) * 100
107 BIAS2 = (CLOSE - MA(CLOSE, L2)) / MA(CLOSE, L2) * 100
108 BIAS3 = (CLOSE - MA(CLOSE, L3)) / MA(CLOSE, L3) * 100
109 return RD(BIAS1), RD(BIAS2), RD(BIAS3)
110
111def BOLL(CLOSE,N=20, P=2): #BOLL指标,布林带
112 MID = MA(CLOSE, N);

Callers

nothing calls this directly

Calls 2

MAFunction · 0.85
RDFunction · 0.85

Tested by

no test coverage detected