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 Irukandji, Today, 09:34 AM
                        0 responses
                        1 view
                        0 likes
                        Last Post Irukandji  
                        Started by TraderBCL, Today, 04:38 AM
                        3 responses
                        24 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Started by WeyldFalcon, 08-07-2020, 06:13 AM
                        11 responses
                        1,423 views
                        0 likes
                        Last Post jculp
                        by jculp
                         
                        Started by RubenCazorla, Today, 09:07 AM
                        0 responses
                        4 views
                        0 likes
                        Last Post RubenCazorla  
                        Started by BarzTrading, Today, 07:25 AM
                        2 responses
                        29 views
                        1 like
                        Last Post BarzTrading  
                        Working...
                        X