Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF for 10 wk ema (50 da) above 30 wk ema (150 da) Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
larryev
Posted : Thursday, February 8, 2018 1:56:22 PM
Registered User
Joined: 12/6/2004
Posts: 7

I could use some help with TC2000 v7 PCF's. I'm not having any luck trying to write a PCF for the 10 ema crossing above, or being above, the 30 wk ema. The PCF works on some charts but misses a whole lot more. Need you help! Thank you!

 

 

Bruce_L
Posted : Thursday, February 8, 2018 2:09:31 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

To check for being above as a PCF.

.26761805 * (ABS(C - C5) + 9 / 11 * (ABS(C5 - C10) + 9 / 11 * (ABS(C10 - C15) + 9 / 11 * (ABS(C15 - C20) + 9 / 11 * (ABS(C20 - C25) + 9 / 11 * (ABS(C25 - C30) + 9 / 11 * (ABS(C30 - C35) + 9 / 11 * (ABS(C35 - C40) + 9 / 11 * (ABS(C40 - C45) + 9 / 11 * (ABS(C45 - C50) + 9 / 11 * (ABS(C50 - C55) + 9 / 11 * (ABS(C55 - C60) + 9 / 11 * (ABS(C60 - C65) + 9 / 11 * (ABS(C65 - C70) + 9 / 11 * (ABS(C70 - C75) + 9 / 11 * (ABS(C75 - C80) + 9 / 11 * (ABS(C80 - C85) + 9 / 11 * (ABS(C85 - C90) + 9 / 11 * (ABS(C90 - C95) + 9 / 11 * (ABS(C95 - C100) + 9 / 11 * (ABS(C100 - C105) + 9 / 11 * (ABS(C105 - C110) + 9 / 11 * (ABS(C110 - C115) + 9 / 11 * (ABS(C115 - C120) + 9 / 11 * (ABS(C120 - C125) + 9 / 11 * (ABS(C125 - C130) + 9 / 11 * (ABS(C130 - C135) + 9 / 11 * (ABS(C135 - C140) + 9 / 11 * (ABS(C140 - C145) + 9 / 11 * (ABS(C145 - C150) + 9 / 11 * (ABS(C150 - C155) + 9 / 11 * (ABS(C155 - C160) + 9 / 11 * (ABS(C160 - C165) + 9 / 11 * (ABS(C165 - C170) + 9 / 11 * (ABS(C170 - C175)))))))))))))))))))))))))))))))))))) > .094968993 * (ABS(C - C5) + 29 / 31 * (ABS(C5 - C10) + 29 / 31 * (ABS(C10 - C15) + 29 / 31 * (ABS(C15 - C20) + 29 / 31 * (ABS(C20 - C25) + 29 / 31 * (ABS(C25 - C30) + 29 / 31 * (ABS(C30 - C35) + 29 / 31 * (ABS(C35 - C40) + 29 / 31 * (ABS(C40 - C45) + 29 / 31 * (ABS(C45 - C50) + 29 / 31 * (ABS(C50 - C55) + 29 / 31 * (ABS(C55 - C60) + 29 / 31 * (ABS(C60 - C65) + 29 / 31 * (ABS(C65 - C70) + 29 / 31 * (ABS(C70 - C75) + 29 / 31 * (ABS(C75 - C80) + 29 / 31 * (ABS(C80 - C85) + 29 / 31 * (ABS(C85 - C90) + 29 / 31 * (ABS(C90 - C95) + 29 / 31 * (ABS(C95 - C100) + 29 / 31 * (ABS(C100 - C105) + 29 / 31 * (ABS(C105 - C110) + 29 / 31 * (ABS(C110 - C115) + 29 / 31 * (ABS(C115 - C120) + 29 / 31 * (ABS(C120 - C125) + 29 / 31 * (ABS(C125 - C130) + 29 / 31 * (ABS(C130 - C135) + 29 / 31 * (ABS(C135 - C140) + 29 / 31 * (ABS(C140 - C145) + 29 / 31 * (ABS(C145 - C150) + 29 / 31 * (ABS(C150 - C155) + 29 / 31 * (ABS(C155 - C160) + 29 / 31 * (ABS(C160 - C165) + 29 / 31 * (ABS(C165 - C170) + 29 / 31 * (ABS(C170 - C175) + 29 / 31 * (ABS(C175 - C180) + 29 / 31 * (ABS(C180 - C185) + 29 / 31 * (ABS(C185 - C190) + 29 / 31 * (ABS(C190 - C195) + 29 / 31 * (ABS(C195 - C200) + 29 / 31 * (ABS(C200 - C205) + 29 / 31 * (ABS(C205 - C210) + 29 / 31 * (ABS(C210 - C215) + 29 / 31 * (ABS(C215 - C220) + 29 / 31 * (ABS(C220 - C225) + 29 / 31 * (ABS(C225 - C230) + 29 / 31 * (ABS(C230 - C235) + 29 / 31 * (ABS(C235 - C240) + 29 / 31 * (ABS(C240 - C245) + 29 / 31 * (ABS(C245 - C250) + 29 / 31 * (ABS(C250 - C255) + 29 / 31 * (ABS(C255 - C260) + 29 / 31 * (ABS(C260 - C265) + 29 / 31 * (ABS(C265 - C270) + 29 / 31 * (ABS(C270 - C275) + 29 / 31 * (ABS(C275 - C280) + 29 / 31 * (ABS(C280 - C285) + 29 / 31 * (ABS(C285 - C290) + 29 / 31 * (ABS(C290 - C295) + 29 / 31 * (ABS(C295 - C300) + 29 / 31 * (ABS(C300 - C305) + 29 / 31 * (ABS(C305 - C310) + 29 / 31 * (ABS(C310 - C315) + 29 / 31 * (ABS(C315 - C320) + 29 / 31 * (ABS(C320 - C325) + 29 / 31 * (ABS(C325 - C330) + 29 / 31 * (ABS(C330 - C335) + 29 / 31 * (ABS(C335 - C340) + 29 / 31 * (ABS(C340 - C345) + 29 / 31 * (ABS(C345 - C350) + 29 / 31 * (ABS(C350 - C355) + 29 / 31 * (ABS(C355 - C360) + 29 / 31 * (ABS(C360 - C365) + 29 / 31 * (ABS(C365 - C370) + 29 / 31 * (ABS(C370 - C375) + 29 / 31 * (ABS(C375 - C380) + 29 / 31 * (ABS(C380 - C385) + 29 / 31 * (ABS(C385 - C390) + 29 / 31 * (ABS(C390 - C395) + 29 / 31 * (ABS(C395 - C400) + 29 / 31 * (ABS(C400 - C405) + 29 / 31 * (ABS(C405 - C410) + 29 / 31 * (ABS(C410 - C415) + 29 / 31 * (ABS(C415 - C420) + 29 / 31 * (ABS(C420 - C425) + 29 / 31 * (ABS(C425 - C430) + 29 / 31 * (ABS(C430 - C435) + 29 / 31 * (ABS(C435 - C440) + 29 / 31 * (ABS(C440 - C445) + 29 / 31 * (ABS(C445 - C450) + 29 / 31 * (ABS(C450 - C455) + 29 / 31 * (ABS(C455 - C460) + 29 / 31 * (ABS(C460 - C465) + 29 / 31 * (ABS(C465 - C470) + 29 / 31 * (ABS(C470 - C475) + 29 / 31 * (ABS(C475 - C480) + 29 / 31 * (ABS(C480 - C485) + 29 / 31 * (ABS(C485 - C490) + 29 / 31 * (ABS(C490 - C495) + 29 / 31 * (ABS(C495 - C500) + 29 / 31 * (ABS(C500 - C505) + 29 / 31 * (ABS(C505 - C510) + 29 / 31 * (ABS(C510 - C515) + 29 / 31 * (ABS(C515 - C520)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

To check for crossing up through, you would also need to compare the previous bar.

.26761805 * (ABS(C - C5) + 9 / 11 * (ABS(C5 - C10) + 9 / 11 * (ABS(C10 - C15) + 9 / 11 * (ABS(C15 - C20) + 9 / 11 * (ABS(C20 - C25) + 9 / 11 * (ABS(C25 - C30) + 9 / 11 * (ABS(C30 - C35) + 9 / 11 * (ABS(C35 - C40) + 9 / 11 * (ABS(C40 - C45) + 9 / 11 * (ABS(C45 - C50) + 9 / 11 * (ABS(C50 - C55) + 9 / 11 * (ABS(C55 - C60) + 9 / 11 * (ABS(C60 - C65) + 9 / 11 * (ABS(C65 - C70) + 9 / 11 * (ABS(C70 - C75) + 9 / 11 * (ABS(C75 - C80) + 9 / 11 * (ABS(C80 - C85) + 9 / 11 * (ABS(C85 - C90) + 9 / 11 * (ABS(C90 - C95) + 9 / 11 * (ABS(C95 - C100) + 9 / 11 * (ABS(C100 - C105) + 9 / 11 * (ABS(C105 - C110) + 9 / 11 * (ABS(C110 - C115) + 9 / 11 * (ABS(C115 - C120) + 9 / 11 * (ABS(C120 - C125) + 9 / 11 * (ABS(C125 - C130) + 9 / 11 * (ABS(C130 - C135) + 9 / 11 * (ABS(C135 - C140) + 9 / 11 * (ABS(C140 - C145) + 9 / 11 * (ABS(C145 - C150) + 9 / 11 * (ABS(C150 - C155) + 9 / 11 * (ABS(C155 - C160) + 9 / 11 * (ABS(C160 - C165) + 9 / 11 * (ABS(C165 - C170) + 9 / 11 * (ABS(C170 - C175)))))))))))))))))))))))))))))))))))) > .094968993 * (ABS(C - C5) + 29 / 31 * (ABS(C5 - C10) + 29 / 31 * (ABS(C10 - C15) + 29 / 31 * (ABS(C15 - C20) + 29 / 31 * (ABS(C20 - C25) + 29 / 31 * (ABS(C25 - C30) + 29 / 31 * (ABS(C30 - C35) + 29 / 31 * (ABS(C35 - C40) + 29 / 31 * (ABS(C40 - C45) + 29 / 31 * (ABS(C45 - C50) + 29 / 31 * (ABS(C50 - C55) + 29 / 31 * (ABS(C55 - C60) + 29 / 31 * (ABS(C60 - C65) + 29 / 31 * (ABS(C65 - C70) + 29 / 31 * (ABS(C70 - C75) + 29 / 31 * (ABS(C75 - C80) + 29 / 31 * (ABS(C80 - C85) + 29 / 31 * (ABS(C85 - C90) + 29 / 31 * (ABS(C90 - C95) + 29 / 31 * (ABS(C95 - C100) + 29 / 31 * (ABS(C100 - C105) + 29 / 31 * (ABS(C105 - C110) + 29 / 31 * (ABS(C110 - C115) + 29 / 31 * (ABS(C115 - C120) + 29 / 31 * (ABS(C120 - C125) + 29 / 31 * (ABS(C125 - C130) + 29 / 31 * (ABS(C130 - C135) + 29 / 31 * (ABS(C135 - C140) + 29 / 31 * (ABS(C140 - C145) + 29 / 31 * (ABS(C145 - C150) + 29 / 31 * (ABS(C150 - C155) + 29 / 31 * (ABS(C155 - C160) + 29 / 31 * (ABS(C160 - C165) + 29 / 31 * (ABS(C165 - C170) + 29 / 31 * (ABS(C170 - C175) + 29 / 31 * (ABS(C175 - C180) + 29 / 31 * (ABS(C180 - C185) + 29 / 31 * (ABS(C185 - C190) + 29 / 31 * (ABS(C190 - C195) + 29 / 31 * (ABS(C195 - C200) + 29 / 31 * (ABS(C200 - C205) + 29 / 31 * (ABS(C205 - C210) + 29 / 31 * (ABS(C210 - C215) + 29 / 31 * (ABS(C215 - C220) + 29 / 31 * (ABS(C220 - C225) + 29 / 31 * (ABS(C225 - C230) + 29 / 31 * (ABS(C230 - C235) + 29 / 31 * (ABS(C235 - C240) + 29 / 31 * (ABS(C240 - C245) + 29 / 31 * (ABS(C245 - C250) + 29 / 31 * (ABS(C250 - C255) + 29 / 31 * (ABS(C255 - C260) + 29 / 31 * (ABS(C260 - C265) + 29 / 31 * (ABS(C265 - C270) + 29 / 31 * (ABS(C270 - C275) + 29 / 31 * (ABS(C275 - C280) + 29 / 31 * (ABS(C280 - C285) + 29 / 31 * (ABS(C285 - C290) + 29 / 31 * (ABS(C290 - C295) + 29 / 31 * (ABS(C295 - C300) + 29 / 31 * (ABS(C300 - C305) + 29 / 31 * (ABS(C305 - C310) + 29 / 31 * (ABS(C310 - C315) + 29 / 31 * (ABS(C315 - C320) + 29 / 31 * (ABS(C320 - C325) + 29 / 31 * (ABS(C325 - C330) + 29 / 31 * (ABS(C330 - C335) + 29 / 31 * (ABS(C335 - C340) + 29 / 31 * (ABS(C340 - C345) + 29 / 31 * (ABS(C345 - C350) + 29 / 31 * (ABS(C350 - C355) + 29 / 31 * (ABS(C355 - C360) + 29 / 31 * (ABS(C360 - C365) + 29 / 31 * (ABS(C365 - C370) + 29 / 31 * (ABS(C370 - C375) + 29 / 31 * (ABS(C375 - C380) + 29 / 31 * (ABS(C380 - C385) + 29 / 31 * (ABS(C385 - C390) + 29 / 31 * (ABS(C390 - C395) + 29 / 31 * (ABS(C395 - C400) + 29 / 31 * (ABS(C400 - C405) + 29 / 31 * (ABS(C405 - C410) + 29 / 31 * (ABS(C410 - C415) + 29 / 31 * (ABS(C415 - C420) + 29 / 31 * (ABS(C420 - C425) + 29 / 31 * (ABS(C425 - C430) + 29 / 31 * (ABS(C430 - C435) + 29 / 31 * (ABS(C435 - C440) + 29 / 31 * (ABS(C440 - C445) + 29 / 31 * (ABS(C445 - C450) + 29 / 31 * (ABS(C450 - C455) + 29 / 31 * (ABS(C455 - C460) + 29 / 31 * (ABS(C460 - C465) + 29 / 31 * (ABS(C465 - C470) + 29 / 31 * (ABS(C470 - C475) + 29 / 31 * (ABS(C475 - C480) + 29 / 31 * (ABS(C480 - C485) + 29 / 31 * (ABS(C485 - C490) + 29 / 31 * (ABS(C490 - C495) + 29 / 31 * (ABS(C495 - C500) + 29 / 31 * (ABS(C500 - C505) + 29 / 31 * (ABS(C505 - C510) + 29 / 31 * (ABS(C510 - C515) + 29 / 31 * (ABS(C515 - C520))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND .26761805 * (ABS(C5 - C10) + 9 / 11 * (ABS(C10 - C15) + 9 / 11 * (ABS(C15 - C20) + 9 / 11 * (ABS(C20 - C25) + 9 / 11 * (ABS(C25 - C30) + 9 / 11 * (ABS(C30 - C35) + 9 / 11 * (ABS(C35 - C40) + 9 / 11 * (ABS(C40 - C45) + 9 / 11 * (ABS(C45 - C50) + 9 / 11 * (ABS(C50 - C55) + 9 / 11 * (ABS(C55 - C60) + 9 / 11 * (ABS(C60 - C65) + 9 / 11 * (ABS(C65 - C70) + 9 / 11 * (ABS(C70 - C75) + 9 / 11 * (ABS(C75 - C80) + 9 / 11 * (ABS(C80 - C85) + 9 / 11 * (ABS(C85 - C90) + 9 / 11 * (ABS(C90 - C95) + 9 / 11 * (ABS(C95 - C100) + 9 / 11 * (ABS(C100 - C105) + 9 / 11 * (ABS(C105 - C110) + 9 / 11 * (ABS(C110 - C115) + 9 / 11 * (ABS(C115 - C120) + 9 / 11 * (ABS(C120 - C125) + 9 / 11 * (ABS(C125 - C130) + 9 / 11 * (ABS(C130 - C135) + 9 / 11 * (ABS(C135 - C140) + 9 / 11 * (ABS(C140 - C145) + 9 / 11 * (ABS(C145 - C150) + 9 / 11 * (ABS(C150 - C155) + 9 / 11 * (ABS(C155 - C160) + 9 / 11 * (ABS(C160 - C165) + 9 / 11 * (ABS(C165 - C170) + 9 / 11 * (ABS(C170 - C175) + 9 / 11 * (ABS(C175 - C180)))))))))))))))))))))))))))))))))))) <= .094968993 * (ABS(C5 - C10) + 29 / 31 * (ABS(C10 - C15) + 29 / 31 * (ABS(C15 - C20) + 29 / 31 * (ABS(C20 - C25) + 29 / 31 * (ABS(C25 - C30) + 29 / 31 * (ABS(C30 - C35) + 29 / 31 * (ABS(C35 - C40) + 29 / 31 * (ABS(C40 - C45) + 29 / 31 * (ABS(C45 - C50) + 29 / 31 * (ABS(C50 - C55) + 29 / 31 * (ABS(C55 - C60) + 29 / 31 * (ABS(C60 - C65) + 29 / 31 * (ABS(C65 - C70) + 29 / 31 * (ABS(C70 - C75) + 29 / 31 * (ABS(C75 - C80) + 29 / 31 * (ABS(C80 - C85) + 29 / 31 * (ABS(C85 - C90) + 29 / 31 * (ABS(C90 - C95) + 29 / 31 * (ABS(C95 - C100) + 29 / 31 * (ABS(C100 - C105) + 29 / 31 * (ABS(C105 - C110) + 29 / 31 * (ABS(C110 - C115) + 29 / 31 * (ABS(C115 - C120) + 29 / 31 * (ABS(C120 - C125) + 29 / 31 * (ABS(C125 - C130) + 29 / 31 * (ABS(C130 - C135) + 29 / 31 * (ABS(C135 - C140) + 29 / 31 * (ABS(C140 - C145) + 29 / 31 * (ABS(C145 - C150) + 29 / 31 * (ABS(C150 - C155) + 29 / 31 * (ABS(C155 - C160) + 29 / 31 * (ABS(C160 - C165) + 29 / 31 * (ABS(C165 - C170) + 29 / 31 * (ABS(C170 - C175) + 29 / 31 * (ABS(C175 - C180) + 29 / 31 * (ABS(C180 - C185) + 29 / 31 * (ABS(C185 - C190) + 29 / 31 * (ABS(C190 - C195) + 29 / 31 * (ABS(C195 - C200) + 29 / 31 * (ABS(C200 - C205) + 29 / 31 * (ABS(C205 - C210) + 29 / 31 * (ABS(C210 - C215) + 29 / 31 * (ABS(C215 - C220) + 29 / 31 * (ABS(C220 - C225) + 29 / 31 * (ABS(C225 - C230) + 29 / 31 * (ABS(C230 - C235) + 29 / 31 * (ABS(C235 - C240) + 29 / 31 * (ABS(C240 - C245) + 29 / 31 * (ABS(C245 - C250) + 29 / 31 * (ABS(C250 - C255) + 29 / 31 * (ABS(C255 - C260) + 29 / 31 * (ABS(C260 - C265) + 29 / 31 * (ABS(C265 - C270) + 29 / 31 * (ABS(C270 - C275) + 29 / 31 * (ABS(C275 - C280) + 29 / 31 * (ABS(C280 - C285) + 29 / 31 * (ABS(C285 - C290) + 29 / 31 * (ABS(C290 - C295) + 29 / 31 * (ABS(C295 - C300) + 29 / 31 * (ABS(C300 - C305) + 29 / 31 * (ABS(C305 - C310) + 29 / 31 * (ABS(C310 - C315) + 29 / 31 * (ABS(C315 - C320) + 29 / 31 * (ABS(C320 - C325) + 29 / 31 * (ABS(C325 - C330) + 29 / 31 * (ABS(C330 - C335) + 29 / 31 * (ABS(C335 - C340) + 29 / 31 * (ABS(C340 - C345) + 29 / 31 * (ABS(C345 - C350) + 29 / 31 * (ABS(C350 - C355) + 29 / 31 * (ABS(C355 - C360) + 29 / 31 * (ABS(C360 - C365) + 29 / 31 * (ABS(C365 - C370) + 29 / 31 * (ABS(C370 - C375) + 29 / 31 * (ABS(C375 - C380) + 29 / 31 * (ABS(C380 - C385) + 29 / 31 * (ABS(C385 - C390) + 29 / 31 * (ABS(C390 - C395) + 29 / 31 * (ABS(C395 - C400) + 29 / 31 * (ABS(C400 - C405) + 29 / 31 * (ABS(C405 - C410) + 29 / 31 * (ABS(C410 - C415) + 29 / 31 * (ABS(C415 - C420) + 29 / 31 * (ABS(C420 - C425) + 29 / 31 * (ABS(C425 - C430) + 29 / 31 * (ABS(C430 - C435) + 29 / 31 * (ABS(C435 - C440) + 29 / 31 * (ABS(C440 - C445) + 29 / 31 * (ABS(C445 - C450) + 29 / 31 * (ABS(C450 - C455) + 29 / 31 * (ABS(C455 - C460) + 29 / 31 * (ABS(C460 - C465) + 29 / 31 * (ABS(C465 - C470) + 29 / 31 * (ABS(C470 - C475) + 29 / 31 * (ABS(C475 - C480) + 29 / 31 * (ABS(C480 - C485) + 29 / 31 * (ABS(C485 - C490) + 29 / 31 * (ABS(C490 - C495) + 29 / 31 * (ABS(C495 - C500) + 29 / 31 * (ABS(C500 - C505) + 29 / 31 * (ABS(C505 - C510) + 29 / 31 * (ABS(C510 - C515) + 29 / 31 * (ABS(C515 - C520) + 29 / 31 * (ABS(C520 - C525)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

Note that the above are for PCFs. If you are using a Percent True Indicator on the chart, you could use the daily formula since it will use the weekly bars when plotted on the chart. For being above, that is just the following.

XAVGC10 > XAVGC30

And for crossing up through you would again check the previous bar as well.

XAVGC10 > XAVGC30 AND XAVGC10.1 <= XAVGC30.1



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
larryev
Posted : Thursday, February 8, 2018 6:04:17 PM
Registered User
Joined: 12/6/2004
Posts: 7

Whoa! Thank you Bruce, I wasn't even close! Are there instructions for using the Percent True indicator in the Trainng section?

Bruce_L
Posted : Friday, February 9, 2018 8:57:08 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The following video explores how this feature works in TC2000 v7.

Visually Backtesting Specific Symbols



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