Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
Registered User Joined: 12/2/2010 Posts: 9
|
sorry simple macd(5,10) ... duh
|
|
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
|
|
Guest-1 |