• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

calculate differences of daily high/low in the ninja script wizard

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

    calculate differences of daily high/low in the ninja script wizard

    Is there an easy way to calculate differences of daily high/low in the ninja script wizard? I dont find anything that can do it in the wizard menu.

    I dont want to change this specific strategy to become coding only as of yet. So using the wizard is the option for me for now.

    Thanks,
    Regards

    #2
    Does your strategy work off of daily bars? If yes, use the "Range" indicator, if you are working off an intraday time frame, you would need to do this programatically via the wizard.
    RayNinjaTrader Customer Service

    Comment


      #3
      the strategy is based on 30 mins and other time frame depends on the instructment.

      So I want to use daily high/low to make another condition.

      Comment


        #4
        In the Strategy Wizard please select Indicator and choose CurrentDayOHL. Then you can choose the CurrentHigh or CurrentLow plot to create your condition.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          If I use that, I can only show OHLC and compare it to something else on the other side, i cant subtract HL on one side and compare it to a number on the right side.

          I found the RANGE in the indicator, i dont find any document about it in help file. Any idea?

          Perhaps I just code it, it is easier that way.

          Thanks.

          Comment


            #6
            Hello,

            You will need to code this. This will help you:

            double diff = CurrentDayOHL().CurrentLow[0] -
            CurrentDayOHL().CurrentHigh[0] ;
            double abs_diff = Math.Abs(diff);

            if(abs_diff > my_variable)
            {
            //do something
            }
            DenNinjaTrader Customer Service

            Comment


              #7
              Ben,

              is it possible to do it using wizard? It has such samething CurrentOHLD indicator, and Range. just no idea how to use it to get the differences. Dont want to code yet, since im playing around all the indicators, easier using wizard that way.

              Thanks.

              Comment


                #8
                Hello,

                Short of calculating the difference your self and entering that into a user input that is then used in your condition, I do not believe it is possible given the constraints you have mentioned.
                DenNinjaTrader Customer Service

                Comment


                  #9
                  What does the "Range" indicator do?

                  I cant find any information in the documentation.

                  Comment


                    #10
                    Hello,

                    I recommend putting it on the chart and studying it a bit.

                    However, it tells you what the range of the bar is for that interval.

                    For future reference there is a short description of every indicator provided in the bottom right corner of the Indicators window when you have an indicator highlighted.
                    DenNinjaTrader Customer Service

                    Comment


                      #11
                      I just tried it. It seems what I need.

                      However is there a way to apply Range using Daily Bar, and plot it on a 5, 30 minutes chart? Right now the Range indicator is calculating using the bar on the chart that I used. I only see the Bars back, not changing time-frame.

                      Comment


                        #12
                        Hello,

                        No, you cannot do this with the Range indicator. I would use the CurrentDayOHL or PriorDayOHLC indicators.
                        DenNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by ttodua, Today, 03:40 AM
                        0 responses
                        1 view
                        0 likes
                        Last Post ttodua
                        by ttodua
                         
                        Started by chnh1, Yesterday, 11:51 PM
                        0 responses
                        8 views
                        0 likes
                        Last Post chnh1
                        by chnh1
                         
                        Started by Jasper99, Yesterday, 10:29 PM
                        0 responses
                        11 views
                        0 likes
                        Last Post Jasper99  
                        Started by Jasper99, Yesterday, 09:50 PM
                        0 responses
                        6 views
                        0 likes
                        Last Post Jasper99  
                        Started by StevenNelson, Yesterday, 05:57 PM
                        0 responses
                        7 views
                        0 likes
                        Last Post StevenNelson  
                        Working...
                        X