Registered User Joined: 4/12/2010 Posts: 14
|
The formula for a doji is the O=C. Would you help me create a formula where I can set the open and the close within a few cents or a few dollars of each other. Thanks in advance.
Mopman
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
A formula for the Open and Close being within say 3 cents of each other might be:
ASB(O - C) <= .03
A formula for the Open and Close being within say $1 of each other might be:
ABS(O - C) <= 1
A formula for the Open and Close being within say 1% of each other might be:
((O + C + ABS(O - C)) / 2) / ((O + C - ABS(O - C)) / 2) <= 1.01
A formula for the Open and Close being within say 5% of the Bar's Range might be:
ABS(O - C) <= .05 * (H - L)
A formula forthe Open and Close being within say 5% of the Range of the most recent 10 Bars might be:
ABS(O - C) <= .05 * (MAXH10 - MINL10)
You may wish to review the following:
How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Min Max PCFs
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|