Support Board
Date/Time: Sat, 21 Jun 2025 17:22:39 +0000
Post From: Get the price level from Large Trade Volume Trade Indicator
[2022-04-26 08:57:01] |
User189399 - Posts: 48 |
As you said it works similar to ACSIL Interface Members - Variables and Arrays: sc.VolumeAtPriceForBars. I tried the code below with compiler error that the "no matching unction call for GetVAPElementAtIndex". Could you suggest example code or documentation specific for sc.p_VolumeLevelAtPriceForBars? c_VolumeLevelAtPriceContainer *p_VolumeLevelAtPriceForBars = NULL; int VAPSizeAtBarIndex = sc.p_VolumeLevelAtPriceForBars->GetSizeAtBarIndex(BarIndex); unsigned int MaxTradeVol=0; float MaxTradePrice=0.0; for (int VAPIndex = 0; VAPIndex < VAPSizeAtBarIndex; VAPIndex++){ if (!sc.p_VolumeLevelAtPriceForBars->GetVAPElementAtIndex(BarIndex, VAPIndex, &p_VolumeLevelAtPriceForBars)) break; if(p_VolumeLevelAtPriceForBars->GetMaxVolumeAtPrice > MaxTradeVol){ MaxTradeVol=p_VolumeLevelAtPriceForBars->GetMaxVolumeAtPrice; MaxTradePrice=sc.Low[BarIndex]+VAPIndex *sc.TickSize; } } |