Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What price is returned when total volume is the same at multiple levels in a bar, OF+

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

    What price is returned when total volume is the same at multiple levels in a bar, OF+

    Playing around with OF+ Volumetric Bars and in the docs it says,
    GetMaximumVolume(bool? askVolume, out double price) Gets the highest Ask, Bid or combined volume (long value) for the bar and returns the price at which it occurred.
    What happens if you have a bar with multiple price levels that have the same total volume, which price level is returned and what are the criteria used to determine that value (i.e. if the bar is green is the price level returned the lowest price, and if the bar is red it's the highest price, or is it just always the highest price, or always the lowest price, etc.)?

    edit: spacing for readability

    #2
    Hello Epiphany79,

    Thank you for your post.

    While this isn't officially documented, from my testing, it seems that it always returns the highest price when two price levels have the same volume.

    Please let us know if you have any further questions.
    Last edited by NinjaTrader_Gaby; 05-16-2024, 07:58 AM.

    Comment

    Latest Posts

    Collapse

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