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 |

Help with code Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
RC-EQUITIES
Posted : Friday, March 29, 2019 11:20:17 AM
Registered User
Joined: 2/15/2012
Posts: 25

Sorry, this is probably very simple:  How would I write a pcf that says i'm looking for stocks that are gapping up a minimum of 2% from the prior days close?

 

C1 < O AND O >= 1.02 * C1

 

This is what i have but the names its producing often time are below the prior days close.  Thankyou for your help.

Bruce_L
Posted : Friday, March 29, 2019 11:45:28 AM


Worden Trainer

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

Gap up can mean a variety of things (even when specifying "from the close")..

If you mean the open is at least 2% above the prior close than you should already be getting than as part of your formula.

O >= 1.02 * C1

If you need some sort of unfilled gap where the low has never gone below that close.

O >= 1.02 * C1 AND L > C1

If price just needs to also currently be above that close.

O >= 1.02 * C1 AND C > C1

If price needs to be still be at least 2% above the previous close.

O >= 1.02 * C1 AND C >= 1.02 * C1

If the price of the current bar needs to have remained above the previous close the entire time.

L >= 1.02 * C1

If none of these does what you want, please provide additional clarification as to your requiements along with examples of symbols returning true which do not meet those requirements.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
RC-EQUITIES
Posted : Tuesday, April 2, 2019 1:18:46 PM
Registered User
Joined: 2/15/2012
Posts: 25

Thankyou very much for all the varying ways and ideas....Its very appreciated and helpful Bruce!  Best regards!

Bruce_L
Posted : Tuesday, April 2, 2019 1:22:33 PM


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.