Rank: Member
Groups: Registered, Registered Users Joined: 7/22/2006(UTC) Posts: 11 Location: Malaysia
|
I would like to create two Moving Averages and color the zone between them. How do I do this in Metastock?
Thanks!
|
|
|
|
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 idea comes from Jose Silva
M1:=Mov(C,10,S);
M2:=Mov(C,50,S);
even:=Cum(1)/2=Int(Cum(1)/2);
UM:=If (even,M1,M2);
LM:=If (even,M2,M1);
UM;LM;
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 7/22/2006(UTC) Posts: 11 Location: Malaysia
|
Perfect! Thank you Henry! Thank you Jose! :)
|
|
|
|
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.