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

Function EMV

MyTT.py:157–160  ·  view source on GitHub ↗
(HIGH,LOW,VOL,N=14,M=9)

Source from the content-addressed store, hash-verified

155 return SUM(IF(CLOSE > LC, VOL, 0), M1) / SUM(IF(CLOSE <= LC, VOL, 0), M1) * 100
156
157def EMV(HIGH,LOW,VOL,N=14,M=9): #简易波动指标
158 VOLUME=MA(VOL,N)/VOL; MID=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW)
159 EMV=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,N),N); MAEMV=MA(EMV,M)
160 return EMV,MAEMV
161
162
163def DPO(CLOSE,M1=20, M2=10, M3=6): #区间震荡线

Callers

nothing calls this directly

Calls 2

MAFunction · 0.85
REFFunction · 0.85

Tested by

no test coverage detected