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

Gaps Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
cliffhanger31
Posted : Saturday, February 26, 2011 6:05:41 PM
Registered User
Joined: 8/24/2007
Posts: 43
I am interested in finding gaps that are greater than the "Gap Up/Down" scan that already exists. It will pass if the difference is $0.01. I am looking for bigger gaps than that, say 2% or greater. Does one exist or can it be created?

Andreas W
cliffhanger31
Posted : Saturday, February 26, 2011 6:16:59 PM
Registered User
Joined: 8/24/2007
Posts: 43
Just read some of the other posts and you need more info to answer intelligently. I am using end of day data so the "opening/morning gap" scans that already exist won't do me any good. So to be clear, on the upside gap, I want the low of day two to be higher than the high of day one by a good margin. The reverse for a downside gap. 

Andreas W 
Bruce_L
Posted : Monday, February 28, 2011 9:32:42 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try one of the following RealCode Conditions. The margin is a UserInput and can be adjusted by by the user by Editing the Condition without Editing the RealCode.

Writing Conditions in RealCode

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Net Margin Gap
'|******************************************************************
'# NetMargin = UserInput.Single = 1
If Price.Low >= Price.High(1) + NetMargin OrElse _
    Price.High <= Price.Low(1) - NetMargin Then Pass

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Percent Margin Gap
'|******************************************************************
'# PercentMargin = UserInput.Single = 1
If Price.Low >= Price.High(1) * (1 + PercentMargin / 100) OrElse _
    Price.High <= Price.Low(1) * (1 - PercentMargin / 100) Then Pass

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
cliffhanger31
Posted : Tuesday, March 1, 2011 6:34:43 PM
Registered User
Joined: 8/24/2007
Posts: 43
Fantastic, that worked. Thanks.
Bruce_L
Posted : Wednesday, March 2, 2011 9:11:21 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.