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 |

Percent true Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mgutierrez
Posted : Thursday, May 24, 2012 10:28:56 PM
Registered User
Joined: 3/29/2006
Posts: 16

looking for a pfc for percent true 55 day high indicator and a 20 day low indicator

 

Thanks

Bruce_L
Posted : Friday, May 25, 2012 9:18:48 AM


Worden Trainer

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

A Personal Criteria Formula for the 55-Period High could be written as:

MAXH55

A PCF for the 20-Period Low could be written as:

MINL20

Neither of these would work as the Boolean Formula in a Percent True indicator however because they return numeric values instead of returning true or false.

A PCF for a 55-Period New High could be written as:

H > MAXH54.1

A PCF for a 20-Period New Low could be written as:

L < MINL19.1

A PCF for the High of the current bar being at the 55-Period High could be written as:

H = MAXH55

A PCF for the Low of the current bar being at the 20-Period Low could be written as:

L = MINL20

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



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
jas0501
Posted : Friday, May 25, 2012 4:17:46 PM
Registered User
Joined: 12/31/2005
Posts: 2,499

QUOTE (mgutierrez)

looking for a pfc for percent true 55 day high indicator and a 20 day low indicator

 

Thanks

Here is PCF for the percentage of days of a 55 day high over the last 55 days. It counts the number of days that Hx> MaxH54.x+1 and divides by the number of evaluations, in this case 55. It is dividing by -55 as each boolean expression evaluates to -1 for true and zero for false. So the sum of the  -1s divided by a negative will yield a positive %.

 

((H > MAXH54.1)+
(H1 > MAXH54.2)+
(H2 > MAXH54.3)+
(H3 > MAXH54.4)+
(H4 > MAXH54.5)+
(H5 > MAXH54.6)+
(H6 > MAXH54.7)+
(H7 > MAXH54.8)+
(H8 > MAXH54.9)+
(H9 > MAXH54.10)+
(H10 > MAXH54.11)+
(H11 > MAXH54.12)+
(H12 > MAXH54.13)+
(H13 > MAXH54.14)+
(H14 > MAXH54.15)+
(H15 > MAXH54.16)+
(H16 > MAXH54.17)+
(H17 > MAXH54.18)+
(H18 > MAXH54.19)+
(H19 > MAXH54.20)+
(H20 > MAXH54.21)+
(H21 > MAXH54.22)+
(H22 > MAXH54.23)+
(H23 > MAXH54.24)+
(H24 > MAXH54.25)+
(H25 > MAXH54.26)+
(H26 > MAXH54.27)+
(H27 > MAXH54.28)+
(H28 > MAXH54.29)+
(H29 > MAXH54.30)+
(H30 > MAXH54.31)+
(H31 > MAXH54.32)+
(H32 > MAXH54.33)+
(H33 > MAXH54.34)+
(H34 > MAXH54.35)+
(H35 > MAXH54.36)+
(H36 > MAXH54.37)+
(H37 > MAXH54.38)+
(H38 > MAXH54.39)+
(H39 > MAXH54.40)+
(H40 > MAXH54.41)+
(H41 > MAXH54.42)+
(H42 > MAXH54.43)+
(H43 > MAXH54.44)+
(H44 > MAXH54.45)+
(H45 > MAXH54.46)+
(H46 > MAXH54.47)+
(H47 > MAXH54.48)+
(H48 > MAXH54.49)+
(H49 > MAXH54.50)+
(H50 > MAXH54.51)+
(H51 > MAXH54.52)+
(H52 > MAXH54.53)+
(H53 > MAXH54.54)+
(H54 > MAXH54.55))/-55

 

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.