Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF - Calculate average of a calculated value. Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
joel_benton
Posted : Monday, December 31, 2012 4:12:58 PM
Platinum Customer 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.  

StockGuy
Posted : Monday, December 31, 2012 4:23:47 PM

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)

joel_benton
Posted : Monday, December 31, 2012 5:10:40 PM
Platinum Customer Platinum Customer

Joined: 10/20/2004
Posts: 4

Thank you, StockGuy.

Happy New Year.

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.