Support Board
Date/Time: Tue, 24 Mar 2026 02:58:54 +0000
Post From: Question about sc.VolumeAtPriceForBars
| [2026-03-24 00:54:15] |
| Tony - Posts: 699 |
|
Problem solved, please ignore my original message, Thanks! const s_VolumeAtPriceV2 *p_VolumeAtPrice=NULL;
int VAPSizeAtBarIndex = sc.VolumeAtPriceForBars->GetSizeAtBarIndex(sc.Index); for (int VAPIndex {0} ; VAPIndex<VAPSizeAtBarIndex; VAPIndex++) { if (!sc.VolumeAtPriceForBars->GetVAPElementAtIndex(sc.Index, VAPIndex, &p_VolumeAtPrice)) break; double ActualPrice = p_VolumeAtPrice->PriceInTicks * sc.TickSize; int TargetIndex {(int)((ActualPrice-ProfileRange[0])/sc.TickSize)}; ProfileValues[TargetIndex] = p_VolumeAtPrice->Volume; } Date Time Of Last Edit: 2026-03-24 02:28:27
|
