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!
See more
See less

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:	154
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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by PaulMohn, Today, 05:00 AM
    0 responses
    6 views
    0 likes
    Last Post PaulMohn  
    Started by ZenCortexAuCost, Today, 04:24 AM
    0 responses
    5 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by ZenCortexAuCost, Today, 04:22 AM
    0 responses
    2 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by SantoshXX, Today, 03:09 AM
    0 responses
    16 views
    0 likes
    Last Post SantoshXX  
    Started by DanielTynera, Today, 01:14 AM
    0 responses
    3 views
    0 likes
    Last Post DanielTynera  
    Working...
    X