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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      41 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      37 views
      0 likes
      Last Post CarlTrading  
      Working...
      X