Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 13:23:38 +0000



I am unable to find the source code for the DOM chart

View Count: 591

[2022-05-11 00:14:14]
VerySherri - Posts: 3
I really just need to see how the pulls and stacks are calculated and summed at the top and bottoms of the columns. But, knowing how to find the source code for these kinds of questions would be very helpful.

Thank you
[2022-05-11 14:59:21]
bradh - Posts: 854
How to Build an Advanced Custom Study from Source Code: Source Code for Some Built in Studies Not Available
[2022-05-11 19:06:45]
JohnR - User831573 - Posts: 300
If you look in studies.cpp inside of \SierraChart\ACS_Source\Studies.cpp, there is some source that might be what you are looking for.

/*==========================================================================*/
SCSFExport scsf_DepthOfMarketData(SCStudyInterfaceRef sc) //scsf_DOMAccess
{
  SCSubgraphRef Subgraph_BidSize = sc.Subgraph[0];
  SCSubgraphRef Subgraph_BidValue = sc.Subgraph[1];
  SCSubgraphRef Subgraph_AskSize = sc.Subgraph[2];
  SCSubgraphRef Subgraph_AskValue = sc.Subgraph[3];
  SCSubgraphRef Subgraph_BidStackPullValue = sc.Subgraph[4];
  SCSubgraphRef Subgraph_AskStackPullValue = sc.Subgraph[5];

Hope this helps,
JohnR
[2022-06-15 09:24:19]
Sierra Chart Engineering - Posts: 104368
There is no source code for this. However, these market data columns are fully documented here:
Global Trade Settings Windows: Bid Market Depth Pulling/Stacking - Left/Center/Right Aligned
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: 2022-06-15 09:24:27
[2022-07-06 14:35:16]
VerySherri - Posts: 3
Is there documentation for the DOM API? I would like to have programmatic access to the stack/pull values of the DOM study and I'm not sure where to access that data. Do I need to access the data feed directly and recalculate the pull/stack data? I don't want to overcomplicate it.
[2022-07-06 17:57:17]
John - SC Support - Posts: 31131
You would access the information you need using the functions outlined at the following link and the section after it:
sc.GetBidMarketDepthStackPullSum()
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