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 |

Ranges with Min and Max Percent Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Rockford
Posted : Wednesday, November 26, 2014 4:16:01 PM
Registered User
Joined: 10/22/2014
Posts: 22

Is there a way to write a scan formula, with minimum and maximum percentage of price?

Thanks,

 

Bruce_L
Posted : Wednesday, November 26, 2014 4:58:10 PM


Worden Trainer

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

I'm not sure I'm understand the question correctly, but I think so. For example, the following Condition Formula would check for the range of the most recent bar to be between 1% and 5% of the current price.

.01 * C <= H - L AND H - L <= .05 * C

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



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Rockford
Posted : Wednesday, November 26, 2014 5:02:50 PM
Registered User
Joined: 10/22/2014
Posts: 22

As an example: Stock price $10.00. With your example, would the ranges produced in the scan be between 1% $10.10 to 5% $10.50?

Thanks in advance.

 

Rockford
Posted : Wednesday, November 26, 2014 5:05:16 PM
Registered User
Joined: 10/22/2014
Posts: 22

Also Bruce, would it matter what time frame I used it on? What time frame would you suggest with your example of 1% mininum and 5% maximum?

 

Bruce_L
Posted : Friday, November 28, 2014 10:20:45 AM


Worden Trainer

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

My example was not a suggestion. It was just an example of showing that you could check for the range of the current bar being a certain percentage of price.

You are generally going to want to use smaller percentages for smaller time frames than longer time frames, but I cannot suggest what percentages you would want to use in any given time frame.

The formula checks for the range to be between 1% and 5% of the current price. So if the current price is $10.00, the high minus the low would need to be at least $0.10 but not more than $0.50.

This means the low could be as low as $9.50 as long as both the high and price are currently $10.00 and the high could be as high as $10.50 as long as the low and current price are currently $10.00. There are a large range of options in between these extremes.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Rockford
Posted : Friday, November 28, 2014 6:15:23 PM
Registered User
Joined: 10/22/2014
Posts: 22

Thanks Bruce. Happy Thanksgiving, I hope you have a nice holiday.

 

Rockford
Posted : Friday, November 28, 2014 7:41:41 PM
Registered User
Joined: 10/22/2014
Posts: 22

Hi Bruce, I tried the above formula and it's not producing what I hoped it would.

I'm not sure I can explain what I'm looking for but I'll try.

1) Lets say I"m trading on a 5 minute chart, between 1pm and 4pm, and I trade the dips.
2) Lets say in the last 3 hours there was a previous low at $10 for example, which I'll call minor support.

I'm looking for a scan that brings in stocks just above the $10 minor support level, so I can play the bounce at $10. I don't have a clue how to do this or if it's even possible.

Thank you

Bruce_L
Posted : Monday, December 1, 2014 11:07:27 AM


Worden Trainer

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

You could try the following Condition Formula using a Daily time frame (don't use the 5-minute time frame for the formula).

1.01 * L <= C AND C <= 1.05 * L

It checks for the current price to be between 1% and 5% above the low of the current trading day. The percentages used were entirely arbitrary and for example purposes only. You will have to decide on your own what percentages you would actually want to use.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Rockford
Posted : Tuesday, December 2, 2014 1:16:49 AM
Registered User
Joined: 10/22/2014
Posts: 22

Thanks a lot Bruce, I'll let you know how it goes.

Bruce_L
Posted : Tuesday, December 2, 2014 10:48:59 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.