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 |

Request PCF Formula Pattern PIN BAR Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
raider45
Posted : Thursday, August 25, 2016 8:17:30 AM
Registered User
Joined: 9/30/2011
Posts: 788
I would like to have a Formula PCF with the Long signal on Pin Bar candle. 
Reference website:                                                                                                                  
 
 
Thank you in advance and greetings from Italy.
Rosario Columbro
Bruce_L
Posted : Thursday, August 25, 2016 11:06:49 AM


Worden Trainer

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

If you just want a pin bar without worrying about its location or size.

5 * ABS(O - C) <= O - L AND 5 * ABS(O - C) <= C - L AND 2 * O + 2 * C > 3 * H + L

If the bar needs to be above average and at the bottom of a downtrend (of 6 bars or more).

5 * ABS(O - C) <= O - L AND 5 * ABS(O - C) <= C - L AND 2 * O + 2 * C > 3 * H + L AND H - L > AVGH6 - AVGL6 AND L = MINL6 AND 5 * (C - C5) + 3 * (C1 - C4) + C2 < C3 AND AVGC3 < AVGC3.3



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
raider45
Posted : Thursday, August 25, 2016 12:21:36 PM
Registered User
Joined: 9/30/2011
Posts: 788
 
 
 
The formulas work fine!
Congratulations, thanks Bruce!

Sincere greetings from Italy.
Rosario Columbro

 

Tradarr8
Posted : Tuesday, September 27, 2016 1:22:34 AM
Registered User
Joined: 9/27/2016
Posts: 2

QUOTE (Bruce_L)

If you just want a pin bar without worrying about its location or size.

5 * ABS(O - C) <= O - L AND 5 * ABS(O - C) <= C - L AND 2 * O + 2 * C > 3 * H + L

If the bar needs to be above average and at the bottom of a downtrend (of 6 bars or more).

5 * ABS(O - C) <= O - L AND 5 * ABS(O - C) <= C - L AND 2 * O + 2 * C > 3 * H + L AND H - L > AVGH6 - AVGL6 AND L = MINL6 AND 5 * (C - C5) + 3 * (C1 - C4) + C2 < C3 AND AVGC3 < AVGC3.3

 

Bruce , Can you provide pcf for inverse/bearish pinbars for both formulaes ?  Thanks

Bruce_L
Posted : Tuesday, September 27, 2016 8:27:50 AM


Worden Trainer

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

The inverse of the first formula would be as follows.

5 * ABS(O - C) <= H - O AND 5 * ABS(O - C) <= H - C AND 2 * O + 2 * C < H + 3 * L

And the inverse of the second formula would be as follows.

5 * ABS(O - C) <= H - O AND 5 * ABS(O - C) <= H - C AND 2 * O + 2 * C < H + 3 * L AND H - L > AVGH6 - AVGL6 AND H = MAXH6 AND 5 * (C - C5) + 3 * (C1 - C4) + C2 > C3 AND AVGC3 > AVGC3.3



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Tradarr8
Posted : Tuesday, September 27, 2016 11:31:31 PM
Registered User
Joined: 9/27/2016
Posts: 2

Thanks! Bruce.

sinoyank
Posted : Wednesday, March 15, 2017 12:49:26 PM
Gold Customer Gold Customer

Joined: 12/10/2004
Posts: 4

Hi Bruce:

Is there a way to write an easyscan to scan for such a pinbar (at the bottom of a down leg) happening yesterday while it closes up today?

Would you kindly provide the necessary pcfs and Scan conditions related?

Much thanks.

Kenneth

Bruce_L
Posted : Wednesday, March 15, 2017 12:59:44 PM


Worden Trainer

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

Converting the second formula from my Thursday, August 25, 2016 11:06:49 AM ET post to a 1 bar ago version and then checking for price being above the previous close and current open can be written as follows.

