Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert when price crosses a ray and then have that ray from the chart.

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

    Alert when price crosses a ray and then have that ray from the chart.

    Hello,
    How could one be alerted when price crossed a ray and then have that ray from the chart?
    Thanks

    #2
    Hello CaptainAmericaXX,

    Thanks for your post.

    I suspect your question is incomplete, are you asking to be notified by alert sound when price crosses a ray and then once it has crossed to remove the ray?

    Comment


      #3
      Sorry Paul, I wasn't specific. So programmatically how would one determine when price had crossed the ray? I created a ray and I was hoping that I could see the data of the ray per bar with the Data box, but there is no ray data. I want to set a bool true once price has crossed the ray.
      Thanks.
      PS. I just realized that this was a NT 8 thread. I need info on NT 7 rays. I found information on iSlope in NT 8. I believe this is the answer to my question. Is there something comparable in NT7?
      PPS. So I realized I could just find slope m = y2 - y1 / x2 - x1 and create a variable. Had to dust off my preAlgebra from 80 years ago. Might need some more help, but I'm ok for now. Could use some pointers in how to end a ray at some point.
      Thanks.
      Last edited by CaptainAmericaXX; 04-17-2018, 07:00 PM.

      Comment


        #4
        Hello CaptainAmericaXX,

        Thanks for your post.

        We will move your post to a new thread in NT7 indicator development forum.

        For NT7 the same Slope() method is available, here is a link: https://ninjatrader.com/support/help...nt7/?slope.htm

        To remove the ray (or any draw object) you can use RemoveDrawObject() where all you need to do is provide the tag name of the ray, reference: https://ninjatrader.com/support/help...drawobject.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 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
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X