Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 09:11:50 +0000



Post From: best approach rendering DOM study

[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?