I have come across some AmiBroker code that uses the
PREV function. However, it seems that the
PREV function is not supported in AmiBroker, and I need to find an equivalent replacement for it.
L = 21;
St = Stdev(c, 5) / Ma(Stdev(c, 5), 10);
L = L * 0.75 / (St + 0.1);
L = If(L > Cum(x) - 13, Cum(x) - 13, L);
L := If(L < 1, 1, L);
VoEma = x * 2 / (L + 1) + PREV * (1 - 2 / (L + 1));
Plot(VoEma, "a", colorDefault);
help me to convert it to AmiBroker to achieve the same outcome.
This has been answered already
USE SEARCH before posting