Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/19/2004 Posts: 28
|
Hi,
I tried creating Getting Clear from this month article in Stocks and Commodities but I receive an error.
Did someone create this like in other months from articles in Stocks and Commodities?
Thank you,
Rich
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You may want to take a look at the Clear Method topic.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/19/2004 Posts: 28
|
HI Bruce,
Thanks for the quick reply. I was hoping to have it look like the way Bruce Loebrich and Patrick Argo created it. Do you have that design some where in the database?
Thanks,
Rich
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I created the RealCode Paint Scheme for the article and as far as I can tell, the version presented by jas0501 in Clear Method is exactly the same as what I submitted to Patrick for inclusion in the article (although I haven't yet received my copy of the magazine).
Paint Schemes
Static Swing As Integer
Static HighestLow As Single
Static LowestHigh As Single
If isFirstBar Then
Swing = 0
HighestLow = Line.Low
LowestHigh = Line.High
End If
HighestLow = System.Math.Max(HighestLow, Line.Low)
LowestHigh = System.Math.Min(LowestHigh, Line.High)
If Line.Low > LowestHigh Then
Swing = 1
HighestLow = Line.Low
LowestHigh = Line.High
Else If Line.High < HighestLow Then
Swing = -1
HighestLow = Line.Low
LowestHigh = Line.High
End If
If Swing = 1 Then
PlotColor = Color.Lime
Else If Swing = -1 Then
PlotColor = Color.Red
Else
PlotColor = Color.Yellow
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/19/2004 Posts: 28
|
Thanks Bruce, Sorry I was trying to create as an indicator. Thanks looks great.
Worden Rocks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |