Western Florida
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,515
Thanks Received: 26,292
|
First:
Define your colors, say, upColor and downColor.
private Color upColor = Color.Blue;
private Color downColor = Color.Red;
Then:
if (whatever your up condition is)
{
BarColor = upColor;
// If you also want to color the outline and the wick, add this (assuming you are using candles):
CandleOutlineColor = upColor;
}
etc. for down or whatever.
Bob.
PS, I assumed when I wrote this that you were writing an indicator and just needed the code for a paintbar. If you're not doing the coding, but would like an indicator written, the best place to ask is the free indicator thread:
You would need to specify exactly what you want the indicator to do....
Hope one of these answers addresses what you need.
|