Login Page - Create Account

Support Board


Date/Time: Mon, 03 Mar 2025 10:35:29 +0000



[User Discussion] - sc.GetVolumeAtPriceDataForStudyProfile [Get total volume at price from VbP]

View Count: 484

[2021-10-31 15:28:42]
User411647 - Posts: 21
Hey guys

how do I get the volume at the current price from VbP study ?

int PricesCount = sc.GetNumPriceLevelsForStudyProfile(Input_StudyReference.GetStudyID(), 0);

  for (int PriceIndex = 0; PriceIndex < PricesCount; PriceIndex++)
  {
    s_VolumeAtPriceV2 VolumeAtPrice;

    int Result = sc.GetVolumeAtPriceDataForStudyProfile
    (Input_StudyReference.GetStudyID()
      , 0
      , PriceIndex
      , VolumeAtPrice
    );
    
    int Volume = VolumeAtPrice.Volume;
    SubArray[sc.Index] = Volume;
    
  }

this only works volume at the new high prices but lower prices are not updated
Can you help me please ?

Thanks :)
[2021-11-02 14:31:13]
User411647 - Posts: 21
Solved

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account