Login Page - Create Account

Support Board


Date/Time: Sat, 01 Feb 2025 02:06:41 +0000



Post From: sc.GetPointOfControlPriceVolumeForBar compile error

[2019-06-10 02:39:41]
User189399 - Posts: 43
I try to use sc.GetPointOfControlPriceVolumeForBar() to find the POC price of a bar with code below

int BarIndex
const s_VolumeAtPriceV2 *p_VolumeAtPrice=NULL;
sc.GetPointOfControlPriceVolumeForBar(BarIndex,&p_VolumeAtPrice);

and get the compile error as below:-
error: invalid initialization of non-const reference of type 's_VolumeAtPriceV2&' from an rvalue of type 'const s_VolumeAtPriceV2**'
sc.GetPointOfControlPriceVolumeForBar(BarIndex,&p_VolumeAtPrice);

By referring the link:-
sc.GetPointOfControlPriceVolumeForBar()

It does not provide example how to use this function. Could u provide the example or correct syntax for it?