Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
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
|
|
Registered User Joined: 8/24/2007 Posts: 43
|
Fantastic, that worked. Thanks.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |