Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Draw.Line() Opacity ?

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

    Draw.Line() Opacity ?

    Does anyone know if there is a way to set Opacity for Draw.Line()? I know there is not a parameter for it, but I am wondering if there is a way to do it with the Brushes or something else?

    #2
    Hello Erik, thanks for your post.

    A custom brush needs to be constructed to control Opacity (alpha value). Instead of using one of the pre-built brushes (Brushes.Red, Brushes.Blue, etc), construct your own SolidColorBrush employing the Color.FromArgb() method, the first value is the "alpha":

    https://ninjatrader.com/support/help...gcustombrushes

    Kind regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Awesome, thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ETFVoyageur, Today, 12:52 AM
      1 response
      9 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by Tin34, Today, 03:30 AM
      0 responses
      4 views
      0 likes
      Last Post Tin34
      by Tin34
       
      Started by lollers, Today, 03:26 AM
      0 responses
      6 views
      0 likes
      Last Post lollers
      by lollers
       
      Started by aliyahany, Today, 03:16 AM
      0 responses
      1 view
      0 likes
      Last Post aliyahany  
      Started by mariajvillarrealr, Today, 02:57 AM
      0 responses
      1 view
      0 likes
      Last Post mariajvillarrealr  
      Working...
      X