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 Balage0922, Today, 07:38 AM
            0 responses
            3 views
            0 likes
            Last Post Balage0922  
            Started by JoMoon2024, Today, 06:56 AM
            0 responses
            6 views
            0 likes
            Last Post JoMoon2024  
            Started by Haiasi, 04-25-2024, 06:53 PM
            2 responses
            19 views
            0 likes
            Last Post Massinisa  
            Started by Creamers, Today, 05:32 AM
            0 responses
            6 views
            0 likes
            Last Post Creamers  
            Started by Segwin, 05-07-2018, 02:15 PM
            12 responses
            1,786 views
            0 likes
            Last Post Leafcutter  
            Working...
            X