Support Board
Date/Time: Sun, 12 Jan 2025 07:55:25 +0000
VolumeAtPriceForBars->GetNumberOfBars() is equal to sc.ArraySize?
View Count: 1117
[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
|
[2017-02-08 18:30:33] |
Sierra Chart Engineering - Posts: 104368 |
That check is to make sure the Volume at Price container contains data and sufficient data.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: