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