Login Page - Create Account

Support Board


Date/Time: Wed, 17 Sep 2025 02:12:57 +0000



Post From: Accessing TPO count for individual price levels

[2019-03-27 22:32:53]
Sierra Chart Engineering - Posts: 104368
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