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 |

Need help with Boolean Formula Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
OptionPaul
Posted : Friday, February 3, 2012 7:16:09 AM
Registered User
Joined: 10/7/2004
Posts: 11
I am trying to create a %True indicator in TC2007 using the formula:

(100 * (C - MAXH10) / (MAXH10 - MINL10)) > -25 AND (100 * (C1 - MAXH10.1) / (MAXH10.1 - MINL10.1)) < -25

The indicator should show me when the calculated value crosses above -25.  The calculations work prefectly on a spreadsheet and should show 100% when the condition occurs.  

What am I doing wrong that I get an error that this formula is not a Boolean Formula.

I appreciate the help.
Bruce_L
Posted : Friday, February 3, 2012 8:16:37 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Your formula would probably work in TC2000 version 12, but TC2000 version 7 doesn't understand the -25 as written (it sees it as subtraction instead of a negative sign). You need to either put it in parentheses:

100 * (C - MAXH10) / (MAXH10 - MINL10) > (-25) AND 100 * (C1 - MAXH10.1) / (MAXH10.1 - MINL10.1) < (-25)

Or subtract the 25 from zero:

100 * (C - MAXH10) / (MAXH10 - MINL10) > 0 - 25 AND 100 * (C1 - MAXH10.1) / (MAXH10.1 - MINL10.1) < 0 - 25

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

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
OptionPaul
Posted : Friday, February 3, 2012 8:33:46 AM
Registered User
Joined: 10/7/2004
Posts: 11
Thanks Bruce
Bruce_L
Posted : Friday, February 3, 2012 8:34:43 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.