Login Page - Create Account

Support Board


Date/Time: Mon, 23 Jun 2025 18:58:35 +0000



Post From: Depth of market / pulling stacking not working with Teton

[2022-02-15 00:01:38]
Sierra Chart Engineering - Posts: 104368
Refer to this code example:
  int BidArrayLevels = min(MaximumMarketDepthLevels, sc.GetBidMarketDepthNumberOfLevels());

  for (int Level = 0; Level < BidArrayLevels; Level++)
  {
    int OutputIndex = sc.ArraySize - 1 - Level;

    s_MarketDepthEntry DepthEntry;
    sc.GetBidMarketDepthEntryAtLevel(DepthEntry, Level);
    
    Subgraph_BidSize[OutputIndex] = (float)DepthEntry.Quantity;

    Subgraph_BidValue[OutputIndex] = DepthEntry.AdjustedPrice;

    float StackPullValue = (float)sc.GetBidMarketDepthStackPullValueAtPrice(DepthEntry.AdjustedPrice);
    Subgraph_BidStackPullValue[OutputIndex] = StackPullValue;

  }

Notice the use of adjusted price:
DepthEntry.AdjustedPrice

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