I am willing to paint bars based on conditions so am able to use BarBrushes[0] & CandleOutlineBrushes[0], just one thing missing. I want to change opacity for down bar so I can identify easily, not very sure how to do it. I should be adding open close condition to identify up bar or down bar but how do I change bar fill color opacity. Any help is appreciated. Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bar Brush Colors
Collapse
X
-
Bar Brush Colors
Hello,
I am willing to paint bars based on conditions so am able to use BarBrushes[0] & CandleOutlineBrushes[0], just one thing missing. I want to change opacity for down bar so I can identify easily, not very sure how to do it. I should be adding open close condition to identify up bar or down bar but how do I change bar fill color opacity. Any help is appreciated. Thanks! -
Hello s.kinra,
Thanks for your post.
You would need to create a custom brush with your opacity setting and then apply that as the BarBrush.
Please see the example here; https://ninjatrader.com/support/foru...408#post784408
-
Hello Paul,
Thanks for your reply & I've already done it by cloning a brush but the issue is it is doing for complete bar i.e. body & wicks. Body is perfectly fine but wicks are not very clear, I can set the body outline & just wondering if there is a way to set the wicks separately. For now I've a new color to differentiate.
I saw this kind of bars in some indicators but unable to understand the logic behind so asking here.
Comment
-
Hello Paul,
You got me to right direction, thanks. I wanted to have opacity for Bar body but was getting wicks also with opacity so I asked it here. What I missed was my Chart Style. I am using the candles which I have modified to get the wick color same as up / down color. I got the answer why it wasn't working when I checked my code with standard candles & got it working. Thanks for your guidance, I'll now figure out a way to change it as well. Just some tweaking will work. Snapshots attached for reference.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment