Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SharpDX Alpha Blending

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

    SharpDX Alpha Blending

    Hi

    I rendered out multiple rectangles and realized the opacity on them is losing effect by squeezing them together with the y axis, I googled it and it claimed is due to alpha blending setting of sharpDX. Is there anyway I could turn off the alpha blending setting for sharpDX?

    Attached Files

    #2
    Hello Curerious,

    When you overlay multiple renders they will gain alpha as the layers add to each other. There is not a way to modify how the platform works for rendering but you can change the alpha that you use in those cases based on the scale of the chart. You may be able to use math to find the difference between the MaxValue and MinValue of the ChartScale and then create an opacity depending on the difference. https://ninjatrader.com/support/help...sub=chartscale

    That would be instrument dependent but may offer a way to reduce the opacity when a certain price range is met.

    You can also check out MaxMinusMin that is the difference between the scales as a property.

    Comment


      #3
      Thank you Jesse

      Comment

      Latest Posts

      Collapse

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