Double & Triple Exponential Moving Average (DEMA & TEMA)

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Double & Triple Exponential Moving Average (DEMA & TEMA)

Postby Apprentice » Tue May 18, 2010 6:42 am

EMA.png
EMA,DEMA, TEMA

Developed by Patrick Mulloy and introduced in the February 1994 issue of Technical Analysis of Stocks & Commodities magazine, this trend indicator.

As Mr. Mulloy explains in the article:
"Moving averages have a detrimental lag time that increases as the moving average length increases. The solution is a modified version of exponential smoothing with less lag time."

It's possible to use the Double & TripleExponential Moving Averages in the same way as the Simple Moving Average or Exponential Moving Average.

DEMA = EMA of EMA of Price
TEMA = EMA of EMA of EMA of Price

DEMA.lua
(2.14 KiB) Downloaded 1887 times

TEMA.lua
(1.92 KiB) Downloaded 1802 times

Update November 14
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27490
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Double & Triple Exponential Moving Average (DEMA & TEMA)

Postby Apprentice » Wed Jun 02, 2010 12:18 pm

This is an old version,
is not deleted, because of compatibility,
with indicators and strategies that use it

DEMA1.lua
DEMA
(1.83 KiB) Downloaded 1181 times

TEMA1.lua
(1.61 KiB) Downloaded 1144 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27490
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Double & Triple Exponential Moving Average (DEMA & TEMA)

Postby magicfx » Sun Nov 14, 2010 5:03 am

Would be good if someone can add the option to change the solid line width to 2.

Quite difficult to see inf Marketscope with Line width 1.
magicfx
 
Posts: 5
Joined: Tue Oct 26, 2010 12:21 am


Re: Double & Triple Exponential Moving Average (DEMA & TEMA)

Postby Apprentice » Sun Nov 14, 2010 6:34 am

DoubleMovingAverage.png


This versions allow you to select type of moving average.
If you choose EMA Indkator is in every respect identical to DEMA or TEMA,
(depending on which indicator you use).

DEMA = EMA of EMA of Price
DMA = MA of MA of Price

DoubleMovingAverage.lua
(2.68 KiB) Downloaded 1135 times

TripleMovingAverage.lua
(2.46 KiB) Downloaded 1327 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27490
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Double & Triple Exponential Moving Average (DEMA & TEMA)

Postby mazdaq100 » Tue Jan 11, 2011 11:37 am

Apprentice wrote:
DoubleMovingAverage.png


This versions allow you to select type of moving average.
If you choose EMA Indkator is in every respect identical to DEMA or TEMA,
(depending on which indicator you use).

DEMA = EMA of EMA of Price
DMA = MA of MA of Price

DoubleMovingAverage.lua

TripleMovingAverage.lua


Hi

Thanks for these. Is it possible to get these converted into Strategies please?

Thanks.
mazdaq100
 
Posts: 6
Joined: Wed Dec 22, 2010 4:16 am

Re: Double & Triple Exponential Moving Average (DEMA & TEMA)

Postby Apprentice » Tue Jan 11, 2011 2:20 pm

Of course, Can you describe the strategy you want to describe.
For example, Price / CrossOver DEMA, DEMA / TEMA Crossover, a change in slope Signal.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27490
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Double & Triple Exponential Moving Average (DEMA & TEMA)

Postby Apprentice » Fri Nov 25, 2011 6:14 pm

From: samsds
Could you help me ?
The application of Trading Station made some updates to the application,
but I'm seeing that the Indicator TEMA1 with the parameters 250 and 800 did not work, does not show the line on the screen and price, but parameter 100 and lower, show the line a price on the char
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27490
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Double & Triple Exponential Moving Average (DEMA & TEMA)

Postby dwrench » Mon Mar 19, 2012 10:27 am

Hello Apprentice,
I have been looking for an alert that would deliver a sound, txt message and/or pop-up telling me when two custom ema's cross or touch.
Do you already have one that is coded?
Thanks
dwrench
 
Posts: 6
Joined: Mon Mar 19, 2012 9:39 am


Next

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 12 guests