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?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SharpDX Alpha Blending
Collapse
X
-
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?
-
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.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
59 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
283 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment