Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mpquant/Ashare
/ REF
Function
REF
MyTT.py:18–19 ·
view source on GitHub ↗
(S, N=1)
Source
from the content-addressed store, hash-verified
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
20
21
def
DIFF(S, N=1):
#前一个值减后一个值,前面会产生nan
22
return
pd.Series(S).diff(N)
#np.diff(S)直接删除nan,会少一行
Callers
11
RSI
Function · 0.85
PSY
Function · 0.85
ATR
Function · 0.85
DMI
Function · 0.85
TRIX
Function · 0.85
VR
Function · 0.85
EMV
Function · 0.85
DPO
Function · 0.85
BRAR
Function · 0.85
MTM
Function · 0.85
ROC
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected