Support Board
Date/Time: Tue, 04 Feb 2025 11:09:00 +0000
Post From: Can we access the Volume Profile from NumberBars Study using sc.GetStudyProfileInformation
[2020-01-11 15:21:39] |
User205938 - Posts: 8 |
So I decided to add an additional VolumeByPrice study with multiple profiles of each bar on the chart. Then I am able to pull the data using the following: n_ACSIL::s_StudyProfileInformation PBVolumeProfile;
sc.GetStudyProfileInformation(9, BarIndex, PBVolumeProfile); float POC = PBVolumeProfile.m_VolumePOCPrice; float ValueAreaLow = PBVolumeProfile.m_VolumeValueAreaLow; float ValueAreaHigh = PBVolumeProfile.m_VolumeValueAreaHigh; From my understanding, the array indexing for the actual chart bars is 0 for the leftmost bar and sc.ArraySize -1 for the right most. But for the sc.GetStudyProfileInformation the index is 0 for the rightmost bar. If I am doing manual looping what is the correct indexing variable to use? |