in Search

Variable input MACD [RESOLVED]

Last post 02-18-2006, 19:45 by FTEHA. 5 replies.
Sort Posts: Previous Next
  •  02-18-2006, 15:43 14851

    Variable input MACD [RESOLVED]

    I want to creat anew macad with periods 6 & 12 days insted of 12 & 26.
    I wrote the following equation:
    mov(c,6,e)-mov(c,12,e)
    the result was a curve without centeral line so I corrected the previous equation to be as
    mov(c,6,e)-mov(c,12,e);0
    then centeral line appeared but not connect between the 2 Y axis!!!
    and I cant have the signal line with the new MACD.
    pls I need the correct and complete equation
    thanks
  •  02-18-2006, 15:53 14853 in reply to 14851

    Re: Variable input MACD [RESOLVED]

    The signal line is a moving average of the MACD formula:

    x:=Input("Signal Periods",1,100,9);
    Mov(C,6,E)-Mov(C,12,E);
    Mov(Mov(C,6,E)-Mov(C,12,E),X,E);

    You can plot a 0 line in the formula language but it only goes to the last point of data in the chart. If you want the line to extend all the way across the chart you need to add the 0 value into the Horizontal Line section of the formula properties.
  •  02-18-2006, 15:58 14854 in reply to 14851

    Re: Variable input MACD [RESOLVED]

    Or this...

    ma1:=Input("Short MA",1,100,6);
    ma2:=Input("Long MA",1,100,12);
    plot:=Mov(C,ma1,E )-Mov(C,ma2,E);
    plot;0
    Traders' Consortium
  •  02-18-2006, 17:12 14857 in reply to 14851

    thanks

    thanks alot
    I used the first formula it gave both macd and signal line
    the second gave only macd
  •  02-18-2006, 17:40 14858 in reply to 14851

    Many ways to skin a cat

  •  02-18-2006, 19:45 14860 in reply to 14851

    Re: Many ways to skin a cat

    THANKS FOR EVERY BODY
View as RSS news feed in XML