No se si estará bien, pero creo que es de la siguiente forma:
I don’t know if it’s correct, but I think it’s like this:
MALength = 13
DM = high – low
hlc3= (high + low + close)/3
if(hlc3>hlc3[1]) THEN
Trend = 1
ELSE
Trend = -1
ENDIF
CM = DM
if Trend = Trend[1] then
CM = CM[1] + DM
else
CM = DM[1]
endif
if CM <> 0 then
VForce = Trend * 100 * volume * Abs(2 * DM / CM – 1)
else
VForce = VForce[1]
endif
KVOsc = ExponentialAverage[34](VForce) – ExponentialAverage[55](VForce)
TriggerLine = Average[MALength](KVOsc)
return KVOsc as “Klinger” ,TriggerLine as “Signal”