Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/10/2004 Posts: 8
|
Hi and thank you for your wonderful support room. I need a weekly macd 12/26 divergence pcf. I need to see a divergence of the weekly 12/26 macd lines to price, not the histogram to price. If this can be coded, it would be a big help.
Thank you Dennis
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following:
SGN(4.5 * C + 3.5 * C5 + 2.5 * C10 + 1.5 * C15 + .5 * C20 - .5 * C25 - 1.5 * C30 - 2.5 * C35 - 3.5 * C40 - 4.5 * C45) - SGN(.3589743590 * C + .5563591205 * C5 + .6248929465 * C10 + .5916941726 * C15 + .4791687039 * C20 + .3057750324 * C25 + .0866685942 * C30 - .1657557502 * C35 - .4414072365 * C40 - 1.070558551 * (C45 + 11 / 13 * (C50 + 11 / 13 * (C55 + 11 / 13 * (C60 + 11 / 13 * (C65 + 11 / 13 * (C70 + 11 / 13 * (C75 + 11 / 13 * (C80 + 11 / 13 * (C85 + 11 / 13 * (C90 + 11 / 13 * (C95 + 11 / 13 * (C100 + 11 / 13 * (C105 + 11 / 13 * (C110 + 11 / 13 * (C115 + 11 / 13 * (C120 + 11 / 13 * (C125 + 11 / 13 * (C130 + 11 / 13 * (C135 + 11 / 13 * (C140 + 11 / 13 * (C145 + 11 / 13 * (C150 + 11 / 13 * (C155 + 11 / 13 * (C160 + 11 / 13 * (C165 + 11 / 13 * (C170 + 11 / 13 * (C175 + 11 / 13 * (C180 + 11 / 13 * (C185 + 11 / 13 * (C190 + 11 / 13 * (C195 + 11 / 13 * (C200 + 11 / 13 * (C205 + 11 / 13 * (C210 + 11 / 13 * (C215 + 11 / 13 * (C220 + 11 / 13 * (C225 + 11 / 13 * (C230 + 11 / 13 * (C235 + 11 / 13 * (C240 + 11 / 13 * (C245 + 11 / 13 * (C250)))))))))))))))))))))))))))))))))))))))))) + .3378143287 * (C45 + 25 / 27 * (C50 + 25 / 27 * (C55 + 25 / 27 * (C60 + 25 / 27 * (C65 + 25 / 27 * (C70 + 25 / 27 * (C75 + 25 / 27 * (C80 + 25 / 27 * (C85 + 25 / 27 * (C90 + 25 / 27 * (C95 + 25 / 27 * (C100 + 25 / 27 * (C105 + 25 / 27 * (C110 + 25 / 27 * (C115 + 25 / 27 * (C120 + 25 / 27 * (C125 + 25 / 27 * (C130 + 25 / 27 * (C135 + 25 / 27 * (C140 + 25 / 27 * (C145 + 25 / 27 * (C150 + 25 / 27 * (C155 + 25 / 27 * (C160 + 25 / 27 * (C165 + 25 / 27 * (C170 + 25 / 27 * (C175 + 25 / 27 * (C180 + 25 / 27 * (C185 + 25 / 27 * (C190 + 25 / 27 * (C195 + 25 / 27 * (C200 + 25 / 27 * (C205 + 25 / 27 * (C210 + 25 / 27 * (C215 + 25 / 27 * (C220 + 25 / 27 * (C225 + 25 / 27 * (C230 + 25 / 27 * (C235 + 25 / 27 * (C240 + 25 / 27 * (C245 + 25 / 27 * (C250 + 25 / 27 * (C255 + 25 / 27 * (C260 + 25 / 27 * (C265 + 25 / 27 * (C270 + 25 / 27 * (C275 + 25 / 27 * (C280 + 25 / 27 * (C285 + 25 / 27 * (C290 + 25 / 27 * (C295 + 25 / 27 * (C300 + 25 / 27 * (C305 + 25 / 27 * (C310 + 25 / 27 * (C315 + 25 / 27 * (C320 + 25 / 27 * (C325 + 25 / 27 * (C330 + 25 / 27 * (C335 + 25 / 27 * (C340 + 25 / 27 * (C345 + 25 / 27 * (C350 + 25 / 27 * (C355 + 25 / 27 * (C360 + 25 / 27 * (C365 + 25 / 27 * (C370 + 25 / 27 * (C375 + 25 / 27 * (C380 + 25 / 27 * (C385 + 25 / 27 * (C390 + 25 / 27 * (C395 + 25 / 27 * (C400 + 25 / 27 * (C405 + 25 / 27 * (C410 + 25 / 27 * (C415 + 25 / 27 * (C420 + 25 / 27 * (C425 + 25 / 27 * (C430 + 25 / 27 * (C435 + 25 / 27 * (C440 + 25 / 27 * (C445 + 25 / 27 * (C450 + 25 / 27 * (C455 + 25 / 27 * (C460 + 25 / 27 * (C465 + 25 / 27 * (C470 + 25 / 27 * (C475 + 25 / 27 * (C480 + 25 / 27 * (C485 + 25 / 27 * (C490))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) <> 0
It compares the Slope of the 10-Week Linear Regression of the Closing Price to the Slope of the 10-Week Linear Regression of the 12-Week Exponential Moving Average of Closing Price minus the 26-Week Exponential Moving Average of Closing Price. You may wish to review the following:
How to create a Personal Criteria Forumula (PCF) Handy PCF example formulas to help you learn the syntax of PCFs! Using Linear Regression Sorts to Help Spot Divergences Understanding MACD
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/10/2004 Posts: 8
|
Thank you.
Dennis
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |