Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bid ask delta

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

    Bid ask delta

    Hello, I am trying to get the delta values of the volumetric bars:

    I have tried it with:

    Print("Ask for Close: " + barsType.Volumes[CurrentBar].GetAskVolumeForPrice(Close[0]));
    Print("Bid for Close: " + barsType.Volumes[CurrentBar].GetBidVolumeForPrice(Close[0]));
    Print("Volume for Close: " + barsType.Volumes[CurrentBar].GetTotalVolumeForPrice(Close[0]));
    Print("Maximum Ask: " + barsType.Volumes[CurrentBar].GetMaximumVolume(true, out price) + " at price: " + price);
    Print("Maximum Bid: " + barsType.Volumes[CurrentBar].GetMaximumVolume(false, out price) + " at price: " + price);
    Print("Maximum Combined: " + barsType.Volumes[CurrentBar].GetMaximumVolume(null, out price) + " at price: " + price);
    but the values I get are maximum bid/ask, poc... etc...

    How can I get the bid/ask or delta of each price line that is traded on a bar?

    thank you!​

    #2
    Hello franki,

    The methods that mention "ForPrice" in their name take a price and retrieve a value. You are using the Close price in what you provided. To get the value for each price would require entering each price you wanted to know about in that method and getting the value. To do that for the whole bar would require using a for loop to loop over the prices between the high and low of a bar at the TickSize of the instrument being used. Each price looped over would be used as the input for the method with "ForPrice" in its name.

    Comment


      #3
      Is there an example in ecosystem or documentation in the user guide, ? ^^
      even if it's not from volumetrics,​

      Comment


        #4
        Hello franki,

        I am not aware of a sample that involved for the orderflow items or going over loops in that detail. You would need to research C# loops in external C# learning websites if you wanted to explore that topic in more detail. Once you are comfortable making for loops you can use the High[0] and Low[0] as the two prices to iterate between.

        Comment

        Latest Posts

        Collapse

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