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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    236 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    151 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    162 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    243 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    198 views
    0 likes
    Last Post CarlTrading  
    Working...
    X