C > O AND C > C1 AND 5 * ABS(O1 - C1) <= O1 - L1 AND 5 * ABS(O1 - C1) <= C1 - L1 AND 2 * O1 + 2 * C1 > 3 * H1 + L1 AND H1 - L1 > AVGH6.1 - AVGL6.1 AND L1 = MINL6.1 AND 5 * (C1 - C6) + 3 * (C2 - C5) + C3 < C4 AND AVGC3.1 < AVGC3.4

The inverse of this would be as follows (based on the second formula in my Tuesday, September 27, 2016 8:27:50 AM ET post.

C < O AND C < C1 AND 5 * ABS(O1 - C1) <= H1 - O1 AND 5 * ABS(O1 - C1) <= H1 - C1 AND 2 * O1 + 2 * C1 < H1 + 3 * L1 AND H1 - L1 > AVGH6.1 - AVGL6.1 AND H1 = MAXH6.1 AND 5 * (C1 - C6) + 3 * (C2 - C5) + C3 > C4 AND AVGC3.1 > AVGC3.4

If you have different definitions or assumptions in mind, then we would need additional clarification from you so the formulas could be modified to better meet your expectations.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
sinoyank
Posted : Wednesday, March 15, 2017 11:16:04 PM
Gold Customer Gold Customer

Joined: 12/10/2004
Posts: 4

Thanks very much Bruce. You make it appear logical and easy. Thanks again.

Kenneth

boni.kaston
Posted : Saturday, June 17, 2017 8:32:19 AM
Registered User
Joined: 3/28/2015
Posts: 3

QUOTE (Bruce_L)

Converting the second formula from my Thursday, August 25, 2016 11:06:49 AM ET post to a 1 bar ago version and then checking for price being above the previous close and current open can be written as follows.

C > O AND C > C1 AND 5 * ABS(O1 - C1) <= O1 - L1 AND 5 * ABS(O1 - C1) <= C1 - L1 AND 2 * O1 + 2 * C1 > 3 * H1 + L1 AND H1 - L1 > AVGH6.1 - AVGL6.1 AND L1 = MINL6.1 AND 5 * (C1 - C6) + 3 * (C2 - C5) + C3 < C4 AND AVGC3.1 < AVGC3.4

The inverse of this would be as follows (based on the second formula in my Tuesday, September 27, 2016 8:27:50 AM ET post.

C < O AND C < C1 AND 5 * ABS(O1 - C1) <= H1 - O1 AND 5 * ABS(O1 - C1) <= H1 - C1 AND 2 * O1 + 2 * C1 < H1 + 3 * L1 AND H1 - L1 > AVGH6.1 - AVGL6.1 AND H1 = MAXH6.1 AND 5 * (C1 - C6) + 3 * (C2 - C5) + C3 > C4 AND AVGC3.1 > AVGC3.4

If you have different definitions or assumptions in mind, then we would need additional clarification from you so the formulas could be modified to better meet your expectations.

Hi Bruce,

I get an error message on the inverse  Formula.

error message :  "Error in formula , Unmatched Parentheses at position 188".

i am using Tc2000 Version 16.0.6037.18046

Please advice.

 

boni.kaston
Posted : Tuesday, June 20, 2017 3:44:25 PM
Registered User
Joined: 3/28/2015
Posts: 3

Hi Bruce,

I get an error message on the inverse  Formula.

error message :  "Error in formula , Unmatched Parentheses at position 188".

i am using Tc2000 Version 16.0.6037.18046

Please advice.

Bruce_L
Posted : Wednesday, June 21, 2017 10:13:05 AM


Worden Trainer

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

Please try the following condition formula instead.

C < LEAST(O, C1) AND 5 * ABS(O1 - C1) <= LEAST(H1 - O1, H1 - C1) AND 2 * O1 + 2 * C1 < H1 + 3 * L1 AND H1 - L1 > AVG(H1 - L1, 6) AND H1 = MAXH6.1 AND FAVGC6.1 > AVGC6.1 AND AVGC3.1 > AVGC3.4



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