Registered User Joined: 5/13/2007 Posts: 48
|
I'm wanting to try a unique candle color and am wondering if it is possible. I would like to paint a candle green or red based on the following: If the candle closes above BOTH the open AND the close of the previous candle, then paint it green. If the candle closes below BOTH the open AND the close of the previous candle, then paint it red. Is this possible?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You could try something similar to the following RealCode Paint Scheme:
Paint Schemes
PlotColor = Color.Yellow
If Price.Last > Price.Open AndAlso _
Price.Last > Price.Last(1) Then
PlotColor = Color.Lime
Else If Price.Last < Price.Open AndAlso _
Price.Last < Price.Last(1) Then
PlotColor = Color.Red
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|