logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
MS Support  
#1 Posted : Tuesday, July 29, 2014 8:24:26 AM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,934

Thanks: 85 times
Was thanked: 154 time(s) in 150 post(s)

John Ehler's article, “The Quotient Transform”, introduced his latest indicator, "Early Onset Trend Indicator". The formulas for this indicator is listed below:

lperiod:= 30;

k:= 0.85;

{highpass filter}

alpha1:= (Cos(.707*360/100) + Sin(.707*360/100) -1)/Cos(.707*360/100);

HP:= (1-alpha1/2)*(1-alpha1/2)*(C - Ref(2*C,-1) + Ref(C,-2)) +

2*(1-alpha1)*PREV - (1-alpha1)*(1-alpha1)*Ref(PREV,-1);

{super smoother}

a1:= Exp(-1.414 * 3.14159 / lperiod);

b1:= 2*a1 * Cos(1.414*180 / lperiod);

c2:= b1;

c3:= -a1 * a1;

c1:= 1 - c2 - c3;

filt:= c1 * (HP + Ref(HP, -1))/2 + c2*PREV + c3*Ref(PREV,-1);

{fast attack - slow decay}

pk:= If(Abs(filt) > .991*PREV, Abs(filt), .991*PREV);

{roofing filter}

denom:= If(pk=0, -1, pk);

x:= If(denom=-1, 0, filt/denom);

(x+K)/(K*X+1);

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.