Login Page - Create Account

Support Board


Date/Time: Wed, 13 May 2026 01:28:03 +0000



Post From: Question about sc.VolumeAtPriceForBars

[2026-03-24 00:54:15]
Tony - Posts: 715
Problem solved, please ignore my original message, Thanks!

const s_VolumeAtPriceV2 *p_VolumeAtPrice=NULL;
int VAPSizeAtBarIndex = sc.VolumeAtPriceForBars->GetSizeAtBarIndex(sc.Index);
memset(ProfileValues, 0, sizeof(ProfileValues));
int LowestTick {(int)round(SessionLowest / sc.TickSize)};
for (int VAPIndex {0} ; VAPIndex<VAPSizeAtBarIndex; VAPIndex++) {
    if (!sc.VolumeAtPriceForBars->GetVAPElementAtIndex(sc.Index, VAPIndex, &p_VolumeAtPrice))
      break;
    int TargetIndex {p_VolumeAtPrice->PriceInTicks - LowestTick};
    ProfileValues[TargetIndex] = p_VolumeAtPrice->Volume;
}

Date Time Of Last Edit: 2026-03-25 14:19:15