Registered User Joined: 10/7/2004 Posts: 33
|
I would like to find stocks that are doing the following:
On a 5-min Chart, in the first hour to hour and 10min... (between 10 to 32 bars)
1. A series of higher lows (not every one, but maybe 70% of them are higher lows)
2. A series of lower highs (not every one, but maybe 70% of them are lower highs)
3. Overall the ranges of the bars (highs-lows) has been getting smaller (not every one, maybe 60% of them)
I think many of them would end up looking like triangles forming in the first hour of the day.
Can you help me make a condition to light up these stocks with scan lights?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following RealCode Condition (please keep in mind that I am not a programmer):
Static DoY As Integer
Static BoD As Integer
Static HL As Integer
Static LH As Integer
Static SR As Integer
If isFirstBar Or CurrentDate.DayOfYear <> DoY Then
DoY = CurrentDate.DayOfYear
BoD = 0
HL = 0
LH = 0
SR = 0
Else
BoD += 1
If Price.Low > Price.Low(1) Then HL += 1
If Price.High < Price.High(1) Then LH += 1
If Price.High - Price.Low < Price.High(1) - Price.Low(1) Then SR += 1
If HL/BoD >= .7 And LH/BoD >= .7 And SR/BoD >= .6 Then Pass
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|