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 |

Looking for a Triangle in Blocks Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
REBubbler
Posted : Tuesday, May 13, 2008 6:57:54 PM
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?
Bruce_L
Posted : Wednesday, May 14, 2008 12:01:45 PM


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