|
DEMA formula
Hi TrendLineBreak and Firedave
This is the formula for DEMA found in GFT's DealBookFx II, it should give you the same result as Phil's:
indicator DEMA;
input price = close, period = 21;
draw line("DEMA");
vars tmp(series);
begin
tmp := ema(price, period);
line := 2 * tmp - ema(tmp, period);
end.
Regards,
Matsu
|