Support Board
Date/Time: Sun, 23 Aug 2026 03:34:22 +0000
[Programming Help] - GetStudyArrayFromChartUsingID returns 0 for VbPriceVAH/VAL referencing another chart
View Count: 9
| [2026-08-22 23:52:33] |
| User539095 - Posts: 5 |
|
Subject: GetStudyArrayFromChartUsingID returns 0.0 for Volume by Price VAH/VAL when referenced from another chart Setup: Chart 1 has TPO Profile Chart (ID:1) and a separate Volume by Price study (ID:2), attached to the same chart. Volume by Price has "Set as Independent Volume Profile for TPO Chart" = Yes, Draw Mode = "Volume Profiles & POC, VAH, VAL, VWAP Lines". Chart 1's own Chart Values Window shows correct, real Value Area High/Low numbers for Volume by Price (e.g. 7700.00 / 7684.00) — so the underlying calculation is confirmed working correctly natively. From an ACSIL custom study on a separate Chart 2 (same chartbook), I'm calling: cpp sc.GetStudyArrayFromChartUsingID(1, VolumeProfileStudyID, 2, VolVAHArray); // SG3 = Value Area High, 0-indexed = 2 sc.GetStudyArrayFromChartUsingID(1, VolumeProfileStudyID, 3, VolVALArray); // SG4 = Value Area Low, 0-indexed = 3 VolVAHArray/VolVALArray come back correctly sized (matching Chart 1's bar count) but every single element is 0.0, across the entire chart, in both live and Bar Based Backtest. I've confirmed: the StudyID is correct (TPOResult from GetStudyProfileInformationForChart succeeds using the same StudyID lookup pattern for the TPO Profile study), the array sizes are correct, and I've tried both SG-label-as-written (3/4) and 0-indexed (2/3) SubgraphIndex values — both return all zeros. Question: is there an additional setting or step required to make Volume by Price's SG2/SG3/SG4 (POC/VAH/VAL) subgraph data accessible via GetStudyArrayFromChartUsingID when the study is attached to a TPO Profile Chart, even with Independent = Yes set? Or is this combination (Volume by Price on a TPO Profile Chart + cross-chart Subgraph access) simply not supported? |
To post a message in this thread, you need to log in with your Sierra Chart account:
