Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 09:57:09 +0000



[Programming Help] - Can we access the Volume Profile from NumberBars Study using sc.GetStudyProfileInformation

View Count: 802

[2020-01-11 06:42:34]
User205938 - Posts: 8
As stated in the title, I want to access the Volume Profile on my Footprint chart to get the PriceTick of the VAH and VAL of each individual bar for my custom study. From the documentation it seems that the sc.GetStudyProfileInformation structure has the following members m_VolumeValueAreaHigh and m_VolumeValueAreaLow.

Is this applicable for my needs or does it only apply for the actual VolumeByPrice study? Thanks.
[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?
[2020-01-11 19:51:20]
Sierra Chart Engineering - Posts: 104368
There would be no indexing variable in this case. You would have to manually calculate it. Normally Volume Profiles do not have a not a one-to-one correspondence with the chart bars.
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
Date Time Of Last Edit: 2020-01-11 19:51:39
[2020-01-12 04:32:28]
User205938 - Posts: 8
Understandable, although the Number Bars study does provide an option to display the Volume Profile of each individual bar as a column background. Would there be a way to access that particular array or will it remain private?

I did find an alternate solution just using sc.GetPointOfControlPriceVolumeForBar to get what I need done.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account