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

Function DPO

MyTT.py:163–165  ·  view source on GitHub ↗
(CLOSE,M1=20, M2=10, M3=6)

Source from the content-addressed store, hash-verified

161
162
163def DPO(CLOSE,M1=20, M2=10, M3=6): #区间震荡线
164 DPO = CLOSE - REF(MA(CLOSE, M1), M2); MADPO = MA(DPO, M3)
165 return DPO, MADPO
166
167def BRAR(OPEN,CLOSE,HIGH,LOW,M1=26): #BRAR-ARBR 情绪指标
168 AR = SUM(HIGH - OPEN, M1) / SUM(OPEN - LOW, M1) * 100

Callers

nothing calls this directly

Calls 2

REFFunction · 0.85
MAFunction · 0.85

Tested by

no test coverage detected