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?
|
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)))
|
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?
|
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
|