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