Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?
    Paul H.NinjaTrader Customer Service

    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
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by geddyisodin, Today, 05:20 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Max238, Today, 01:28 AM
        3 responses
        31 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by timko, Today, 06:45 AM
        2 responses
        12 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by habeebft, Today, 07:27 AM
        0 responses
        5 views
        0 likes
        Last Post habeebft  
        Started by Tim-c, Today, 03:54 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X