Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mpquant/Ashare
/ DMA
Function
DMA
MyTT.py:172–174 ·
view source on GitHub ↗
(CLOSE,N1=10,N2=50,M=10)
Source
from the content-addressed store, hash-verified
170
return
AR, BR
171
172
def
DMA(CLOSE,N1=10,N2=50,M=10):
#平行线差指标
173
DIF=MA(CLOSE,N1)-MA(CLOSE,N2); DIFMA=MA(DIF,M)
174
return
DIF,DIFMA
175
176
def
MTM(CLOSE,N=12,M=6):
#动量指标
177
MTM=CLOSE-REF(CLOSE,N); MTMMA=MA(MTM,M)
Callers
nothing calls this directly
Calls
1
MA
Function · 0.85
Tested by
no test coverage detected