Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/mpquant/Ashare
/ MTM
Function
MTM
MyTT.py:176–178 ·
view source on GitHub ↗
(CLOSE,N=12,M=6)
Source
from the content-addressed store, hash-verified
174
return
DIF,DIFMA
175
176
def
MTM(CLOSE,N=12,M=6):
#动量指标
177
MTM=CLOSE-REF(CLOSE,N); MTMMA=MA(MTM,M)
178
return
MTM,MTMMA
179
180
def
ROC(CLOSE,N=12,M=6):
#变动率指标
181
ROC=100*(CLOSE-REF(CLOSE,N))/REF(CLOSE,N); MAROC=MA(ROC,M)
Callers
nothing calls this directly
Calls
2
REF
Function · 0.85
MA
Function · 0.85
Tested by
no test coverage detected