Rank: Newbie
Groups: Registered, Registered Users Joined: 4/8/2008(UTC) Posts: 8
|
In his book he mentions about plotting a channel using two moving averages, but in metastock I have no idea of how to translate it to the syntax code of formulas.
Can anyone give me an example of how would that look like as a formula code?
top channel line = MME + MME * coeficient
bottom channel line = MME - MME * coeficient
thanks!
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Have a look in the MS Users Manual for the envelope indicator. This functionality has already been programmed for you. If you want to learn how to program this yourself, then try something along these lines: Code:prd:=10;
data:=CLOSE;
coeff:=0.001;
ma:=Mov(data, prd, E);
ul:=ma*(1+coeff);
ll:=ma*(1-coeff);
{plot}
ul;
ma;
ll;
As Dr Elder said in his book, you will have to play around with the coefficient value to "fit" the envelope around the data. Hope this helps. wabbit [:D]
|
|
|
|
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.