Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

buysellvolume bars look fishy on 7.0

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

    buysellvolume bars look fishy on 7.0

    I was modifying the buysellvolume to show what percentage was larger the buy or sell on the price action. It works fine but the buy sell bars don't look right to me now.

    issues: see attached image.

    Note the 92% green number the bar looks about 50%.

    The 9089 red bars don't look right either.

    If you look at the second image there is a 100% bar, The vol bar is definitely not 100%.
    It was a down bar which doesn't make sense with 100% buyers.

    I displayed my raw numbers on the chart for debug and they are right. Double checked my math but it is pretty simple: (buys / sells) * 100) and (sells / buys ) * 100). I check for 0 to get the 100% bars.

    Comment?
    Attached Files

    #2
    ct, does the BuySellVolume indicator look different in NT7 vs NT6.5? As for your custom coded indicator, if you could post the complete indicator we'll be able to tell you what is wrong with it. As far as I can tell, it is working correctly. With the way you have the math set up, it is possible for you to get bars with extremely large values (it is also possible for you to get a divide by 0 error, but that is another story).

    I have a feeling this code could be what you're looking for:
    Code:
    buyPct = (buys / (buys + sells) * 100);
    sellPct = (sells / (buys + sells) * 100);
    That way, the scale is corrected so it never goes above 100%.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Austin

      I can send it but don't want to post it.

      Comment


        #4
        ct, then go ahead and send it to support at ninjatrader dot com attn 'NS - thread 28125, ticket 306671'. Thank you.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Austin

          done.

          Comment


            #6
            Austin

            Your math was correct, mine was not. Give yourself a gold star and a big thanks from me.

            cheers.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            581 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            338 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            552 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X