Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 3/29/2005 Posts: 3
|
Looking for a PCF that will fulfill the following condition
3 strong green bars (with small or no tails) in a row followed by a red bar (or doji) followed by a green bar that closes above the high of the third green candle (one one before the red bar)
also looking for a PCF to adress the reverse condition
3 strong red bars (with small or no tails) in a row followed by a green bar (or doji) which is then followed by a red bar that takes out the low of the third red bar
Thanks in advance!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following checks for the body to be at least 80% of the candle for the first three bars to check for the bars being stroning (with small or no tails). It also assumes you are interested in open vs close to determine if the bar is green or red since you are using candlestick terminology.
C > O AND C > H2 AND O1 >= C1 AND C2 - O2 > .8 * (H2 - L2) AND C3 - O3 > .8 * (H3 - L3) AND C4 - O4 > .8 * (H4 - L4)
Note the the above makes no assumptions about the positions of the bars relative to each other besides the close of the last bar being above the high of the third green candle.
Boolean PCFs for Candlestick Patterns
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 3/29/2005 Posts: 3
|
Thanks Bruce.
Not getting results I was expecting. Can we simplify the formula to just
-
3 green bars
-
Followed by red bar
-
Followed by green bar
So green, green, green, red, green
Thanks in advance
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following assumes the colors are based on Open vs Close.
C >= O AND C1 < O1 AND C2 >= O2 AND C3 >= O3 AND C4 >= O4
The following assumes the colors are based on Net Change.
C >= C1 AND C1 < C2 AND C2 >= C3 AND C3 >= C4 AND C4 >= C5
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 3/29/2005 Posts: 3
|
Thank you!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |