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

Simple indicator which can calculate difference of high and low of price bar

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

    Simple indicator which can calculate difference of high and low of price bar

    Hello! Can you help me to find simple indicator which can calculate difference of high and low of price bar and display histogram under price chart like a volume.

    #2
    Hello olegator.msc,

    Thanks for your post and welcome to the NinjaTrader forums.

    We've just (re) opened our file sharing area. You might take a look there to see if any meets your needs.



    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by olegator.msc View Post
      Hello! Can you help me to find simple indicator which can calculate difference of high and low of price bar and display histogram under price chart like a volume.
      it's pretty easy to do, I just commend out most of ninja ATR codes.
      Attached Files

      Comment


        #4
        Hello olegator.msc,

        Building on member nkhoi's observations, all you need to do is add the ATR to your chart, set the period to 1 and then change the "plotstyle" from line to bar. Please see the example:

        Click image for larger version

Name:	Olegator-1.PNG
Views:	1236
Size:	74.3 KB
ID:	1036791
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          ATR(1) provides the so-called "true range" of the bar. It is the same value as the range of the bar, if and only if, there is no gap between the bar and the previous bar.

          In any case, there is a Range indicator that ships with NinjaTrader. That is the correct one to use. After all, (high - low) is the definition of range.

          ref: https://ninjatrader.com/support/help...n-us/range.htm

          Comment


            #6
            Originally posted by koganam View Post
            ATR(1) provides the so-called "true range" of the bar. It is the same value as the range of the bar, if and only if, there is no gap between the bar and the previous bar.

            In any case, there is a Range indicator that ships with NinjaTrader. That is the correct one to use. After all, (high - low) is the definition of range.

            ref: https://ninjatrader.com/support/help...n-us/range.htm
            Thank you very much! It is that I need.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by ageeholdings, Today, 07:43 AM
            0 responses
            10 views
            0 likes
            Last Post ageeholdings  
            Started by pibrew, Today, 06:37 AM
            0 responses
            4 views
            0 likes
            Last Post pibrew
            by pibrew
             
            Started by rbeckmann05, Yesterday, 06:48 PM
            1 response
            14 views
            0 likes
            Last Post bltdavid  
            Started by llanqui, Today, 03:53 AM
            0 responses
            9 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by burtoninlondon, Today, 12:38 AM
            0 responses
            12 views
            0 likes
            Last Post burtoninlondon  
            Working...
            X