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

Using ray in a cross?

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

    Using ray in a cross?

    I noticed I won the most online here so thanks for the help and I will keep it short. Is it possible to use a Ray drawn and tagged by a strategy in crossabove/below?
    Thanks a mill,
    Howie

    #2
    Not sure I follow, but a strategy can create a Ray object and paint in on chart.

    Comment


      #3
      Hi Dierk,
      Understood. Is there a way to test a crossover i.e. CrossAbove(Close,MYRAYNAME,1) ?
      Thank you

      Comment


        #4
        Sorry not sure I follow. MYRAYNAME needed to be a data series. Is it?

        Comment


          #5
          MYRAYNAME would be the ray created and drawn by the strategy. I would like to trap as a signal to trade the crossing of the Close and the Ray created and drawn by the strategy.

          Comment


            #6
            I see. Unfortunately this is not supported. A ray is just a drawing object and not a data series which you would need for your calcs.

            Comment


              #7
              You could check out the Automatic Trend Line Detection indicator I coded. Its located in the NinjaScript File Sharing section. If my memory serves me correctly, I calculate the trend line and draw a ray and I then have code that detects when there is a cross of that ray by price.
              RayNinjaTrader Customer Service

              Comment


                #8
                Dont take this the wrong way Ray... I love you

                Comment


                  #9
                  Awesome!!!!

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by RideMe, 04-07-2024, 04:54 PM
                  6 responses
                  31 views
                  0 likes
                  Last Post RideMe
                  by RideMe
                   
                  Started by tkaboris, Today, 05:13 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post tkaboris  
                  Started by GussJ, 03-04-2020, 03:11 PM
                  16 responses
                  3,281 views
                  0 likes
                  Last Post Leafcutter  
                  Started by WHICKED, Today, 12:45 PM
                  2 responses
                  19 views
                  0 likes
                  Last Post WHICKED
                  by WHICKED
                   
                  Started by Tim-c, Today, 02:10 PM
                  1 response
                  10 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Working...
                  X