Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to draw objects in the chart?

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

    how to draw objects in the chart?

    Click image for larger version

Name:	Capture1.JPG
Views:	235
Size:	111.4 KB
ID:	1206975

    I would like to draw objects on the chart and just manipulate the colors because these objects display the state of an indicator on the different times frames.


    it's easy to use drawing objects but they are still attached to Bars.
    I don't know where to start to display them at the corner of the chart
    as shown in the attached photo.

    any help to start

    #2
    Hello aekzof,

    Thanks for your post.

    You could use SharpDX to custom render objects on a chart. These objects would not be tied to the bars on the chart.

    For an example of using SharpDX for custom rendering, please see the SampleCustomRender indicator that comes default with NinjaTrader.

    To view the indicator's code, open a New > NinjaScript Editor window, open the Indicators folder, and double-click on the SampleCustomRender file.

    Also, see the help guide documentation below regarding working with SharpDX to custom render objects.

    Using SharpDX for custom chart rendering: https://ninjatrader.com/support/help..._rendering.htm
    RenderTarget: https://ninjatrader.com/support/help...ndertarget.htm

    Let me know if I may assist further.
    <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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    94 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    140 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    74 views
    0 likes
    Last Post PaulMohn  
    Working...
    X