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 pechtri, 06-22-2023, 02:31 AM
    10 responses
    124 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Yesterday, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Yesterday, 03:01 PM
    2 responses
    22 views
    0 likes
    Last Post helpwanted  
    Working...
    X