----- Original Message -----
Sent: Saturday, January 10, 2009 10:26
PM
Subject: [amibroker] Simple "Days Back"
Question
Hi
guys,
In the following custom indicator, I reference a day back but,
for reasons that I hope are obvious to you, it throws an error.
The
indicator:
PastWeight = Param("Past
Data Weight", 0.1, 0.1, 2, 0.1);
NewWeight = Param("New Data Weight", 0.9, 0.1, 2,
0.1);
AdvDecEMA = (NewWeight * Ref(AdvDecEMA, -1) +
PastWeight * (AdvIssues() - DecIssues());
Plot(AdvDecEMA, "McMillian Adv/Dec", colorBlue,
style = styleLine, Null, Null, Null);
I've colored the problem bit in
red.
Any help would be most
appreciated!
Thanks,
Conrad