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 get the Objects Drawn on charts using SharpDX RenderTarget.DrawLine

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

    How to get the Objects Drawn on charts using SharpDX RenderTarget.DrawLine

    Hi,

    I have an indicator through which i wish to make a strategy.

    This indicator drawn on the chart using SharpDX, how can i fetch objects drawn using SharpDX or any workaround to this?

    I already tried ChartPanel.ChartObjects, but it is not fetching SharpDX objects.

    Thanks in advance.

    #2
    Originally posted by raaxus View Post
    Hi,

    I have an indicator through which i wish to make a strategy.

    This indicator drawn on the chart using SharpDX, how can i fetch objects drawn using SharpDX or any workaround to this?

    I already tried ChartPanel.ChartObjects, but it is not fetching SharpDX objects.

    Thanks in advance.
    You seem to be saying that you drew SharpDX objects, from some data and now you want to access the SharpDX object. It might be more reliable to access the data which you used to draw the object, than it would be to access the secondary information contained by the object.

    Comment


      #3
      Welcome to the forums raaxus!

      SharpDX is used to simply draw on the chart. It does not provide public properties which can be accessed by other NinjaScripts. The best and easiest way to expose information in an indicator so it can be used by a strategy or another script would be to add a plot to the indicator and then assign values to that plot. I have included documentation for AddPlot below which demonstrates plotting.

      AddPlot() - https://ninjatrader.com/support/help...8/?addplot.htm

      Let us know if you have any additional questions.
      JimNinjaTrader Customer Service

      Comment


        #4
        Originally posted by koganam View Post

        You seem to be saying that you drew SharpDX objects, from some data and now you want to access the SharpDX object. It might be more reliable to access the data which you used to draw the object, than it would be to access the secondary information contained by the object.
        Thanks for your reply,
        I didn't used SharpDX, i am using an indicator which internally used SharpDX and i wish to automate that indicator for trading. But unable to get understand how to read those objects from chart. Moreover indicator doesn't have any public function which can be use.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,606 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        13 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X