Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help with code

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

    Need help with code

    Hello, I am trying to get the ask volume for the current price, and this is the code I came up with. However it is returning: "The name GetAskVolumeForPrice does not exist in the current context"
    Any help is appreciated

    Code:
    Code:
    double price = Close[0];
                int AskVol = GetAskVolumeForPrice(price)[0];​

    #2
    Hello rbeckmann05,

    For normal bars there is not a method to get the volume at a specific price, you would only be dealing with the volume for the current bar. If you are using the volumetric bars there is a method to access volume at price.



    You would need to be using volumetric bars and then also use code like what is shown in the help guide sample to access those values.

    Comment

    Latest Posts

    Collapse

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