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 |

Doji construction issue Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Savrad
Posted : Saturday, February 14, 2009 9:25:10 AM
Gold Customer Gold Customer

Joined: 1/24/2005
Posts: 97
I'm trying to create my own doji with an open and close range not exceeding 5% of the bar

(O - C) < (H - L)/20)

I also tried (O - C) < (.05*(H - L) But keep getting an error in the syntax version on both-any suggestions about what I'm doing wrong....

I already tried the Boolean doji version you have but it's not doing what I want so can someone help me with what I'm doing with this?  Thanks
Bruce_L
Posted : Monday, February 16, 2009 8:38:23 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The error messages are probably the result of the mis-matched parentheses, but you are going to want to take the Absolute Value of the Open minus Close instead of using the raw Open minus Close. In the versions you have written, the (O - C) will be negative whenever the Open is higher than the Close. This results in the formula always being True when the Open is Higher than the Close even if they are quite far about relative to the entire Range of the Candle. So what you want is:

ABS(O - C) < (H - L) / 20

Or:

ABS(O - C) < .05 * (H - L)

You may wish to review the following:

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
Savrad
Posted : Monday, February 16, 2009 11:04:46 AM
Gold Customer Gold Customer

Joined: 1/24/2005
Posts: 97
Bruce-thanks that was helpful-one more thing-just out of curiosity is ABS something that is used just on the Worden platform or is it used across most trading and charting platforms?  Thanks!
Bruce_L
Posted : Monday, February 16, 2009 11:14:28 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I can only guarantee the exact format within TeleChart (StockFinder's RealCode uses System.Math.Abs() for example), but lots of other products implement an Absolute Value function and many of those use the ABS() form as well. The reason for this is that Absolute Value is a well defined and widely used concept in mathematics.

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