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:	641
Size:	19.5 KB
ID:	1126781

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            70 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            152 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            162 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            100 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            288 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X