Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing Sacred Geometry on a Chart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Drawing Sacred Geometry on a Chart

    After being informed by BrandonH (below) that Ninjatrader 8 uses SharpDX with OnRender() to render custom objects on the chart, while Ninjatrader 7 uses GDI, I will assume that both include the ability to transform custom drawn elements by translation, rotation, and scale.

    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.
    Last edited by karl_model; 11-29-2023, 05:12 PM. Reason: distinguish between Ninjatrader 7 GDI capabilities and Ninjatrader 8 SharpDX capabillities

    #2
    Hello karl_model,

    Thanks for your notes.

    NinjaTrader 8 uses SharpDX and OnRender() to render custom objects on the chart, not GDI+.

    To clarify, did you mean to post this in the NinjaTrader 7 section of the forums, as NinjaTrader 7 uses GDI+?
    <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>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by wobmon, Today, 11:56 AM
    8 responses
    31 views
    0 likes
    Last Post rockmanx00  
    Started by defa0009, 12-13-2024, 09:19 AM
    22 responses
    237 views
    1 like
    Last Post defa0009  
    Started by Parmenides48, Today, 06:03 PM
    0 responses
    5 views
    0 likes
    Last Post Parmenides48  
    Started by sclay115, 02-10-2025, 03:58 PM
    5 responses
    24 views
    0 likes
    Last Post rockmanx00  
    Started by sclay115, Today, 02:14 PM
    1 response
    11 views
    0 likes
    Last Post rockmanx00  
    Working...
    X