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 |

Custom Candle Color Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
scvenne
Posted : Wednesday, November 23, 2011 10:12:44 PM
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?
Bruce_L
Posted : Thursday, November 24, 2011 7:03:21 AM


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