Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/mpquant/Ashare
/ MA
Function
MA
MyTT.py:15–16 ·
view source on GitHub ↗
(S,N)
Source
from the content-addressed store, hash-verified
13
def
MIN(S1,S2):
return
np.minimum(S1,S2)
#序列min
14
15
def
MA(S,N):
#求序列的N日平均值,返回序列
16
return
pd.Series(S).rolling(N).mean().values
17
18
def
REF(S, N=1):
#对序列整体下移动N,返回序列(shift后会产生NAN)
19
return
pd.Series(S).shift(N).values
Callers
14
Demo2.py
File · 0.85
BIAS
Function · 0.85
BOLL
Function · 0.85
PSY
Function · 0.85
CCI
Function · 0.85
ATR
Function · 0.85
BBI
Function · 0.85
DMI
Function · 0.85
TRIX
Function · 0.85
EMV
Function · 0.85
DPO
Function · 0.85
DMA
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected