Is there a way to draw a curved polyline on the chart in NinjaTrader with a custom set of plots?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Custom Indicator Line
Collapse
X
-
Custom Indicator Line
I've created a modified EMA indicator that composites every x (period) bars. However since it only has a value every x bars, it doesn't plot on the chart since there are missing values. I would like the indicator to manually draw the plots it has on the chart. In C# I would use the DrawCurve method and pass in the array of plots. However DrawCurve has not been overloaded to support NinjaTrader charts like many of the other C# Graphics library methods.
Is there a way to draw a curved polyline on the chart in NinjaTrader with a custom set of plots?Tags: None
-
Patrick,
Thanks for your response. The sample code you pointed out was helpful as it showed examples of the undocumented functions ChartControl.GetXByBarIdx and ChartControl.GetYByValue. However the examples only draw either straight lines from bound corners or horizontal lines to indicate pivot prices. They do not show examples of plotting an indicator line on a chart (like that of the @EMA indicator).
Does NinjaTrader provide any way to draw a curved polyline on the chart with a custom set of coordinates (ie. bar/price or bar/Y, etc)? Is there any other way to draw a curved polyline in NinjaTrader other than to use C#'s Graphics.DrawCurve?
Comment
-
Originally posted by DeepCSystems View PostPatrick,
Thanks for your response. The sample code you pointed out was helpful as it showed examples of the undocumented functions ChartControl.GetXByBarIdx and ChartControl.GetYByValue. However the examples only draw either straight lines from bound corners or horizontal lines to indicate pivot prices. They do not show examples of plotting an indicator line on a chart (like that of the @EMA indicator).
Does NinjaTrader provide any way to draw a curved polyline on the chart with a custom set of coordinates (ie. bar/price or bar/Y, etc)? Is there any other way to draw a curved polyline in NinjaTrader other than to use C#'s Graphics.DrawCurve?
ref: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
8 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
11 views
0 likes
|
Last Post Today, 02:34 AM |
Comment