Login Page - Create Account

Support Board


Date/Time: Mon, 03 Mar 2025 17:41:22 +0000



Post From: sc.GetVolumeAtPriceDataForStudyProfile [Get total volume at price from VbP]

[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 :)