MCPcopy
hub / github.com/mpquant/Ashare / RD

Function RD

MyTT.py:9–9  ·  view source on GitHub ↗
(N,D=3)

Source from the content-addressed store, hash-verified

7
8#------------------ 0级:核心工具函数 --------------------------------------------
9def RD(N,D=3): return np.round(N,D) #四舍五入取3位小数
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

Callers 6

MACDFunction · 0.85
RSIFunction · 0.85
WRFunction · 0.85
BIASFunction · 0.85
BOLLFunction · 0.85
PSYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected