Support Board
Date/Time: Sat, 05 Jul 2025 03:26:41 +0000
Accessing TPO count for individual price levels
View Count: 1821
[2019-03-26 16:23:11] |
User255315 - Posts: 133 |
Greetings SC! I would like to request you to please devote some of your valuable time towards making the TPO profile accessible programmatically. The structure of the TPO study seems somewhat similar to the Volume by Price profile, and since you have ACSIL functions to access every bit of Info in the VbP study, it would be brilliant if we could have the same for TPO profiles. There have been similar requests regarding this and many other features of the TPO charts: TPO profiles - better access to statistical data TPO Count It would be great if we're able to calculate these values as the TPO profile develops in real-time, no matter the intricacy of programming required. Access to TPO profile elements at every price level during the trading period of a day(set by default in TPOs) would add another possible dimension of analysis. |
[2019-03-26 21:33:32] |
|
This data is already programmatically accessible through ACSIL. You can use this function: ACSIL Interface Members - Functions: sc.GetVolumeAtPriceDataForStudyProfile() So you can get the TPO count per price level. 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 |
[2019-03-27 13:59:59] |
User255315 - Posts: 133 |
Thanks for your reply. Unfortunately the functions lacks an example (opposed to most functions having excellent illustrations), and I am generating an exception error while using it on a TPO chart. Could you please update a code snippet on using the function including its initialization? This function is quite versatile and powerful and it'd be great if there was an example for using the same. Thanks in advance. |
[2019-03-27 16:55:49] |
User255315 - Posts: 133 |
Update: managed to figure it out. Please dont waste your time on this. Although the examples would be really helpful in saving time. Most of the pointer functions in Sierra have a tendency to cause exception errors and make studies unstable. Illustrations regarding these tricky functions would go a long way!! Thanks in advance! |
[2019-03-27 22:32:53] |
|
Example: SCSFExport scsf_GetVolumeAtPriceDataForStudyProfileExample(SCStudyInterfaceRef sc)
{ SCInputRef Input_StudyReference = sc.Input[0]; if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "sc.GetVolumeAtPriceDataForStudyProfile Example"; sc.AutoLoop = 0; sc.GraphRegion = 1; Input_StudyReference.Name = "Profile Study Reference"; Input_StudyReference.SetStudyID(1); return; } int PricesCount = sc.GetNumPriceLevelsForStudyProfile(Input_StudyReference.GetStudyID(), 0); for (int PriceIndex = 0; PriceIndex < PricesCount; PriceIndex++) { s_VolumeAtPriceV2 VolumeAtPrice; int Result = sc.GetVolumeAtPriceDataForStudyProfile (Input_StudyReference.GetStudyID() , 0 , PriceIndex , VolumeAtPrice ); int Volume = VolumeAtPrice.Volume; } } 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: 2019-03-27 22:35:06
|
[2019-07-21 12:48:26] |
mpro - Posts: 44 |
Is it possible to get the starttime and date for a ProfileIndex? I want to plot different lines for every profile (Buying / Selling Tail). It can't be done with index = days because of profile merging and splitting. ACSIL Interface Members - Functions: sc.GetVolumeAtPriceDataForStudyProfile() Date Time Of Last Edit: 2019-07-21 12:54:37
|
[2019-07-23 09:11:18] |
|
We will add a new ACSIL function to access this information.
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 |
[2019-07-24 00:49:01] |
|
This function will be out in the next release.
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: