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

Function ROC

MyTT.py:180–182  ·  view source on GitHub ↗
(CLOSE,N=12,M=6)

Source from the content-addressed store, hash-verified

178 return MTM,MTMMA
179
180def ROC(CLOSE,N=12,M=6): #变动率指标
181 ROC=100*(CLOSE-REF(CLOSE,N))/REF(CLOSE,N); MAROC=MA(ROC,M)
182 return ROC,MAROC
183
184 #望大家能提交更多指标和函数 https://github.com/mpquant/MyTT

Callers

nothing calls this directly

Calls 2

REFFunction · 0.85
MAFunction · 0.85

Tested by

no test coverage detected