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

Function CROSS

MyTT.py:79–81  ·  view source on GitHub ↗
(S1,S2)

Source from the content-addressed store, hash-verified

77 return Y[-1]+K
78
79def CROSS(S1,S2): #判断穿越 CROSS(MA(C,5),MA(C,10))
80 CROSS_BOOL=IF(S1>S2, True ,False)
81 return COUNT(CROSS_BOOL>0,2)==1 #上穿:昨天0 今天1 下穿:昨天1 今天0
82
83
84

Callers

nothing calls this directly

Calls 2

IFFunction · 0.85
COUNTFunction · 0.85

Tested by

no test coverage detected