Login Page - Create Account

Support Board


Date/Time: Tue, 21 Jan 2025 07:30:08 +0000



Post From: HOWTO GET askvolume by GetAskVolumeAtPrice ?

[2018-07-29 10:37:33]
User574685 - Posts: 28
Hi,

i need get a askvolume at price... but GetAskVolumeAtPrice, doesn`t work at all.
i receive "0" as a result .....
What is wrong with that ?

Thanks 4 Help
Dave

-------------------

if ((int)sc.VolumeAtPriceForBars->GetNumberOfBars() < sc.ArraySize)  return;
s_VolumeAtPriceV2 *p_VolumeAtPrice;
  
sc.VolumeAtPriceForBars->GetVAPElementAtPrice(sc.Index-1, p_VolumeAtPrice->PriceInTicks * sc.TickSize);
MaxAskVolume_First = sc.VolumeAtPriceForBars->GetAskVolumeAtPrice(sc.Index-1, p_VolumeAtPrice->PriceInTicks * sc.TickSize);