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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
28 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
183 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
337 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
261 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment