Registered User Joined: 10/7/2004 Posts: 1,178
|
Let's use GLBS as an example today with a timeframe of 1D.
First, as a Histogram on one-minute candles, I've overlaid my Custom PCF % True for "Dojis * 0.05%" (see below):
ABS(O - C) <= ((H - L) * 0.05)
Second, as another Histgram, this time overlaid on Volume Bars is my Custom PCF % True for "V<100" (see below):
V<100
By doing this one can see there are a number of false or inaccurate Doji Histograms are overlaid on candles as well as the accurate ones.
The inaccurate or false ones are Histograms that occur on candles where the volume is less than 100 (hyphens).
To create an accurate picture, I wish to eliminate these false Dojis by combining my two Custom PCF % Trues into one. I've tried various ways to do this but haven't yet succeeded.
Can you solve this problem, Bruce, of somehow combing ABS(O - C) <= ((H - L) * 0.05) minus V<100?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following.
ABS(O - C) <= ((H - L) * 0.05) AND NOT(V < 100)
This could be shortened somewhat to the following.
20 * ABS(O - C) <= H - L AND V >= 100
But I would probably also add the requirement that the high is above the low.
H > L AND 20 * ABS(O - C) <= H - L AND V >= 100
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 10/7/2004 Posts: 1,178
|
Thanks, Bruce. Each of your above PCFs works great. I am using your third one because it further reduces the number of Dojis * 0.05 with sufficient volume that appear as Histograms on the candles.
Now, lets move on to the most efficient PCFs for 1) Gaps Up on one-minute candles with V>100 as well as 2) Gaps Down on one-minute candles with V>100.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It kind of depends on your definition of gap up and gap down. If you are just comparing the open to the previous close:
Gap Up:
O > C1 AND V > 100
Gap Down:
O < C1 AND V > 100
If you are comparing the open to the previous high or low:
Gap Up:
O > H1 AND V > 100
Gap Down:
O < L1 AND V > 100
If you are comparing the high or low to the previous high or low:
Gap Up:
L > H1 AND V > 100
Gap Down:
H < L1 AND V > 100
-Bruce Personal Criteria Formulas TC2000 Support Articles
|