Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Line intersection Indicator

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

    Line intersection Indicator

    Hi,

    I have a custom indicator that draws rays from highs and lows and I would like to have another indicator that shows me when three rays intersect perfectly. Sometimes it looks like they do visually but they don't so an indicator would be helpful. I wrote an excel program to do this and used the slopes and y-intercepts to calculate the intersections and then checked all the three line combinations for a match. I assume I'll have to approach this problem differently as a ninjatrader custom indicator?

    First: Do you think this is possible to achieve?

    Second: Any ideas on how to approach this?


    Thanks for any suggestions.

    #2
    Stockgoblin,



    You can access the x,y positions of the iRay object above and use a similar method to calculate where a intersection occurs to what you did in excel.



    Above is a thread that discusses accessing drawing objects.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    581 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    338 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X