Login Page - Create Account

Support Board


Date/Time: Wed, 24 Apr 2024 04:28:43 +0000



Programmatically Accessing TPO Count for Each Price Increment

View Count: 1111

[2018-12-03 19:03:08]
User565689 - Posts: 19
Thank you for the documentation showing how to access Peaks and Valleys for TPO Profile and Volume by Price from a previous request.

Continuing on that, is it possible to access the TPO Count for Each Price Increment (item "2" of the Reading TPO Charts graphic Time Price Opportunity (TPO) Profile Charts: How to Read TPO Profile Charts ) via ACSIL, please?
Whatever method you decide to expose it would be fine, but I assume that it would probably be similar to iterating using sc.GetStudyPeakValleyLine() or s_VolumeAtPriceV2.

I saw that this had been requested in a previous thread from 2016, but wasn't sure if any progress had been made.

Thank you for your help.
[2018-12-03 22:13:19]
Sierra Chart Engineering - Posts: 104368
Yes we will see about this.
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
[2018-12-27 22:28:26]
Sierra Chart Engineering - Posts: 104368
This is actually currently supported through this function:
sc.GetVolumeAtPriceDataForStudyProfile()
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: 2018-12-27 22:42:58
[2019-08-18 12:53:43]
binaryduke - Posts: 358
Within this function I note:

ProfileIndex: The zero-based index of the volume profile relative to the end of the chart. 0 equals the latest profile in the chart at the end or rightmost side. This needs to always be set to a positive number.

Is there a relationship between ProfileIndex and sc.Index? If not, how can we ascertain the total number of profiles on a chart?
[2019-08-18 15:15:06]
mpro - Posts: 44
With sc.GetStudyProfileInformation() you can get the date time for a ProfileIndex.
Date Time Of Last Edit: 2019-08-18 15:17:09
[2019-08-18 15:24:24]
binaryduke - Posts: 358
Yep - aware of that thank you. What about looping through every profile on the chart? How do we know where the index ends?
[2019-08-18 15:30:03]
mpro - Posts: 44
When the function doesn’t return a profile information. But why do you need the end? I only look at the last 20 profiles to have a better performance.
sc.GetStudyProfileInformation() maybe returns a 0 at the end.
Date Time Of Last Edit: 2019-08-18 15:31:58
[2019-08-18 15:35:00]
binaryduke - Posts: 358
sc.GetStudyProfileInformation() maybe returns a 0 at the end.

Maybe?!? I would prefer not to guess looping up to a potentially large number and have a definitive way of knowing the count of profiles in the chart, just like we know the number of bars in the chart via sc.ArraySize.
[2019-08-18 15:37:14]
mpro - Posts: 44
There is no documentation so we have to try it out.
[2019-08-18 15:41:53]
binaryduke - Posts: 358
…or wait for our friends at SC Engineering to provide a definitive answer which is my preference.
[2019-08-18 22:59:01]
Sierra Chart Engineering - Posts: 104368
Is there a relationship between ProfileIndex and sc.Index? If not, how can we ascertain the total number of profiles on a chart?
No.

We will add a function to get the number of profiles in a chart.

However, if you start at 0 for the ProfileIndex parameter and keep incrementing and then stop when the function returns 0, then you will know when you get to the last profile.
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:

Login

Login Page - Create Account