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 sjsj2732, 03-23-2026, 04:31 AM
            0 responses
            42 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            295 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            290 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            135 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            98 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X