in Search

MACDF

Last post 03-02-2009, 8:36 by Kraniv. 2 replies.
Sort Posts: Previous Next
  •  03-02-2009, 5:27 29060

    MACDF

    Hi guys I cant seem to find MACD forest in metastock pro fx 10 - anyone any clue?
    Also if doesnt exist does someone have indicator code? Tx in advance

  •  03-02-2009, 7:31 29061 in reply to 29060

    Re: MACDF

    Do a search of the forum for "macd histogram" and find one of the many variants of this indicator.


    Hope this helps.

    wabbit Big Smile [:D]


    "The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
    Edsgar W. Dijkstra

     

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

  •  03-02-2009, 8:36 29062 in reply to 29061

    Re: MACDF

    Thanks I used this in case anyone else is reading for futures ref: then changed the line style to forest after -



    { User inputs }
    shortPds:=Input("shorter MACD periods",
    1,260,12);
    longPds:=Input("longer MACD periods",
    2,2600,26);
    triggerPds:=Input("MACD signal periods",
    1,260,9);
    plot:=Input("plot: [1]MACD, [2]Histogram",
    1,2,1);

    { MACD }
    Mac:=Mov(C,shortPds,E)-Mov(C,longPds,E);

    { Signal }
    Signal:=Mov(Mac,triggerPds,E);

    { Histogram }
    Hist:=Mac-Signal;

    { Plot in own window }
    0;If(plot=1,Signal,Hist);
    If(plot=1,Mac,Hist)
View as RSS news feed in XML