Can you help me please?
wm30 = WeightedAverage [30] (close)
distancia = 0
cero = 0
if close > wm30 then
distancia = (close-wm30) / close * 100
endif
if close < wm30 then
distancia = (wm30-close) / close * 100
endif
return distancia as "distancia", cero COLOURED (0,0,0) as "cero"
wm30 = WeightedAverage [30] (close)
distancia = 0
cero = 0
if close > wm30 then
distancia = (close-wm30) / close * 100
endif
if close < wm30 then
distancia = (wm30-close) / close * 100
endif
return distancia as "distancia", cero COLOURED (0,0,0) as "cero"