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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        83 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        45 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        65 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        57 views
        0 likes
        Last Post CarlTrading  
        Working...
        X