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

Function TRIX

MyTT.py:147–151  ·  view source on GitHub ↗
(CLOSE,M1=12, M2=20)

Source from the content-addressed store, hash-verified

145 return UP,MID,DOWN
146
147def TRIX(CLOSE,M1=12, M2=20): #三重指数平滑平均线
148 TR = EMA(EMA(EMA(CLOSE, M1), M1), M1)
149 TRIX = (TR - REF(TR, 1)) / REF(TR, 1) * 100
150 TRMA = MA(TRIX, M2)
151 return TRIX, TRMA
152
153def VR(CLOSE,VOL,M1=26): #VR容量比率
154 LC = REF(CLOSE, 1)

Callers

nothing calls this directly

Calls 3

EMAFunction · 0.85
REFFunction · 0.85
MAFunction · 0.85

Tested by

no test coverage detected