Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help understanding BuySellVolume

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

    Need help understanding BuySellVolume

    I have uploaded a screen shot of the NQ, with two indicators. The top indicator is BuySellVolume(), the lower is VolumeUpDown(). In the chart is a data box that highlights how BuySellVolume.Buys exactly equals VolumeUpDown.UpVolume. The same kind of display happens for every bar. The Buys will equal UpVolume, or the Sells will exactly equal DownVolume.

    If BuySellVolume is excluding trades betwixt the bid and the ask, How is this possible?

    Also, I've looked at the indicator, and I can't figure out how Sells & Buys are used to form the plots, since neither of these are part of the AddPlot statement.

    Cordially,

    #2
    Hello asteroid,

    Thanks for your post.

    This is the expected behavior of the indicator. The BuySellVolume indicator displays the Buys/Sells in a "stacked" bar chart form, The sells are shown as the red bar, the buys are placed on top of the sells, together the height of the buySell bar is the total volume which you have verified.

    In the region properties, where the plots are made public, the Buys are assigned to Values[0] and the sells are assigned to Values[1] and in the OnBarUpdate() you can see that the stacked bar is created with the Buys[0] = buys + sells and sells is equal to just sells.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    88 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    30 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    68 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X