Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 20:18:35 +0000



Post From: ACSIL Custom Autotrading System assistance

[2024-08-06 20:06:14]
User431178 - Posts: 541
Yes, makes sense.

Suggest reading this page again: sc.GetVolumeAtPriceDataForStudyProfile()

sc.GetVolumeAtPriceDataForStudyProfile(vbpStudyID, priceInTicks, volumeAtPrice, volumeAtPriceIndex)

The above does not conform to the specification for that function.

int GetVolumeAtPriceDataForStudyProfile(const int StudyID, const int ProfileIndex, const int PriceIndex, s_VolumeAtPriceV2& VolumeAtPrice);
ProfileIndex is, in this case, 0 as we are interested only in the most recent profile.
For PriceIndex you actually need to loop through the available levels to find the one that you need.

See if you can figure it out, if not I will try to help some more tomorrow.