MCPcopy Index your code
hub / github.com/mpquant/Ashare / HHV

Function HHV

MyTT.py:33–34  ·  view source on GitHub ↗
(S,N)

Source from the content-addressed store, hash-verified

31 return pd.Series(S).rolling(N).sum().values
32
33def HHV(S,N): # HHV(C, 5) # 最近5天收盘最高价
34 return pd.Series(S).rolling(N).max().values
35
36def LLV(S,N): # LLV(C, 5) # 最近5天收盘最低价
37 return pd.Series(S).rolling(N).min().values

Callers 3

KDJFunction · 0.85
WRFunction · 0.85
TAQFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected