View Single Post
Old 03-12-2004, 05:34   #71 (permalink)
Matsu
level 3
 
Matsu's Avatar
 
Join Date: Oct 2004
Posts: 133
Rep Power: 0
Matsu is an unknown quantity at this point
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
Matsu is offline   Reply With Quote