Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

hard coded opacity

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

    hard coded opacity

    Hello, in one of my indicators I use BackBrush = Brushes.DimGray;
    I want to change the opacity of this color or any color in the code itself.
    Is there way to change the opacity in the code?

    Thank you.

    #2
    Hello imalil,

    Thanks for your post.

    A custom Argb brush could be created and used instead of a pre-defined brush color if you want to specify the opacity of the brush.

    See this help guide page for information about creating and working with custom brushes: https://ninjatrader.com/support/help...Understandingc ustombrushes

    The above help guide page also contains sample code you could view. Note to ensure you call .Freeze() on the custom brush as mentioned in the help guide page.

    Please let me know if I may assist further.
    ​​​​​​​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

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