Login Page - Create Account

Support Board


Date/Time: Sun, 12 Jan 2025 10:46:11 +0000



Post From: VolumeAtPriceForBars->GetNumberOfBars() is equal to sc.ArraySize?

[2017-02-08 10:48:06]
User701247 - Posts: 117
Referring to the function scsf_VolumeAtPriceArrayTest in the /ACS_Source/studies8.cpp file, the following coding seems meaningless based on following description, VolumeAtPriceForBars->GetNumberOfBars() is equal to sc.ArraySize.

I would like to know on what following coding do since (int)sc.VolumeAtPriceForBars->GetNumberOfBars() is always equal to sc.ArraySize.

Does anyone have any suggestions?
Thanks in advance for any suggestions :>

Coding
sc.MaintainVolumeAtPriceData = 1; // true
if ((int)sc.VolumeAtPriceForBars->GetNumberOfBars() < sc.ArraySize)
    return;

Function Description
int sc.VolumeAtPriceForBars->GetNumberOfBars(): This function returns the last chart bar index + 1 that the sc.VolumeAtPriceForBars container has volume at price data for. As long as volume at price data is being maintained for the chart, which will be the case when sc.MaintainVolumeAtPriceData = 1, the return value of this function will equal sc.ArraySize. This function takes no parameters.

Ref: ACSIL Interface Members - Variables and Arrays: sc.VolumeAtPriceForBars
Date Time Of Last Edit: 2017-02-08 10:48:48