Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bar Brush Colors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!

    #2
    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

    Comment


      #3
      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


        #4
        Hello s.kinra,

        Thanks for your reply.

        I've answered the initial question you asked regarding changing the bar opacity.

        You are now asking for something else. Can you provide a visual example of what you are looking to do?

        What chart style are you using? (CandleStick?)


        Comment


          #5
          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.
          Attached Files
          Last edited by s.kinra; 11-09-2020, 08:49 AM. Reason: missed the snapshots

          Comment


            #6
            Hello Paul,
            I am done with the trick & now its working perfectly fine. Thanks for your help!
            Click image for larger version

Name:	working.jpg
Views:	617
Size:	19.5 KB
ID:	1126781

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X