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

Function VR

MyTT.py:153–155  ·  view source on GitHub ↗
(CLOSE,VOL,M1=26)

Source from the content-addressed store, hash-verified

151 return TRIX, TRMA
152
153def VR(CLOSE,VOL,M1=26): #VR容量比率
154 LC = REF(CLOSE, 1)
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)

Callers

nothing calls this directly

Calls 3

REFFunction · 0.85
SUMFunction · 0.85
IFFunction · 0.85

Tested by

no test coverage detected