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 |

Opening Gap UP 3% Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
trumpkin
Posted : Monday, January 4, 2010 1:58:47 PM
Registered User
Joined: 3/15/2008
Posts: 2
Have tried to build this, doesn't seem to be working. Can you help out?Thanks
Bruce_L
Posted : Monday, January 4, 2010 2:11:48 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The following RealCode Condition is designed for use on a 1-Day Chart and assumes the "gap" is measured from the previous Close to the current Open:

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 4.9 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:My Condition
'|******************************************************************
If Price.Open >= 1.03 * Price.Last(1) Then Pass

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
trumpkin
Posted : Monday, January 4, 2010 2:18:42 PM
Registered User
Joined: 3/15/2008
Posts: 2
Bruce,Thanks you!If I wanted to apply to a 15 minute chart,how would this be different?
Bruce_L
Posted : Monday, January 4, 2010 2:30:13 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You'd need to check for it being the first Bar of the day and have a variable to keep track of if the day is True or not if you want it to continue returning True after the first Bar of the day.

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 4.9 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:My Condition
'|******************************************************************
Static Valid As Boolean
Static DayStore As Boolean
If isFirstBar Then
    Valid = False
Else If Price.DateValue.DayOfYear <> Price.DateValue(1).DayOfYear Then
    If Price.Open >= 1.03 * Price.Last(1) Then
        DayStore = True
    Else
        DayStore = False
    End If
    Valid = True
End If
If Valid = True Then
    If DayStore = True Then
        Pass
    End If
Else
    SetIndexInvalid
End If

-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.