Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How will price range be written?

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

    How will price range be written?

    In the strategy wizard, how would one write the "price range". For example, I want to write "the price range of Bar[3] > twice Bar[4]".

    Thank you.

    #2
    ju1234, I think you can work with the percent offset for this using the Range indicator (this sample uses volume to demonstrate the concept) - http://www.ninjatrader-support.com/H...Expansion.html

    Comment


      #3
      Thank you, I got the percent part. How about the price range? Can i somehow write High - low of current day or d=there is some command / code for writing the price range? Thanks.

      Comment


        #4
        Just select Range from the indicator list. That already does the High - Low calculation for you. To get daily range you have to run on a daily chart.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thank you, i would appreciate further help. I tried writiing the following:

          Close of bar 1 < [low of 1 + (0.2 * range of 1)] in other words i am trying to say that the closing price should be near the bottom of the bar 1. This is how i tried it (did not work):

          In the strategy wizard, On the left side I chose CLOSE in the price data section, <= in the middle, and on the right i chose LOW and in the offset chose percent and in the amount of offset i wanted to choose 20% of the range of 1. Here i was all confused because another offset window opens etc.

          Please help. Is there another way i can express what i am trying to say, that is the close should be near the bottom (or top) of the bar.

          thanks.

          Comment


            #6
            Not sure I follow what you are trying to achieve exactly. You need to objectively define out what "near the bottom" means. This most likely will need to be done through two conditions where one of them you check for >= and the other you check for <=. You need to define the acceptable range Close can be within in relation to Low.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Okay. Since the bar is variable, it cannot be defined in terms of ticks. So, what i was thinking was to define it in terms of percentage of the total length of the bar (range). Say the bar is 15 ticks, the close should be near the low and not near the high or midway. So, i thought that I would make the condition to be "close of bar 1 is less than (low of the bar 1 plus 20% of the range)" in this illustration, that would be within 3 ticks from the low. You got the idea. So, i want to build a condition for both the uptick and for downtick in this manner.
              What will be the best way to build such a condition. Thanks.

              Comment


                #8
                ju1234, as simple condition might then be checking for the Close to be greater / smaller the the TypicalPrice of the bar. For your direct condition you would need to add / substract the price range to the High / Low of the bar which the wizard unfortunately does not support. What you can do is enterring for example that the Close has be great than Close[1] + some offset expressed in percent or ticks, but this would be a static offset then.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                558 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                324 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                545 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                547 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X