Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF for MACD Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
hanc0331
Posted : Saturday, August 17, 2013 12:02:29 PM
Registered User
Joined: 1/31/2013
Posts: 7

Hi,

I need help on PCF for the following:

Today's MACD (12,26) is equal or larger than its Exponential Moving Average (9) 

both are on a daily closing price basis.

 

Thanks in advance!

Bruce_L
Posted : Monday, August 19, 2013 8:45:21 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Please try the following:

XAVGC12 - XAVGC26 > XAVG(XAVGC12,9) - XAVG(XAVGC26,9)

Understanding MACD



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hanc0331
Posted : Monday, August 19, 2013 4:37:36 PM
Registered User
Joined: 1/31/2013
Posts: 7

Works great! Thanks Bruce!

Bruce_L
Posted : Monday, August 19, 2013 4:42:18 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ashok23rao
Posted : Tuesday, September 24, 2013 10:52:27 AM
Registered User
Joined: 8/19/2010
Posts: 4

I am trying to write a simple PCF but am not sure I'm getteing the right results

Standard MACD today is below 0 line. Cross over above exponential 9 is happening today. Is this correct?

(XAVGC12-XAVGC26)<0
and
(XAVGC12 - XAVGC26 >= XAVG(XAVGC12,9) - XAVG(XAVGC26,9))
and
(XAVGC12.1 - XAVGC26.1 < XAVG(XAVGC12.1,9.1) - XAVG(XAVGC26.1,9.1))

Thanks for your help!

 

Bruce_L
Posted : Tuesday, September 24, 2013 10:57:40 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You don't want or need the 9.1s in the formula. the bars ago parameter is handled in the XAVGC portion of the XAVG() function.

XAVGC12 < XAVGC26 AND XAVGC12 - XAVGC26 >= XAVG(XAVGC12,9) - XAVG(XAVGC26,9) AND XAVGC12.1 - XAVGC26.1 < XAVG(XAVGC12.1,9) - XAVG(XAVGC26.1,9)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ashok23rao
Posted : Tuesday, September 24, 2013 11:05:17 AM
Registered User
Joined: 8/19/2010
Posts: 4

Thanks!

Bruce_L
Posted : Tuesday, September 24, 2013 11:06:36 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.