Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator trend lines

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

    Indicator trend lines

    Hi,

    So I'm trying to reference a trend line object in a strategy, that trend line is drawn from another indicator. I'm currently aware of the foreach(IDrawObject draw in DrawObjects) trick, but its not seeing any of the lines drawn by the indicator. It can see manually drawn ones, and I'm positive the lines being drawn are objects not plots. Any ideas?

    #2
    Hello joe jack,

    That depends on how the indicator is drawing the line. It can be either the Line Class: http://www.ninjatrader.com/support/h...line_class.htm

    Otherwise, it can be drawn manually: http://www.ninjatrader.com/support/h...l?drawline.htm

    For the Line Class drawn objects you may view the following forum post for a reference.
    http://www.ninjatrader.com/support/f...ad.php?t=49055
    JCNinjaTrader Customer Service

    Comment


      #3
      Thanks, it's wrapped in a DLL so I'm not sure. So I'm guessing the line class way doesn't show up in DrawObjects? Is there an another way to reference these lines? I'm game for trying any suggestions.

      Comment


        #4
        Hello joe jack,

        You may use the following example to try to get the value of a Line from another indicator:

        Code:
        // ADXR "Lower" Line
        Print("Test output Line value: "+ ADXR(10, 14).Lines[0].Value);
        Otherwise, you may contact the vendor to see how it was programmed.
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        605 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        351 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        561 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X