Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/16/2013 Posts: 6
|
Hello,
Could I have a PCF for each of the following bars please:
1. Bar that opens in the bottom 1/3 and closes in the top 1/3
2. Bar that opens in the bottom 33% and closes in the top 20%
3. Bar that opens in the top 1/3 and closes in the bottom 1/3
4. Bar that opens in the top 33% and closes in the bottom 20%
I have other ones but should be able to build my own PCF's from what you can provide me with
Thanks in advance
Ash
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (RetDynamic) 1. Bar that opens in the bottom 1/3 and closes in the top 1/3
O - L <= (H - L) / 3 AND H - C <= (H - L) / 3 AND H > L
Or maybe:
3 * O <= 2 * L + H AND 3 * C >= 2 * H + L AND H > L
QUOTE (RetDynamic) 2. Bar that opens in the bottom 33% and closes in the top 20%
O - L <= (H - L) / 3 AND H - C <= (H - L) / 5 AND H > L
Or maybe:
3 * O <= 2 * L + H AND 5 * C >= 4 * H + L AND H > L
QUOTE (RetDynamic) 3. Bar that opens in the top 1/3 and closes in the bottom 1/3
C - L <= (H - L) / 3 AND H - O <= (H - L) / 3 AND H > L
Or maybe:
3 * C <= 2 * L + H AND 3 * O >= 2 * H + L AND H > L
QUOTE (RetDynamic) 4. Bar that opens in the top 33% and closes in the bottom 20%
C - L <= (H - L) / 5 AND H - O <= (H - L) / 3 AND H > L
Or maybe:
5 * C <= 4 * L + H AND 3 * O >= 2 * H + L AND H > L
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/16/2013 Posts: 6
|
Thanks Bruce,
What I intended to do and it doesn't seem to work was join the bits that you have done for me.
For instance
For a "bullish" kind of bar that opens in the top 1/3 goes down or wherever BUT closes in the top 20% I grabbed the first half of the code from
3. 3 * C <= 2 * L + H
added an AND then added code from
2. 5 * C >= 4 * H + L AND H > L
To give the following:
3 * C <= 2 * L + H AND 3 * C >= 2 * H + L AND H > L
Which didn't give me anything
What am I doing wrong?
Ash
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The first part of your formula is checking for the close to be in the bottom third and the second part of your formula is checking for the close to be in the top third. You aren't getting any results because this can't be true.
If you want the open in the top third:
3 * O >= 2 * H + L AND H > L
And the close to be in the top 20%:
5 * C >= 4 * H + L AND H > L
The combined formula would look something like the following.
3 * O >= 2 * H + L AND 5 * C >= 4 * H + L AND H > L
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/16/2013 Posts: 6
|
OK ... gotta work each one through myself rather than cut and paste like I did
Thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |