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 |

Real Time - Scan / search for Gaps Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
gojotoby
Posted : Friday, May 29, 2009 12:43:05 PM
Registered User
Joined: 5/15/2009
Posts: 11

Requesting assistance to accomplish the following:

In real time at market open, Identify opening gaps of at least $0.5 EITHER ABOVE OR BELOW THE PREVIOUS day's close.

For the upward Gap, the preceeding conditions requires at least 2 days where the daily Close > daily Open, with the last day having a large real candle body of at least $1, with the upper and lower shadows < 20% of daily range.

For the downward gap, conditions are opposite, with 2 prior days with daily Close < Open, with same candle conditions for body/shadow.

Thanks in advance for the help.
Stan

Bruce_L
Posted : Friday, May 29, 2009 1:01:24 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The following RealCode Rule used on a Streaming Daily Chart should identify the symbols of interest when used as a Scan:

If Price.Open >= Price.Last(1) + .5 AndAlso _
    Price.Last(1) >= Price.Open(1) + 1 AndAlso _
    Price.Last(2) > Price.Open(2) AndAlso _
    Price.Last(1) - Price.Open(1) >= _
    .8 * (Price.High(1) - Price.Low(1)) Then Pass

That said, unless your computer is faster than mine, it is going to take some time to calculate for All Stocks at Market Open and will not give results immediately. I would probably suggest creating a Personal Watchlist the prior evening using a RealCode Rule like the following:

If Price.Last >= Price.Open + 1 AndAlso _
    Price.Last(1) > Price.Open(1) AndAlso _
    Price.Last - Price.Open >= _
    .8 * (Price.High - Price.Low) Then Pass

This means you might even be able to get away with using the following RealCode Rule the next morning:

If Price.Open >= Price.Last(1) + .5 Then Pass

The reverse of these three RealCode Rules would be:

If Price.Open <= Price.Last(1) - .5 AndAlso _
    Price.Last(1) <= Price.Open(1) - 1 AndAlso _
    Price.Last(2) < Price.Open(2) AndAlso _
    Price.Open(1) - Price.Last(1) >= _
    .8 * (Price.High(1) - Price.Low(1)) Then Pass
   
If Price.Last(1) <= Price.Open(1) - 1 AndAlso _
    Price.Last(2) < Price.Open(2) AndAlso _
    Price.Open(1) - Price.Last(1) >= _
    .8 * (Price.High(1) - Price.Low(1)) Then Pass
   
If Price.Open <= Price.Last(1) - .5 Then Pass

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