in Search

colored elders macd histogram

Last post 07-06-2009, 18:45 by mjdesmond3001. 4 replies.
Sort Posts: Previous Next
  •  07-06-2009, 15:43 30057

    colored elders macd histogram

    looking for the formula to color elders macd histogram red for down, green for up. i have this formula for his macd

    ( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E )

    now, i looked on the site and found a formula for colored macd histogram

    x:=MACD() - Mov(MACD(),9,E);
    If(x>=Ref(x,-1),x,0);
    If(x<Ref(x,-1),x,0)

    so i combined them with no luck

    x:=;( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E )
    If(x>=Ref(x,-1),x,0);
    If(x<Ref(x,-1),x,0)

    what am i doing wrong?

  •  07-06-2009, 16:30 30058 in reply to 30057

    Re: colored elders macd histogram

    MetaStock does not store colors directly in the formula.  However, they can be saved as part of the Chart or Template.

    The formula you mentioned has 2 plots (Two IF statements).  You have to set the colors of each plot separately, then you can save a Template from the chart if you want to more easily apply this indicator with the colors already established.
  •  07-06-2009, 18:42 30060 in reply to 30058

    Re: colored elders macd histogram

    actually, i just figured it out. heres the formula
    x:=Fml("macd elders");
    If(x>=Ref(x,-1),x,0);
    If(x

    you have to first copy the formula for macd elders
  •  07-06-2009, 18:43 30061 in reply to 30060

    Re: colored elders macd histogram

    sorry that didnt come out right, here it is again
    x:=Fml("macd elders");
    If(x>=Ref(x,-1),x,0);
    If(x
  •  07-06-2009, 18:45 30063 in reply to 30061

    Re: colored elders macd histogram

    x:=Fml("macd elders");
    If(x>=Ref(x,-1),x,0);
    If(x<Ref(x,-1),x,0)
View as RSS news feed in XML