While it may be possible to produce custom graphics which are pleasing to the eye on a chart using the aforementioned technologies, there seems to be some difficulty when the programmer wishes to determine if a bar on the same chart has crossed a given line as drawn by SharpDX commands in Ninjatrader 8, or GDI commands in Ninjatrader 7 without relying exclusively on the naked eye as technology. Further, there seems to be a difficulty just to determine what price and time corresponds to any pixel or point along a custom drawn object.
An external database could be queried to determine if price is near a drawing object, but only if the price and time information about the drawn object were somehow accessible from within Ninjatrader. It would be a good application for the Microsoft Access.Interop, or even the Excel.Interop, but I am curious about whether it is possible to derive meaningful price and time information about a custom drawn object at all. Maybe the required information exists in a pixel based coordinate system, or maybe it has been abstracted away from the developer by design.
Can anyone provide guidance about what programming approach might be effective in NinjaTrader 8 with SharpDX to determine which price and time corresponds to a pixel or a point on a custom drawn line or arc?
Obviously, using a plot is one way to solve the problem, but it is not easy to force a plot to transform itself in terms of rotation.
Comment