Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Gap Percent (Up or Down) on 1-Minute Charts Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
traderlady
Posted : Thursday, September 15, 2016 1:33:17 PM
Registered User
Joined: 10/7/2004
Posts: 1,178

Hi Bruce,

 

You previously created this PCF at my request:

Gap Percent (Up or Dn)

100 * (ABS (L > H1) * (L / H1 - 1) + ABS(H < L1) * (H / L1 - 1))

 

I am currently interested in broadening this PCF to show Gaps Up or Down on the one minute chart.  In other words,  for Gap Down at Open:

C1>O

And for Gap Up at Open:

C1<O

 

Is it possible to incorporate these ideas into a similar Gap Percent (Up or Dn)?

 

Thanks,

traderlady

Bruce_L
Posted : Thursday, September 15, 2016 1:53:32 PM


Worden Trainer

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

Maybe the following?

100 * (O / C1 - 1)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
traderlady
Posted : Friday, September 16, 2016 3:00:54 PM
Registered User
Joined: 10/7/2004
Posts: 1,178

This works fine!

Charbelgedeon
Posted : Thursday, February 16, 2017 6:24:32 AM
Registered User
Joined: 9/24/2015
Posts: 4

Good morning Bruce, 

 

I am missing something on this post, I tried to use the formulas but the result is not what I expected. 

I am looking to create a formula for a scan wich can show stocks with gap between x% and x% gap. 

Thanks for your time and your help 

Bruce_L
Posted : Thursday, February 16, 2017 8:46:18 AM


Worden Trainer

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

The formula as written just returns the gap as a percentage (up as + values and down as - values) between the close of the previous bar and the open of the current bar. This is an Indicator Formula designed to return a numeric value.

If you want to create a Condition Formula checking for the value to be between specific percentages, you would need to specificy those percentages and make the comparisons in the formula in order to turn this into a Condition Formula returning a Boolean (true or false) value instead.

For example, the following Condition Formula would check for the gap up to be between 2% and 5%.

2 <= 100 * (O / C1 - 1) AND 100 * (O / C1 - 1) <= 5



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Charbelgedeon
Posted : Thursday, February 16, 2017 8:52:50 AM
Registered User
Joined: 9/24/2015
Posts: 4

Thanks a lot for answering that fast Bruce, you're a beast :) 

 

Have a great day !

Bruce_L
Posted : Thursday, February 16, 2017 9:16:28 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.