What is the best way to approach this? Is a "PathGeometry" the thing to use, or something else?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Rendering a Moving Average style line using SharpDX
Collapse
X
-
Rendering a Moving Average style line using SharpDX
I have a requirement to render an indicator Line similar to a moving average that curves up and down. I want to vary the thickness, colour and stroke-style of the line according to various conditions. So this requires custom rendering.
What is the best way to approach this? Is a "PathGeometry" the thing to use, or something else?Tags: None
-
Hello kevinenergy,
Thanks for your post.
That is correct. PathGeometry and RenderTarget.DrawGeometry would need to be used to accomplish custom rendering of that line on the chart.
You could view the Ichimoku Cloud indicator from the NinjaTrader Ecosystem User App Share for an example of using PathGeometry and RenderTarget.DrawGeometry.
Ichimoku Cloud: https://ninjatraderecosystem.com/use...indicator-nt8/
See the help guide documentation below for more information.
RenderTarget.DrawGeometry: https://ninjatrader.com/support/help...awgeometry.htm
PathGeometry: https://ninjatrader.com/support/help...thgeometry.htm
Geometry: https://ninjatrader.com/support/help...thgeometry.htm
StrokeStyle: https://ninjatrader.com/support/help...trokestyle.htm
RenderTarget: https://ninjatrader.com/support/help...ndertarget.htm
SharpDX.Direct2D1: https://ninjatrader.com/support/help..._direct2d1.htm
Using SharpDX for Custom Chart Rendering: https://ninjatrader.com/support/help..._rendering.htm
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
46 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
67 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
35 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
95 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
59 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment