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 drewski1980, Today, 08:24 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post drewski1980  
                  Started by rdtdale, Yesterday, 01:02 PM
                  2 responses
                  16 views
                  0 likes
                  Last Post rdtdale
                  by rdtdale
                   
                  Started by TradeSaber, Today, 07:18 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post TradeSaber  
                  Started by PaulMohn, Today, 05:00 AM
                  0 responses
                  10 views
                  0 likes
                  Last Post PaulMohn  
                  Started by ZenCortexAuCost, Today, 04:24 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post ZenCortexAuCost  
                  Working...
                  X