DYO: Tillson T3 average example
|
Q: Was wondering if you know how to create the Tillson T3 moving average formula in Ensign. The Metastock formula is as follows:
e1:=Mov(C,3,E);
e2:=Mov(e1,3,E);
e3:=Mov(e2,3,E);
e4:=Mov(e3,3,E);
e5:=Mov(e4,3,E);
e6:=Mov(e5,3,E);
c1:=-.618*.618*.618;
c2:=3*.618*.618+3*.618*.618*.618;
c3:=-6*.618*.618-3*.618-3*.618*.618*.618;
c4:=1+3*.618+.618*.618*.618+3*.618*.618;
c1*e6+c2*e5+c3*e4+c4*e3;
A:
Lines A through G create the various exponential moving averages as per the formula given.
A 2nd DYO is used to create the four parts to be summed. The formula constants have been multiplied out to arrive at their values which are then muliplied by each of the 4 averages involved in the final answer The partial results are stored in Global Variables [7] through [10], and then summed on Line E.
This study is available from the Ensign web site using the Internet Services form to download the following template:
Template: 1573-TillsonT3
Last modified 8/8/08 1:30 PM
|