T3 moving average & Generalized DEMA

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

T3 moving average & Generalized DEMA

Postby Apprentice » Thu Jun 10, 2010 5:07 pm

T3.png
T3


T3 moving average
T3 moving average is presented by Tim Tillson in S&C Magazine, 01/1998
Is a triple smoothed combination of the DEMA

T3 advantages
Less lag time, Line is much smoother, gives early entry signals, have smaller number of false signals.

Generalized DEMA
GD[period] = (1-v)*EMA[period] + v*DEMA[period]

T3 Average apply Generalized DEMA three times.

T3[period] = GD[period] of GD[period] of GD[period]

Volume factor

A “volume factor” (default 0.7) controls how much of the DEMA is used.
The factor ranges from 0 which gives a plain EMA and 1 which gives a full DEMA.

0 - T3 is simply a tripled EMA (see EMA of EMA of EMA).
1 - T3 is a DEMA of DEMA of DEMA

T3.lua
T3
(1.95 KiB) Downloaded 3810 times

GD.lua
GD
(1.91 KiB) Downloaded 3759 times


The indicator was revised and updated
Last edited by Apprentice on Fri Jun 11, 2010 9:09 am, edited 3 times in total.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: T3 moving average & Generalized DEMA

Postby Apprentice » Thu Jun 10, 2010 5:18 pm

This is another implementation of this indicator, it gives the same final results.

Calculation
Volume factor = b;

EMA1[period]= EMA(Source);
EMA2[period]= EMA(EMA1[period]);
EMA3[period]= EMA(EMA2[period]);
EMA4[period]= EMA(EMA3[period]);
EMA5[period]= EMA(EMA4[period]);
EMA6[period]= EMA(EMA5[period]);

c1= -b*b*b;
c2= 3*b*b+3*b*b*b;
c3= -6*b*b-3*b-3*b*b*b;
c4= 1+3*b+b*b*b+3*b*b;
T3MA= c1*EMA6[period]+c2*EMA5[period]+c3*EMA4[period]+c4*EMA3[period];

T3 v2.lua
T3
(2.4 KiB) Downloaded 2622 times
Last edited by Apprentice on Fri Jun 11, 2010 9:14 am, edited 1 time in total.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: T3 moving average & Generalized DEMA

Postby Apprentice » Wed Aug 18, 2010 5:06 am

Arrow.png

Added arrow option.
T3.lua
(2.91 KiB) Downloaded 2681 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: T3 moving average & Generalized DEMA

Postby Hailkayy » Mon Apr 16, 2012 6:29 pm

Hey yow apprentice what'sup ?!
Nice breakfast ?! :D

Was exploring this website resources, fantastic mate lol.
Ok i checked this and i liked it

Could you produce T3 Overlay ? I Like what's clear and beautiful, are you beautiful ?
Lol just kidding
Thanks mate :D
Hailkayy
FXCodeBase: Initiate
 
Posts: 191
Joined: Thu Dec 22, 2011 4:42 am

Re: T3 moving average & Generalized DEMA

Postby Apprentice » Tue Apr 17, 2012 3:37 am

T3 Overlay.png

T3 & GD, moving averages are supported.
There are two methods.
The position of the closing price in relation to the moving average,
Moving average slope.
T3 Overlay.lua
(4.51 KiB) Downloaded 1920 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: T3 moving average & Generalized DEMA

Postby Hailkayy » Tue Apr 17, 2012 6:45 pm

Much thanks.
Hailkayy
FXCodeBase: Initiate
 
Posts: 191
Joined: Thu Dec 22, 2011 4:42 am

Re: T3 moving average & Generalized DEMA

Postby rtsayers » Mon Apr 23, 2012 4:10 pm

I would love to see a strategy based on these indicators! Thanks
rtsayers
FXCodeBase: Initiate
 
Posts: 119
Joined: Sat Jan 29, 2011 12:45 am

Re: T3 moving average & Generalized DEMA

Postby Apprentice » Tue Apr 24, 2012 2:34 am

Can you define Entry, Exit Signals.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: T3 moving average & Generalized DEMA

Postby rtsayers » Tue Apr 24, 2012 12:23 pm

I would like the entry:

GD crosses over T3 for a buy
T3 crosses over GD for a sell
Exit the trade when the next buy or sell happens then into the new trade.

Thanks
rtsayers
FXCodeBase: Initiate
 
Posts: 119
Joined: Sat Jan 29, 2011 12:45 am

Next

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 51 guests