MCPcopy 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

10def RET(S,N=1): return np.array(S)[-N] #返回序列倒数第N个值,默认返回最后一个
11def ABS(S): return np.abs(S) #返回N的绝对值
12def MAX(S1,S2): return np.maximum(S1,S2) #序列max
13def MIN(S1,S2): return np.minimum(S1,S2) #序列min
14
15def MA(S,N): #求序列的N日平均值,返回序列

Callers 4

RSIFunction · 0.85
ATRFunction · 0.85
DMIFunction · 0.85
BRARFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected