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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
629 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
564 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment