Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
Registered User Joined: 9/30/2011 Posts: 788
|
The formulas work fine!
Congratulations, thanks Bruce!
Sincere greetings from Italy.
Rosario Columbro
|
|
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
|
|
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
|
|
Registered User Joined: 9/27/2016 Posts: 2
|
Thanks! Bruce.
|
|
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
|
|
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
|
|
Gold Customer
Joined: 12/10/2004 Posts: 4
|
Thanks very much Bruce. You make it appear logical and easy. Thanks again.
Kenneth
|
|
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.
|
|
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.
|
|
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
|
|
Guest-1 |