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 |

PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
falmeshari
Posted : Monday, February 12, 2007 1:49:37 PM
Registered User
Joined: 1/5/2007
Posts: 9
Hi Craig,

Could you please help me creating this PCF :

- the chart period should be weekly and/or monthly
- the last three candles in the chart should be like this :
1-the first candle must be long real body white candle with or without upper shadow with high volume more than the next two candles.
2- the second candle must be either doji or hanging man or
small real body white or black with upper and lower shadow , the volume should be lower than the first candle and this candle low should be higher than the first candle low and its high should be equal or lower than the first candle high .
3- the last candle must be also either doji or hanging man or small real body white or black with upper and lower shadow , the volume should be lower than the first candle and this candle high should be equal or lower than the first candle high .

Thanks
Bruce_L
Posted : Monday, February 12, 2007 2:56:55 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
First a disclaimer: As I've stated many times in these forums, I'm hardly a candlestick expert and never will be. Let's start by creating a daily formula.

QUOTE (falmeshari)
the first candle must be long real body white candle with or without upper shadow...

I'm going to assume the body being > 90% of the candle is a long candle. You can adjust this as desired:

(C2 - O2) / (H2 - L2 + .00001) > .9

QUOTE (falmeshari)
...with high volume more than the next two candles.

V2 > V1 AND V2 > V

QUOTE (falmeshari)
the second candle must be either doji or hanging man or small real body white or black with upper and lower shadow...

I'm going to assume the body being < 10% of the entire candle constitutes a doji or hanging man. No specific position is given to differentiate the hanging man from a hammer as my understanding is that the body could be in any position relative to the entire candle and still be considered a doji. You can adjust this as desired:

ABS(C1 - O1) / (H1 - L1 + .00001) < .1 AND H1 - L1 > 0

QUOTE (falmeshari)
...and this candle low should be higher than the first candle low and its high should be equal or lower than the first candle high .

L1 > L2 AND H1 <= H2

QUOTE (falmeshari)
the last candle must be also either doji or hanging man or small real body white or black with upper and lower shadow...

The same comments apply to the third candle as the second:

ABS(C - O) / (H - L + .00001) < .1 AND H - L > 0

QUOTE (falmeshari)
...and this candle high should be equal or lower than the first candle high .

H <= H2

Putting this all together, we come up with the following daily formula:

(C2 - O2) / (H2 - L2 + .00001) > .9 AND V2 > V1 AND V2 > V AND ABS(C1 - O1) / (H1 - L1 + .00001) < .1 AND H1 - L1 > 0 AND L1 > L2 AND H1 <= H2 AND ABS(C - O) / (H - L + .00001) < .1 AND H - L > 0 AND H <= H2

QUOTE (falmeshari)
the chart period should be weekly...

(C10 - O14) / (MAXH5.10 - MINL5.10 + .00001) > .9 AND AVGV5.10 > AVGV5.5 AND AVGV5.10 > AVGV5 AND ABS(C5 - O9) / (MAXH5.5 - MINL5.5 + .00001) < .1 AND MAXH5.5 - MINL5.5 > 0 AND MINL5.5 > MINL5.10 AND MAXH5.5 <= MAXH5.10 AND ABS(C - O4) / (MAXH5 - MINL5 + .00001) < .1 AND MAXH5 - MINL5 > 0 AND MAXH5 <= MAXH5.10

QUOTE (falmeshari)
...or monthly

(C42 - O62) / (MAXH21.42 - MINL21.42 + .00001) > .9 AND AVGV21.42 > AVGV21.21 AND AVGV21.42 > AVGV21 AND ABS(C21 - O41) / (MAXH21.21 - MINL21.21 + .00001) < .1 AND MAXH21.21 - MINL21.21 > 0 AND MINL21.21 > MINL21.42 AND MAXH21.21 <= MAXH21.42 AND ABS(C - O20) / (MAXH21 - MINL21 + .00001) < .1 AND MAXH21 - MINL21 > 0 AND MAXH21 <= MAXH21.42

You may wish to review the following:

How to create a Personal Criteria Forumula (PCF)
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
falmeshari
Posted : Monday, February 12, 2007 3:09:05 PM
Registered User
Joined: 1/5/2007
Posts: 9
Thank you so much Bruce_L
Bruce_L
Posted : Monday, February 12, 2007 3:12:28 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome. Like I said, I'm not really a candlestick guy. If it doesn't work as expected, I'll do my best to come up with something better based on your feedback, but we'll definitely need to work through it together.

I'm hoping working through the daily version bit by bit both prevented mistakes on my part and gives you some idea on how it was done (and how to adjust it).

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
falmeshari
Posted : Monday, February 12, 2007 3:59:22 PM
Registered User
Joined: 1/5/2007
Posts: 9
I will work on it this week and see if its work or no and i will update you with what ever i come up with . thanks again for your help .
Bruce_L
Posted : Monday, February 12, 2007 4:12:47 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I'm looking forward to seeing how it works out. Just so you don't get the wrong impression, I'll be happy to help out if it doesn't work as expected. I just wanted you to understand I'm not that much ahead of the curve when dealing with candlesticks.

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