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

Function COUNT

MyTT.py:56–57  ·  view source on GitHub ↗
(S_BOOL, N)

Source from the content-addressed store, hash-verified

54
55#------------------ 1级:应用层函数(通过0级核心函数实现) ----------------------------------
56def COUNT(S_BOOL, N): # COUNT(CLOSE>O, N): 最近N天满足S_BOO的天数 True的天数
57 return SUM(S_BOOL,N)
58
59def EVERY(S_BOOL, N): # EVERY(CLOSE>O, 5) 最近N天是否都是True
60 R=SUM(S_BOOL, N)

Callers 2

CROSSFunction · 0.85
PSYFunction · 0.85

Calls 1

SUMFunction · 0.85

Tested by

no test coverage detected