Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 07:22:21 +0000



[Programming Help] - best approach rendering DOM study

View Count: 945

[2019-01-31 05:02:16]
User153286 - Posts: 44
I have created a number of studies that use the Label column in the DOM. This allows my study to be added to the DOM and my ouput to be displayed in the Label column on the DOM.

My first series of these studies simply put a single value in the label column at the current price and continued to update that single box/price level when curprice changed. As curprice changes, the previous cell value is cleared and the new curprice cell/level is updated with the output of the study. These studies have just one SCSubgraphRef defined and I always update the [0] index.

I updated just th e [0] index because I read in the documentation that the DOM is a 1 bar chart.

I next created studies with 20 SCSubgraphRef definitions, using 10 of these for cells above curprice and 10 below curprice.
This worked as expected.

I now want to create a DOM study that will have a dynamic number of cells to update, based on my studies calculations/processing that is ultimately defined with the range of price for a define period of time such as session, day, hour, min, sec etc...

I want this study to behave similar to how the CombinedCurrentTrade DOM column works where all previous cell values remain and will be altered as curprice moves back through them.

I suspect there is a better approach than defining N number of SCSubgraphRef for each cell in the DOM. But I have not been able to find an example or explanation describing how to address this.

Should I use draw tools and my own storage array for this instead of SCSubgraphRef?

Can you provide me some direction on this?
[2019-01-31 08:05:31]
Sierra Chart Engineering - Posts: 104368

I suspect there is a better approach than defining N number of SCSubgraphRef for each cell in the DOM. But I have not been able to find an example or explanation describing how to address this.
This is because this is outside of the normal use of a study.


Should I use draw tools and my own storage array for this instead of SCSubgraphRef?
Yes you could do this.
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:

Login

Login Page - Create Account