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

Function PSY

MyTT.py:117–120  ·  view source on GitHub ↗
(CLOSE,N=12, M=6)

Source from the content-addressed store, hash-verified

115 return RD(UPPER), RD(MID), RD(LOWER)
116
117def PSY(CLOSE,N=12, M=6):
118 PSY=COUNT(CLOSE>REF(CLOSE,1),N)/N*100
119 PSYMA=MA(PSY,M)
120 return RD(PSY),RD(PSYMA)
121
122def CCI(CLOSE,HIGH,LOW,N=14):
123 TP=(HIGH+LOW+CLOSE)/3

Callers

nothing calls this directly

Calls 4

COUNTFunction · 0.85
REFFunction · 0.85
MAFunction · 0.85
RDFunction · 0.85

Tested by

no test coverage detected