Registered User Joined: 8/7/2006 Posts: 14
|
Please help me with Weekly MACD lines divergence PCF using 3,13,8 criteria. I do not want the histogram just the lines.
thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I'm actually not sure what you mean by divergence in this case. The following Personal Criteria Formulas might be components of a PCF to find a divergence:
A - Raw Weekly Exponential MACD 3,13 (Fast):
.500488758553275 * (C + .5 * (C5 + .5 * (C10 + .5 * (C15 + .5 * (C20 + .5 * (C25 + .5 * (C30 + .5 * (C35 + .5 * (C40 + .5 * (C45)))))))))) - .142996048056393 * (C + 6 / 7 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220)))))))))))))))))))))))))))))))))))))))))))))
B - Weekly Exponential MACD 3,13,8 Trigger (Slow):
.622769593817023 * (C + 7 / 9 * (C5 + 7 / 9 * (C10 + 7 / 9 * (C15 + 7 / 9 * (C20 + 7 / 9 * (C25 + 7 / 9 * (C30 + 7 / 9 * (C35 + 7 / 9 * (C40 + 7 / 9 * (C45 + 7 / 9 * (C50 + 7 / 9 * (C55 + 7 / 9 * (C60 + 7 / 9 * (C65 + 7 / 9 * (C70 + 7 / 9 * (C75 + 7 / 9 * (C80 + 7 / 9 * (C85 + 7 / 9 * (C90 + 7 / 9 * (C95 + 7 / 9 * (C100 + 7 / 9 * (C105 + 7 / 9 * (C110 + 7 / 9 * (C115 + 7 / 9 * (C120 + 7 / 9 * (C125 + 7 / 9 * (C130 + 7 / 9 * (C135)))))))))))))))))))))))))))) - .20019550342131 * (C + .5 * (C5 + .5 * (C10 + .5 * (C15 + .5 * (C20 + .5 * (C25 + .5 * (C30 + .5 * (C35 + .5 * (C40 + .5 * (C45)))))))))) - .343190515335343 * (C + 6 / 7 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220)))))))))))))))))))))))))))))))))))))))))))))
C - Weekly Exponential MACD 3,13,8 Histogram:
.700684261974585 * (C + .5 * (C5 + .5 * (C10 + .5 * (C15 + .5 * (C20 + .5 * (C25 + .5 * (C30 + .5 * (C35 + .5 * (C40 + .5 * (C45)))))))))) + .20019446727895 * (C + 6 / 7 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220))))))))))))))))))))))))))))))))))))))))))))) - .622769593817023 * (C + 7 / 9 * (C5 + 7 / 9 * (C10 + 7 / 9 * (C15 + 7 / 9 * (C20 + 7 / 9 * (C25 + 7 / 9 * (C30 + 7 / 9 * (C35 + 7 / 9 * (C40 + 7 / 9 * (C45 + 7 / 9 * (C50 + 7 / 9 * (C55 + 7 / 9 * (C60 + 7 / 9 * (C65 + 7 / 9 * (C70 + 7 / 9 * (C75 + 7 / 9 * (C80 + 7 / 9 * (C85 + 7 / 9 * (C90 + 7 / 9 * (C95 + 7 / 9 * (C100 + 7 / 9 * (C105 + 7 / 9 * (C110 + 7 / 9 * (C115 + 7 / 9 * (C120 + 7 / 9 * (C125 + 7 / 9 * (C130 + 7 / 9 * (C135))))))))))))))))))))))))))))
D - Slope of Exponential Raw Weekly MACD 3,13 (Fast):
5 * C / 14 - .250244379276637 * (C5 + .5 * (C10 + .5 * (C15 + .5 * (C20 + .5 * (C25 + .5 * (C30 + .5 * (C35 + .5 * (C40 + .5 * (C45 + .5 * (C50)))))))))) + .020428006865199 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220 + 6 / 7 * (C225)))))))))))))))))))))))))))))))))))))))))))))
E - Slope of Exponential Weekly MACD 3,13,8 Trigger (Slow):
5 * C / 63 + .100097751710655 * (C5 + .5 * (C10 + .5 * (C15 + .5 * (C20 + .5 * (C25 + .5 * (C30 + .5 * (C35 + .5 * (C40 + .5 * (C45 + .5 * (C50)))))))))) + .0490272164764775 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220 + 6 / 7 * (C225))))))))))))))))))))))))))))))))))))))))))))) - .138393243070449 * (C5 + 7 / 9 * (C10 + 7 / 9 * (C15 + 7 / 9 * (C20 + 7 / 9 * (C25 + 7 / 9 * (C30 + 7 / 9 * (C35 + 7 / 9 * (C40 + 7 / 9 * (C45 + 7 / 9 * (C50 + 7 / 9 * (C55 + 7 / 9 * (C60 + 7 / 9 * (C65 + 7 / 9 * (C70 + 7 / 9 * (C75 + 7 / 9 * (C80 + 7 / 9 * (C85 + 7 / 9 * (C90 + 7 / 9 * (C95 + 7 / 9 * (C100 + 7 / 9 * (C105 + 7 / 9 * (C110 + 7 / 9 * (C115 + 7 / 9 * (C120 + 7 / 9 * (C125 + 7 / 9 * (C130 + 7 / 9 * (C135 + 7 / 9 * (C140))))))))))))))))))))))))))))
F - Slope of Exponential Weekly MACD 3,13,8 Histogram:
5 * C / 18 - .350342130987292 * (C5 + .5 * (C10 + .5 * (C15 + .5 * (C20 + .5 * (C25 + .5 * (C30 + .5 * (C35 + .5 * (C40 + .5 * (C45 + .5 * (C50)))))))))) - .0285992096112786 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220 + 6 / 7 * (C225))))))))))))))))))))))))))))))))))))))))))))) + .138393243070449 * (C5 + 7 / 9 * (C10 + 7 / 9 * (C15 + 7 / 9 * (C20 + 7 / 9 * (C25 + 7 / 9 * (C30 + 7 / 9 * (C35 + 7 / 9 * (C40 + 7 / 9 * (C45 + 7 / 9 * (C50 + 7 / 9 * (C55 + 7 / 9 * (C60 + 7 / 9 * (C65 + 7 / 9 * (C70 + 7 / 9 * (C75 + 7 / 9 * (C80 + 7 / 9 * (C85 + 7 / 9 * (C90 + 7 / 9 * (C95 + 7 / 9 * (C100 + 7 / 9 * (C105 + 7 / 9 * (C110 + 7 / 9 * (C115 + 7 / 9 * (C120 + 7 / 9 * (C125 + 7 / 9 * (C130 + 7 / 9 * (C135 + 7 / 9 * (C140))))))))))))))))))))))))))))
I know you indicated you didn't need the Histogram, but it may be useful in detecting a divergence depending on the definition. Here are some possibilities:
Increasing Raw MACD and decreasing MACD Trigger:
D > 0 AND E < 0
Decreasing Raw MACD and increasing MACD Trigger:
D < 0 AND E > 0
Raw MACD and MACD Trigger slopes have different Signs:
SGN(D ) <> SGN(E )
Raw MACD and MACD Trigger are getting further apart:
SGN(C ) = SGN(F )
You need to substitute the appropriate PCF components for A, B, C, D, E and F. If you provide an objective definition of the divergence you wish to detect, we may be able to help you refine your PCF further. You may wish to review the following:
Understanding MACD How to create a Personal Criteria Forumula (PCF) Handy PCF example formulas to help you learn the syntax of PCFs! PCF Formula Descriptions Cascades of Moving Averages
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 8/7/2006 Posts: 14
|
Thanks Bruce
Vulcan
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|