Login Page - Create Account

Support Board


Date/Time: Mon, 03 Mar 2025 18:25:55 +0000



Calculate Numerical Difference Between Pulling/Stacking Columns on DOM?

View Count: 1606

[2020-10-15 09:10:50]
User450463 - Posts: 128
Is there a way to add another column to the chart DOM that would calculate the difference between the bid pull/stack and ask pull/stack? I think it would be a good way to visualize instantaneous pressure on price direction. For example, you could see a stop run building. I have the bid P/S and ask P/S columns right next to each other, which helps, but it would be great to have one number that shows instantaneous "pressure" on price.

I'm thinking you'd sum up the pull/stack columns for a configurable number of ticks on each side of current price - say, 10 ticks, then calculate the difference between the sums.
Date Time Of Last Edit: 2020-10-15 09:47:43
[2020-10-15 14:49:36]
John - SC Support - Posts: 38337
This is available in the Numbers Bars Calculated Values 2 study. Refer to the last subgraph in this section:
Numbers Bars: Numbers Bars Calculated Values 2 Subgraph Descriptions
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-10-18 12:29:05]
User450463 - Posts: 128
Is there a way to make this column a choice on the DOM? I don't need another chart... I keep my setup simple.

If not currently, is the code available so I can create my own?

Thanks
[2020-10-19 13:46:09]
John - SC Support - Posts: 38337
There is not a way to display it on the DOM, but you can use the Numbers Bars Calculated Values 2 study along with the Text Display for Study to display the number in any location on the chart. Refer to the information here:
Text Display For Study

In terms of code, you could use the following functions to get the data, and then it is up to you as to how you want to display it:
ACSIL Interface Members - Functions: sc.GetBidMarketDepthStackPullSum()
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-11-04 11:47:25]
Sargon Petros - Posts: 57
Hello,

Regarding the Numbers bars 2 study, is it possible to plot the data e.g. ask/bid pull/stack sum diff onto a line chart?
[2021-11-04 14:10:49]
John - SC Support - Posts: 38337
Regarding the Numbers bars 2 study, is it possible to plot the data e.g. ask/bid pull/stack sum diff onto a line chart?

Yes, just use the Study Subgraph Reference to plot the data as a line. Refer to the following:
Study Subgraph Reference
For the most reliable, advanced, and zero cost futures order routing, use 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