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 jeronymite, 04-12-2024, 04:26 PM
                  3 responses
                  44 views
                  0 likes
                  Last Post jeronymite  
                  Started by Barry Milan, Yesterday, 10:35 PM
                  7 responses
                  20 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by AttiM, 02-14-2024, 05:20 PM
                  10 responses
                  179 views
                  0 likes
                  Last Post jeronymite  
                  Started by ghoul, Today, 06:02 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post ghoul
                  by ghoul
                   
                  Started by DanielSanMartin, Yesterday, 02:37 PM
                  2 responses
                  13 views
                  0 likes
                  Last Post DanielSanMartin  
                  Working...
                  X