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 |

PCF for Volume Increase Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
auchang929
Posted : Wednesday, March 23, 2011 9:01:31 AM
Gold Customer Gold Customer

Joined: 12/5/2005
Posts: 63
Hi Bruce:
Please help me to write two PCFs for the following condition.

1)  Today's volume is greater than the largest down-volume day over the prior 10 days.
2)  The largest Up-volume over the prior 10 days is greater than the largest Down-volume over the prior 10 days.

Thank you!
Bruce_L
Posted : Wednesday, March 23, 2011 9:32:00 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (auchang929)
Today's volume is greater than the largest down-volume day over the prior 10 days.

V > V1 * ABS(C1 < C2) AND V > V2 * ABS(C2 < C3) AND V > V3 * ABS(C3 < C4) AND V > V4 * ABS(C4 < C5) AND V > V5 * ABS(C5 < C6) AND V > V6 * ABS(C6 < C7) AND V > V7 * ABS(C7 < C8) AND V > V8 * ABS(C8 < C9) AND V > V9 * ABS(C9 < C10) AND V > V10 * ABS(C10 < C11)

QUOTE (auchang929)
The largest Up-volume over the prior 10 days is greater than the largest Down-volume over the prior 10 days.

(V1 * ABS(C1 > C2) + V2 * ABS(C2 > C3) + ABS(V1 * ABS(C1 > C2) - V2 * ABS(C2 > C3)) + 2 * (V3 * ABS(C3 > C4)) + ABS(V1 * ABS(C1 > C2) + V2 * ABS(C2 > C3) + ABS(V1 * ABS(C1 > C2) - V2 * ABS(C2 > C3)) - 2 * (V3 * ABS(C3 > C4))) + 2 * (V4 * ABS(C4 > C5) + V5 * ABS(C5 > C6) + ABS(V4 * ABS(C4 > C5) - V5 * ABS(C5 > C6))) + ABS(V1 * ABS(C1 > C2) + V2 * ABS(C2 > C3) + ABS(V1 * ABS(C1 > C2) - V2 * ABS(C2 > C3)) + 2 * (V3 * ABS(C3 > C4)) + ABS(V1 * ABS(C1 > C2) + V2 * ABS(C2 > C3) + ABS(V1 * ABS(C1 > C2) - V2 * ABS(C2 > C3)) - 2 * (V3 * ABS(C3 > C4))) - 2 * (V4 * ABS(C4 > C5) + V5 * ABS(C5 > C6) + ABS(V4 * ABS(C4 > C5) - V5 * ABS(C5 > C6)))) + V6 * ABS(C6 > C7) + V7 * ABS(C7 > C8) + ABS(V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8)) + 2 * (V8 * ABS(C8 > C9)) + ABS(V6 * ABS(C6 > C7) + V7 * ABS(C7 > C8) + ABS(V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8)) - 2 * (V8 * ABS(C8 > C9))) + 2 * (V9 * ABS(C9 > C10) + V10 * ABS(C10 > C11) + ABS(V9 * ABS(C9 > C10) - V10 * ABS(C10 > C11))) + ABS(V6 * ABS(C6 > C7) + V7 * ABS(C7 > C8) + ABS(V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8)) + 2 * (V8 * ABS(C8 > C9)) + ABS(V6 * ABS(C6 > C7) + V7 * ABS(C7 > C8) + ABS(V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8)) - 2 * (V8 * ABS(C8 > C9))) - 2 * (V9 * ABS(C9 > C10) + V10 * ABS(C10 > C11) + ABS(V9 * ABS(C9 > C10) - V10 * ABS(C10 > C11)))) + ABS(V1 * ABS(C1 > C2) + V2 * ABS(C2 > C3) + ABS(V1 * ABS(C1 > C2) - V2 * ABS(C2 > C3)) + 2 * (V3 * ABS(C3 > C4)) + ABS(V1 * ABS(C1 > C2) + V2 * ABS(C2 > C3) + ABS(V1 * ABS(C1 > C2) - V2 * ABS(C2 > C3)) - 2 * (V3 * ABS(C3 > C4))) + 2 * (V4 * ABS(C4 > C5) + V5 * ABS(C5 > C6) + ABS(V4 * ABS(C4 > C5) - V5 * ABS(C5 > C6))) + ABS(V1 * ABS(C1 > C2) + V2 * ABS(C2 > C3) + ABS(V1 * ABS(C1 > C2) - V2 * ABS(C2 > C3)) + 2 * (V3 * ABS(C3 > C4)) + ABS(V1 * ABS(C1 > C2) + V2 * ABS(C2 > C3) + ABS(V1 * ABS(C1 > C2) - V2 * ABS(C2 > C3)) - 2 * (V3 * ABS(C3 > C4))) - 2 * (V4 * ABS(C4 > C5) + V5 * ABS(C5 > C6) + ABS(V4 * ABS(C4 > C5) - V5 * ABS(C5 > C6)))) - V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8) - ABS(V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8)) - 2 * (V8 * ABS(C8 > C9)) - ABS(V6 * ABS(C6 > C7) + V7 * ABS(C7 > C8) + ABS(V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8)) - 2 * (V8 * ABS(C8 > C9))) - 2 * (V9 * ABS(C9 > C10) + V10 * ABS(C10 > C11) + ABS(V9 * ABS(C9 > C10) - V10 * ABS(C10 > C11))) - ABS(V6 * ABS(C6 > C7) + V7 * ABS(C7 > C8) + ABS(V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8)) + 2 * (V8 * ABS(C8 > C9)) + ABS(V6 * ABS(C6 > C7) + V7 * ABS(C7 > C8) + ABS(V6 * ABS(C6 > C7) - V7 * ABS(C7 > C8)) - 2 * (V8 * ABS(C8 > C9))) - 2 * (V9 * ABS(C9 > C10) + V10 * ABS(C10 > C11) + ABS(V9 * ABS(C9 > C10) - V10 * ABS(C10 > C11)))))) / 16 > (V1 * ABS(C1 < C2) + V2 * ABS(C2 < C3) + ABS(V1 * ABS(C1 < C2) - V2 * ABS(C2 < C3)) + 2 * (V3 * ABS(C3 < C4)) + ABS(V1 * ABS(C1 < C2) + V2 * ABS(C2 < C3) + ABS(V1 * ABS(C1 < C2) - V2 * ABS(C2 < C3)) - 2 * (V3 * ABS(C3 < C4))) + 2 * (V4 * ABS(C4 < C5) + V5 * ABS(C5 < C6) + ABS(V4 * ABS(C4 < C5) - V5 * ABS(C5 < C6))) + ABS(V1 * ABS(C1 < C2) + V2 * ABS(C2 < C3) + ABS(V1 * ABS(C1 < C2) - V2 * ABS(C2 < C3)) + 2 * (V3 * ABS(C3 < C4)) + ABS(V1 * ABS(C1 < C2) + V2 * ABS(C2 < C3) + ABS(V1 * ABS(C1 < C2) - V2 * ABS(C2 < C3)) - 2 * (V3 * ABS(C3 < C4))) - 2 * (V4 * ABS(C4 < C5) + V5 * ABS(C5 < C6) + ABS(V4 * ABS(C4 < C5) - V5 * ABS(C5 < C6)))) + V6 * ABS(C6 < C7) + V7 * ABS(C7 < C8) + ABS(V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8)) + 2 * (V8 * ABS(C8 < C9)) + ABS(V6 * ABS(C6 < C7) + V7 * ABS(C7 < C8) + ABS(V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8)) - 2 * (V8 * ABS(C8 < C9))) + 2 * (V9 * ABS(C9 < C10) + V10 * ABS(C10 < C11) + ABS(V9 * ABS(C9 < C10) - V10 * ABS(C10 < C11))) + ABS(V6 * ABS(C6 < C7) + V7 * ABS(C7 < C8) + ABS(V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8)) + 2 * (V8 * ABS(C8 < C9)) + ABS(V6 * ABS(C6 < C7) + V7 * ABS(C7 < C8) + ABS(V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8)) - 2 * (V8 * ABS(C8 < C9))) - 2 * (V9 * ABS(C9 < C10) + V10 * ABS(C10 < C11) + ABS(V9 * ABS(C9 < C10) - V10 * ABS(C10 < C11)))) + ABS(V1 * ABS(C1 < C2) + V2 * ABS(C2 < C3) + ABS(V1 * ABS(C1 < C2) - V2 * ABS(C2 < C3)) + 2 * (V3 * ABS(C3 < C4)) + ABS(V1 * ABS(C1 < C2) + V2 * ABS(C2 < C3) + ABS(V1 * ABS(C1 < C2) - V2 * ABS(C2 < C3)) - 2 * (V3 * ABS(C3 < C4))) + 2 * (V4 * ABS(C4 < C5) + V5 * ABS(C5 < C6) + ABS(V4 * ABS(C4 < C5) - V5 * ABS(C5 < C6))) + ABS(V1 * ABS(C1 < C2) + V2 * ABS(C2 < C3) + ABS(V1 * ABS(C1 < C2) - V2 * ABS(C2 < C3)) + 2 * (V3 * ABS(C3 < C4)) + ABS(V1 * ABS(C1 < C2) + V2 * ABS(C2 < C3) + ABS(V1 * ABS(C1 < C2) - V2 * ABS(C2 < C3)) - 2 * (V3 * ABS(C3 < C4))) - 2 * (V4 * ABS(C4 < C5) + V5 * ABS(C5 < C6) + ABS(V4 * ABS(C4 < C5) - V5 * ABS(C5 < C6)))) - V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8) - ABS(V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8)) - 2 * (V8 * ABS(C8 < C9)) - ABS(V6 * ABS(C6 < C7) + V7 * ABS(C7 < C8) + ABS(V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8)) - 2 * (V8 * ABS(C8 < C9))) - 2 * (V9 * ABS(C9 < C10) + V10 * ABS(C10 < C11) + ABS(V9 * ABS(C9 < C10) - V10 * ABS(C10 < C11))) - ABS(V6 * ABS(C6 < C7) + V7 * ABS(C7 < C8) + ABS(V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8)) + 2 * (V8 * ABS(C8 < C9)) + ABS(V6 * ABS(C6 < C7) + V7 * ABS(C7 < C8) + ABS(V6 * ABS(C6 < C7) - V7 * ABS(C7 < C8)) - 2 * (V8 * ABS(C8 < C9))) - 2 * (V9 * ABS(C9 < C10) + V10 * ABS(C10 < C11) + ABS(V9 * ABS(C9 < C10) - V10 * ABS(C10 < C11)))))) / 16

How to create a Personal Criteria Forumula (PCF)
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
auchang929
Posted : Wednesday, March 23, 2011 8:24:25 PM
Gold Customer Gold Customer

Joined: 12/5/2005
Posts: 63
Thank you very much!
Bruce_L
Posted : Thursday, March 24, 2011 8:19:07 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

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