Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

data values of drawobjects

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

    data values of drawobjects

    I saw on a previous thread this code to loop through the drawobjects... Is there any way to access the end points of a line once the desired line object is found?? The user interface shows data properties like Start Time and Start Y .... are these exposed? I don't see them as properties of the DrawObject.

    foreach(IDrawObject drawObject in DrawObjects)
    {
    if (drawObject.DrawType == DrawType.Ray && drawObject.Tag == "ABC")
    {
    // Do something here
    break;
    }
    }


    #2
    Yes, they are in fact exposed. We will post up an example early next week.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks... looking forward to the example.

      Comment


        #4
        foxthorn,

        Please try the attached file. Before adding it to the chart draw several lines on your chart with color blue. Make some of the global objects and leave some of them as non-global. Bring up the Output Window and then add the indicator.

        The example shows how to change the color. You can just as easily get point values this way too.
        Attached Files
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Excellent! Thanks Josh.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          181 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          334 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          258 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          358 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          187 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X