Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detecting parallel lines

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

    Detecting parallel lines

    Good day!

    I intend to write a custom indicator capable of drawing some lines based on prices and then comparing if such lines are parallel or near parallel.

    Before doing it, would like to ask if you see it feasible to write such script using some methods like Draw.Line(), IDrawingTool and maybe Math.Atan?

    Also would you suggest I explore some other methods or class?

    Thanks

    Voltation
    Last edited by voltation; 03-26-2021, 01:07 AM.

    #2
    Hello Voltation, thanks for your post.

    The Draw.Line drawing tool and accessing its anchors would be well suited for that. Please see the data StartAnchor and EndAnchor available from the Line drawing tool here:

    https://ninjatrader.com/support/help.../nt8/?line.htm

    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    625 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 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
    562 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    567 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X