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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    155 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    137 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X