in Search

95% Channel from Elder's book

Last post 04-23-2008, 10:44 by wabbit. 1 replies.
Sort Posts: Previous Next
  •  04-23-2008, 9:13 27008

    95% Channel from Elder's book

    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!
  •  04-23-2008, 10:44 27010 in reply to 27008

    Re: 95% Channel from Elder's book

    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 Big Smile [:D]


    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status : wabbit.com.au SkyPE online status
    My SkyPE account : wabbit.com.au

View as RSS news feed in XML