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 |

Help with a PCF indicator of down days Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
gsn
Posted : Saturday, May 26, 2012 9:11:36 AM
Registered User
Joined: 11/13/2004
Posts: 121

How can I create a PCF that could do that following:

1) Count the number of down days over the past 15 days. Down is defined as C<C1

2) Divide the number of down days by the total number, in this case 15.

Any help much appreciated and happy Memorial Day!

Bruce_L
Posted : Monday, May 28, 2012 8:31:06 AM


Worden Trainer

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

Please try the following Indicator Formula:

ABS((C < C1) + (C1 < C2) + (C2 < C3) + (C3 < C4) + (C4 < C5) + (C5 < C6) + (C6 < C7) + (C7 < C8) + (C8 < C9) + (C9 < C10) + (C10 < C11) + (C11 < C12) + (C12 < C13) + (C13 < C14) + (C14 < C15)) / 15

It should be noted that if you multiplied the above by 100, it would be the same as creating a Custom PCF % True Indicator with the following settings:

- Period: 15
- Average Type: Simple
- Boolean Formula: C < C1

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.