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 for gaps filled Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
j_f_mcgovern
Posted : Wednesday, July 23, 2014 3:55:21 AM
Registered User
Joined: 1/31/2013
Posts: 8

Hi,

Can you help me with a PCF where there has being a gap up of 2% or more in the past 10 days?

Also, is a pcf possible where this gap has being nearly filled = price retraces to a low that is just above the high of the candle where the gap orignated? If this makes sense. 

Thanks for your time.

James

Bruce_L
Posted : Wednesday, July 23, 2014 10:23:42 AM


Worden Trainer

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

How specifically do you want to define the "gap up"? Open above the previous close? Open above the previous high? Low above the previous high? Something else entirely?

The fact that you were asking about "gaps filled" maked me initially think it was the open above the previous close, but "price retraces to a low that is just above the high" made me rethink this.

But if the gap up is based on the low being above the previous high, then there would be no way to check for the retracement on the bar after the gap (although it could be checked in later bars).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
j_f_mcgovern
Posted : Wednesday, July 23, 2014 11:07:44 AM
Registered User
Joined: 1/31/2013
Posts: 8

Hi Bruce,

By Gap-up, I mean above the previous close ( call it candle 1). Gap-up of 2% or more in any of the past 10 days.

By Gap filled, I mean a close above candle 1. Price retraces to just above candle 1.

Does this make sense?

James

 

Bruce_L
Posted : Wednesday, July 23, 2014 2:01:12 PM


Worden Trainer

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

The following checks for the open to have been at least 2% higher than the previous close on one of the previous ten bars.

It then checks for the low of the current bar to be less than 0.02 above high of that bar (so above but within a penny) with no intervening bars having a low which reaches the high of that bar either.

(H1 < L AND L < H1 + .02 AND 1.02 * C1 <= O) OR 
(H2 < MINL2 AND L < H2 + .02 AND 1.02 * C2 <= O1) OR 
(H3 < MINL3 AND L < H3 + .02 AND 1.02 * C3 <= O2) OR 
(H4 < MINL4 AND L < H4 + .02 AND 1.02 * C4 <= O3) OR 
(H5 < MINL5 AND L < H5 + .02 AND 1.02 * C5 <= O4) OR 
(H6 < MINL6 AND L < H6 + .02 AND 1.02 * C6 <= O5) OR 
(H7 < MINL7 AND L < H7 + .02 AND 1.02 * C7 <= O6) OR 
(H8 < MINL8 AND L < H8 + .02 AND 1.02 * C8 <= O7) OR 
(H9 < MINL9 AND L < H9 + .02 AND 1.02 * C9 <= O8) OR 
(H10 < MINL10 AND L < H10 + .02 AND 1.02 * C10 <= O9)

It is pretty restrictive and can be loosened up somewhat.

PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
srinibalram
Posted : Saturday, August 16, 2014 1:59:07 PM
Registered User
Joined: 3/11/2012
Posts: 13

Hi Bruce,

Is there a pcf formula for the following and if so please let me know? An example:

- Stock x has had a gap up today and the price moved from 10$ to 13$.

I want to know on this symbol how often has a gap up happend in a years time frame?

Secondly with a gap up the price tends to continue going up for sometime as there is normally momentum on that stock.

Is there anyway to estimate how long the the price will continue going up based on its previous gap up that the symbol has had?

 

Is there any specigic indicator that I can use?

 

Thanks in anticipation.

 Srini

 

Bruce_L
Posted : Monday, August 18, 2014 3:29:09 PM


Worden Trainer

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

You can plot the number of time price has gapped up during the 252 most recent bars using something similar to the following Custom PCF Indicator (which use the low being above the previous high as the definition of a gap up).

- Period: 252
- Average Type: Simple
- Formula: 252 * ABS(L > H1)

That said, I cannot think of a practical automated method of determining either the average number of up bars in a row or the average percent gain following a gap up in TC2000. 



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
srinibalram
Posted : Monday, August 18, 2014 6:00:07 PM
Registered User
Joined: 3/11/2012
Posts: 13

Thank you Bruce

Bruce_L
Posted : Tuesday, August 19, 2014 9:26:53 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.