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

Function BRAR

MyTT.py:167–170  ·  view source on GitHub ↗
(OPEN,CLOSE,HIGH,LOW,M1=26)

Source from the content-addressed store, hash-verified

165 return DPO, MADPO
166
167def BRAR(OPEN,CLOSE,HIGH,LOW,M1=26): #BRAR-ARBR 情绪指标
168 AR = SUM(HIGH - OPEN, M1) / SUM(OPEN - LOW, M1) * 100
169 BR = SUM(MAX(0, HIGH - REF(CLOSE, 1)), M1) / SUM(MAX(0, REF(CLOSE, 1) - LOW), M1) * 100
170 return AR, BR
171
172def DMA(CLOSE,N1=10,N2=50,M=10): #平行线差指标
173 DIF=MA(CLOSE,N1)-MA(CLOSE,N2); DIFMA=MA(DIF,M)

Callers

nothing calls this directly

Calls 3

SUMFunction · 0.85
MAXFunction · 0.85
REFFunction · 0.85

Tested by

no test coverage detected