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 |

Bar PCF's please Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
RetDynamic
Posted : Monday, October 13, 2014 7:05:55 AM
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

Bruce_L
Posted : Monday, October 13, 2014 9:46:09 AM


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
RetDynamic
Posted : Monday, October 13, 2014 8:55:11 PM
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

Bruce_L
Posted : Tuesday, October 14, 2014 8:33:08 AM


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
RetDynamic
Posted : Tuesday, October 14, 2014 9:49:31 AM
Registered User
Joined: 12/16/2013
Posts: 6

OK ... gotta work each one through myself rather than cut and paste like I did

Thanks

Bruce_L
Posted : Tuesday, October 14, 2014 10:14:16 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



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