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 |

macd Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
pmatus1
Posted : Tuesday, July 5, 2011 2:32:31 PM
Registered User
Joined: 9/11/2007
Posts: 28
hi, how do i write a pcf that shows where the macd (short 12, long26) line is over the exp moving average line of 9? and the same for when the line is below?
Winnie
Posted : Tuesday, July 5, 2011 3:10:46 PM
Registered User
Joined: 10/7/2004
Posts: 1,006
Please try these PCFs in Daily Time Frame:

Exp
MACD 12,26,9 Histogram, Above 0, Today
(XAVGC12.0 - XAVGC26.0) - (XAVG(XAVGC12.0,9) - XAVG(XAVGC26.0,9)) >0

Exp
MACD 12,26,9 Histogram, Below 0, Today
(XAVGC12.0 - XAVGC26.0) - (XAVG(XAVGC12.0,9) - XAVG(XAVGC26.0,9)) <0

Exp
MACD12,26,9 Crossing x UP Exp SL9, Today, or (Exp Histogram x UP 0)
(XAVGC12 - XAVGC26) > (XAVG(XAVGC12,9) - XAVG(XAVGC26,9)) AND (XAVGC12.1 - XAVGC26.1) < (XAVG(XAVGC12.1,9) - XAVG(XAVGC26.1,9))

Exp
MACD12,26,9 Crossing x DN Exp SL9,Today or (Exp Histogram x DN 0)
(XAVGC12 - XAVGC26) < (XAVG(XAVGC12,9) - XAVG(XAVGC26,9)) AND (XAVGC12.1 - XAVGC26.1) > (XAVG(XAVGC12.1,9) - XAVG(XAVGC26.1,9))

Exp
MACD12,26,9 Crossing x UP/DN Exp SL9, Today or (Exp Histogram x UP/DN 0)
SGN((XAVGC12.0 - XAVGC26.0) - (XAVG(XAVGC12.0,9) - XAVG(XAVGC26.0,9))) - SGN((XAVGC12.1 - XAVGC26.1) - (XAVG(XAVGC12.1,9) - XAVG(XAVGC26.1,9)))
pmatus1
Posted : Wednesday, July 6, 2011 8:45:37 AM
Registered User
Joined: 9/11/2007
Posts: 28
thx but it doesnt show what i was looking for, i need the macd (short 12, long26) line is over the exp moving average line of 9? and the same for when the line is below?
Bruce_L
Posted : Thursday, July 7, 2011 7:26:19 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
bgm,
The formula for the MACD being above its Moving Average is exactly the same as the formula for the MACD Histogram being above zero (the first formula provided by Winnie) and the formula for the MACD being below its Moving Average is exactly the same as the formula for the MACD Histogram being below zero (the second formula provided).

Understanding MACD

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