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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      90 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      120 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      71 views
      0 likes
      Last Post PaulMohn  
      Working...
      X