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 |

How do I paint the middle bar of a five bar pattern? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
zl
Posted : Thursday, November 12, 2009 1:44:16 AM
Registered User
Joined: 10/12/2007
Posts: 10
I have tried numerous ways and can't seem to find a way to paint just the middle bar of a 5 bar pattern where the middle bars high is greater than the high of the two bars to either side.  Please help if this is possible.
Bruce_L
Posted : Thursday, November 12, 2009 10:09:50 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You could Drag and Drop the following RealCode Rule to the Price History Pane to get the desired results:

If CurrentIndex >= 2 AndAlso _
    CurrentIndex <= Price.Count - 3 Then
    If Price.High > Price.High(2) AndAlso _
        Price.High > Price.High(1) AndAlso _
        Price.High > Price.High(-1) AndAlso _
        Price.High > Price.High(-2) Then
        Pass
    End If
Else
    SetIndexInvalid
End If

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
zl
Posted : Thursday, November 12, 2009 5:16:55 PM
Registered User
Joined: 10/12/2007
Posts: 10
Wow. That worked great.Thanks
Bruce_L
Posted : Friday, November 13, 2009 8:01:14 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

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