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

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 bortz, 11-06-2023, 08:04 AM
            47 responses
            1,602 views
            0 likes
            Last Post aligator  
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            8 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            4 views
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            12 views
            0 likes
            Last Post Javierw.ok  
            Working...
            X