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

Function BBI

MyTT.py:130–131  ·  view source on GitHub ↗
(CLOSE,M1=3,M2=6,M3=12,M4=20)

Source from the content-addressed store, hash-verified

128 return MA(TR, N)
129
130def BBI(CLOSE,M1=3,M2=6,M3=12,M4=20): #BBI多空指标
131 return (MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4
132
133def DMI(CLOSE,HIGH,LOW,M1=14,M2=6): #动向指标:结果和同花顺,通达信完全一致
134 TR = SUM(MAX(MAX(HIGH - LOW, ABS(HIGH - REF(CLOSE, 1))), ABS(LOW - REF(CLOSE, 1))), M1)

Callers

nothing calls this directly

Calls 1

MAFunction · 0.85

Tested by

no test coverage detected