Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/mpquant/Ashare
/ MAX
Function
MAX
MyTT.py:12–12 ·
view source on GitHub ↗
(S1,S2)
Source
from the content-addressed store, hash-verified
10
def
RET(S,N=1):
return
np.array(S)[-N]
#返回序列倒数第N个值,默认返回最后一个
11
def
ABS(S):
return
np.abs(S)
#返回N的绝对值
12
def
MAX(S1,S2):
return
np.maximum(S1,S2)
#序列max
13
def
MIN(S1,S2):
return
np.minimum(S1,S2)
#序列min
14
15
def
MA(S,N):
#求序列的N日平均值,返回序列
Callers
4
RSI
Function · 0.85
ATR
Function · 0.85
DMI
Function · 0.85
BRAR
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected