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 |

Candlestick colours Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Flash99
Posted : Wednesday, May 16, 2012 9:37:09 PM
Platinum Customer Platinum Customer

Joined: 7/16/2009
Posts: 411

Hi,

I am using maily the 30 minutes time frame and I would like to paint yesterday's last bar, and today's first bar with 2 different colours, different than the other bars. Basically I want to paint some of the candlesticks based on the datetime value.

Thank you

Bruce_L
Posted : Thursday, May 17, 2012 7:42:07 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You could use something similar to the following RealCode Paint Scheme.

Paint Schemes

If Line.DateValue.DayOfYear <> Line.DateValue(-1).DayOfYear Then
	PlotColor = Color.Orange
Else If Line.DateValue.DayOfYear <> Line.DateValue(1).DayOfYear Then
	PlotColor = Color.Violet
End If


-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Flash99
Posted : Thursday, May 17, 2012 12:51:47 PM
Platinum Customer Platinum Customer

Joined: 7/16/2009
Posts: 411

Thank you Bruce

Bruce_L
Posted : Thursday, May 17, 2012 12:53:46 PM


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.