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 |

Moving average convergence Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
cupcake
Posted : Friday, January 6, 2012 12:43:38 PM
Gold Customer Gold Customer

Joined: 10/7/2004
Posts: 3
How do I write a PCF for the following condition: The 8dma that nearly equals the 20dma that nearly equals the 50dma.It is easy to write a PCF  saying exacty but that never(or near never) happens. I need some 2-3% leaway.
Thank you
Bruce_L
Posted : Friday, January 6, 2012 1:01:26 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The following Condition Formula would check for all three moving averages to be within 2% of each other:

(AVGC8 + AVGC20 + ABS(AVGC8 - AVGC20) + 2 * (AVGC50) + ABS(AVGC8 + AVGC20 + ABS(AVGC8 - AVGC20) - 2 * (AVGC50))) / (AVGC8 + AVGC20 - ABS(AVGC8 - AVGC20) + 2 * (AVGC50) - ABS(AVGC8 + AVGC20 - ABS(AVGC8 - AVGC20) - 2 * (AVGC50))) <= 1.02

You could change the 1.02 at the end of the formula to 1.03 to check for 3% instead.

Min Max PCFs
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

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