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 |

Hammer--Doji PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Brucem
Posted : Thursday, March 3, 2011 11:36:37 AM
Registered User
Joined: 12/27/2010
Posts: 30
I have the following for a hammer type PCF.It tests as being valid but there are no results when using it in a scan. Can you help?
(((C-O) / (H-L)) <= 0.3 AND (C-O) / (H-L)) >= 0.01 AND O > L + (H-L) * 0.7  OR
(((O-C) / (H-L)) <= 0.3 AND (O-C) / (H-L))  >= 0.01 AND C > L + (H-L) * 0.7
Bruce_L
Posted : Thursday, March 3, 2011 12:01:46 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try the following Personal Criteria Formula instead:

ABS(C - O) <= (H - L) * .3 AND ABS(C - O) >= (H - L) * .01 AND (O - L > (H - L) * .7 OR C - L > (H - L) * .7)

Boolean PCFs for Candlestick Patterns
How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Brucem
Posted : Thursday, March 3, 2011 12:58:37 PM
Registered User
Joined: 12/27/2010
Posts: 30
Bruce,
Would not the C-O value need to be an absolute value as the C-O in a closed candle with a lower close than the open would be a negative number?
Bruce_L
Posted : Thursday, March 3, 2011 1:06:17 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I've added the ABS to the C - O in my Thursday, March 03, 2011 12:01:46 PM ET response but I suspect you would actually want the OR to be an AND then based on your clarification:

ABS(C - O) <= (H - L) * .3 AND ABS(C - O) >= (H - L) * .01 AND O - L > (H - L) * .7 AND C - L > (H - L) * .7

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Brucem
Posted : Thursday, March 3, 2011 1:29:37 PM
Registered User
Joined: 12/27/2010
Posts: 30
Bruce,
That seems to cover everything and it works fine.
Thanks
Bruce_L
Posted : Thursday, March 3, 2011 1:35:00 PM


Worden Trainer

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

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
nathank
Posted : Monday, March 21, 2011 4:04:26 AM
Registered User
Joined: 3/8/2011
Posts: 3
When I create PCF like engulfing or doji, how can add the color to idetify that canles?.
Can you help me please.
Kailayanathank
Bruce_L
Posted : Monday, March 21, 2011 8:51:44 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
kailayanathank,
I do not know of a way to do so in either the current production version of TeleChart or the TC2000.com version 11 beta.

The best way to influence what will be in TC2000.com is to actively participate in the TC2000.com version 11 beta. All questions, comments and suggestions related to the TC2000.com version 11 beta should be addressed to:

feedback@tc2000.com

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