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

Ray Alert On Hit

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

    Ray Alert On Hit

    I was just curious if anyone knew how to do the following in NT8. I have a ray setup which is drawn automatically and I just want it to alert me and draw something on the chart when price hits/crosses the array in the future.

    Just like this - https://gyazo.com/1eb5e437209e5e05d1aaa3096dc84ce2

    Thank you.

    #2
    Hello,
    I am processing your inquiry and will be back with a reply shortly.
    I look forward to assisting further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chris, I look forward to seeing this.

      Comment


        #4
        Anyone have an idea?

        Comment


          #5
          Hello,
          Thank you for your patience.

          The Ray object has two useful properties you may use. the StartAnchor and the EndAnchor.

          Each of these anchors is an IDrawingTool object with these properties (among others):
          Code:
          <ChartAnchor>.Price, A double representing the price the  DrawingTool's chart anchor was drawn
          <ChartAnchor>.Time, A DateTime representing the time value the DrawingTool's chart anchor was drawn
          More on the Ray object here:


          More on IDrawingTool here:


          More on CurrentBar here:


          You will need to find the slope of the drawing object and check if the price has crossed the line (y) at that time (x).

          We can set an alert programaticaly once we have acquired the data we need from the ray drawing in relation to the price series.

          More on alerts here:


          I have found an indicator for adding alerts to manually drawn lines for NinjaTrader 7:


          Unfortunately, we do not do any custom indicator development or modifications here at NinjaTrader as it would limit our Support capabilities. This thread will remain open for any community members that would like to assist or create this as a convenience to you.

          You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development to follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.

          If I may be of further assistance please let me know.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            hello,
            any idea where can I get nt8 version of this indicator?
            Modified the LabelHorzLine to label Ray Lines Indicator to include an Alert function that will trigger when price crosses the line. I also made some additional changes to the original indicator Set the font size of the price Set the display above or below the line The label will now work on Forex Charts Companion [&#8230;]

            Comment


              #7
              Hello hir0406, thanks for posting.

              I just finished a NinjaTrader 8 version attached.

              Please let me know if I can assist any further.
              Attached Files
              Chris L.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_ChrisL View Post
                Hello hir0406, thanks for posting.

                I just finished a NinjaTrader 8 version attached.

                Please let me know if I can assist any further.
                it just add price text to the rays. no alert
                its already been done in this indicator. only alert is missing in this indicator.
                This is an expansion of the the NinjaTrader Lines Drawing Tool(s) that adds text boxes to each line that will show prices associated with the endpoint or where the line crosses the price scale. Vertical lines will show time stamps. Your own messages can be added to each text box. New settings can be set [&#8230;]

                Comment


                  #9
                  Hello hir04068, thanks for your reply.

                  The Alert functionality was removed because NinjaTrader 8 already has an alert system for drawing tools. To attach an alert to it right click the drawing object>select Alerts.

                  Kind regards.
                  Chris L.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Lumbeezl, 01-11-2022, 06:50 PM
                  31 responses
                  817 views
                  1 like
                  Last Post NinjaTrader_Adrian  
                  Started by xiinteractive, 04-09-2024, 08:08 AM
                  5 responses
                  14 views
                  0 likes
                  Last Post NinjaTrader_Erick  
                  Started by swestendorf, Today, 11:14 AM
                  2 responses
                  6 views
                  0 likes
                  Last Post NinjaTrader_Kimberly  
                  Started by Mupulen, Today, 11:26 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post Mupulen
                  by Mupulen
                   
                  Started by Sparkyboy, Today, 10:57 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Working...
                  X