Platinum Customer
Joined: 10/20/2004 Posts: 4
|
I'm deriving MACD for a class presentation.
I calculated EMA12 (XAVGC12) and EMA26 (XAVGC26), and
EMA12 - EMA26 (XAVGC12 - XAVGC26)
I now want to create an indicator that is the XAVG of (EMA12 - EMA26) for a period of 9 bars.
I'm having trouble with this last calculation; I get error messages.
Can you please help with this PCF.
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
You can't put an operator (- + * /) inside of an XAVG ( ).
The formula you're looking for is:
XAVG(XAVGC12,9) - XAVG(XAVGC26,9)
|
Platinum Customer
Joined: 10/20/2004 Posts: 4
|
Thank you, StockGuy.
Happy New Year.
|