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 AaronKoRn, Today, 09:49 PM
            0 responses
            3 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Today, 08:42 PM
            0 responses
            8 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Today, 07:51 PM
            0 responses
            9 views
            0 likes
            Last Post strategist007  
            Started by StockTrader88, 03-06-2021, 08:58 AM
            44 responses
            3,975 views
            3 likes
            Last Post jhudas88  
            Started by rbeckmann05, Today, 06:48 PM
            0 responses
            9 views
            0 likes
            Last Post rbeckmann05  
            Working...
            X