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

Notification

Icon
Error

Options
Go to last post Go to first unread
Abhishek  
#1 Posted : Wednesday, May 19, 2010 4:05:08 PM(UTC)
Abhishek

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/14/2010(UTC)
Posts: 2

Hi,

I would like to know how can we plot Exponential Moving Average of 5 days, 13 days, 26 days on the price chart so that we can visualize the crossover.

- Abhishek

henry1224  
#2 Posted : Wednesday, May 19, 2010 6:44:39 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)

this will plot the three Ma's, but just what ma crossover are you looking for?
{3 ma's indicator}
M5:=mov(C,5,E);
M13:=mov(C,13,E);
M26:=mov(C,26,E);
M5;M13;M26
;


{3 ma's crossover indicator}
M5:=mov(C,5,E);
M13:=mov(C,13,E);
M26:=mov(C,26,E);
CX1:=If(Cross(M5,M13),1,If(Cross(M13,M5),-1,0));
CX2:=If(Cross(M5,M26),2,If(Cross(M26,M5),-2,0));
CX3:=If(Cross(M13,M26),3,If(Cross(M26,M13),-3,0));
CX1+CX2+CX3



here are the possible crossovers



Mark17  
#3 Posted : Friday, May 28, 2010 6:50:09 AM(UTC)
Mark17

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/25/2010(UTC)
Posts: 55

Hi Henry, What does summing CX1, CX2, and CX3 achieve, exactly, since the different crossovers have been arbitrarily (?) assigned values of 1, 2, or 3 (+/-)? Thanks, Mark
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.