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

macd pcf Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
docctorwho
Posted : Monday, August 5, 2013 12:44:09 PM
Registered User
Joined: 12/2/2010
Posts: 9

i want to write a new indicator like such

 

if macd > avg(macd>0) or macd < avg(macd<0) anyhelp would be nice

 

Bruce_L
Posted : Monday, August 5, 2013 12:51:49 PM


Worden Trainer

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

That would depend entirely on your settings. The Understanding MACD topic explores the creation of Personal Criteria Formulas for MACD and MACD Histogram indicators.

If you are talking about an Exponential MACD 12,26,9 and I'm understanding the request correctly (which is not guaranteed), a Condition Formula for macd > avg(macd>0) could be written as:

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

While macd < avg(macd<0) could be written as:

XAVGC12 - XAVGC26 < XAVG(XAVGC12,9) - XAVG(XAVGC26,9) AND XAVG(XAVGC12,9) < XAVG(XAVGC26,9)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
docctorwho
Posted : Monday, August 5, 2013 1:38:27 PM
Registered User
Joined: 12/2/2010
Posts: 9

so xave refers to exp moving averaged?  nice ok... so then you written the macd here usind the closing price... i see... this is very helpful thanks

 

Bruce_L
Posted : Monday, August 5, 2013 1:48:17 PM


Worden Trainer

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

Yes, the XAVG refers to an exponential moving average. If you wanted to use simple moving averages instead, you could replace all instances of XAVG with AVG.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
docctorwho
Posted : Monday, August 5, 2013 1:57:58 PM
Registered User
Joined: 12/2/2010
Posts: 9

i want to set an average of the simple macd(5,10,10) > 0 over 1 yr and show a watch list where the simple macd(5,10,10) is greater then that average.

 

docctorwho
Posted : Monday, August 5, 2013 1:59:51 PM
Registered User
Joined: 12/2/2010
Posts: 9

sorry simple macd(5,10) ... duh

Bruce_L
Posted : Monday, August 5, 2013 2:16:07 PM


Worden Trainer

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

A Condition Formula for a Simple MACD 5,10 being greater than its 252-period simple moving average could be written as:

AVGC5 - AVGC10 > AVG(AVGC5,252) - AVG(AVGC10,252)



-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.