Support Board
Date/Time: Wed, 14 May 2025 12:31:13 +0000
[Programming Help] - ACSIL preserving DOM data on chart refresh
View Count: 320
[2024-07-31 00:30:17] |
TriStar Trading - Posts: 154 |
I have a study to track DOM Stacking/Pulling and a study to track DOM Recent Bid Ask. The challenge I have is preserving the DOM data on screen refresh. I am using sc.IsFullRecalculation to not wipe out the subgraphs on a recalc of the chart. However, if for example, I access the Studies window and hit Apply or OK the subgraphs zero out and start over and the previously displayed subgraphs are gone. I have attached a before and after picture of the same chart. Preserving the previously displayed values must be able to be done since a third party study in Region4 does just that. I noticed the Numbers Bars Calculated Values v2 also resets the values. Any ideas anyone? Thanks! Mike
Date Time Of Last Edit: 2024-07-31 00:31:47
|
![]() ![]() |
[2024-07-31 01:13:40] |
ondafringe - Posts: 322 |
It might be helpful to know why you are going into Studies and hitting "Apply/OK"
|
[2024-07-31 04:03:07] |
TriStar Trading - Posts: 154 |
Because for example, a different study needs a tweak. The point is, when the chart completely refreshes, the currently displayed data is lost. I'm trying preserve the data already displayed as the third-party does. Thanks
Date Time Of Last Edit: 2024-07-31 04:04:10
|
[2024-07-31 08:16:38] |
User431178 - Posts: 679 |
Any ideas anyone?
Persistent pointer in combination with STL container ACSIL Interface Members - Functions: Persistent Variable Functions https://en.cppreference.com/w/cpp/container |
[2024-07-31 14:37:25] |
TriStar Trading - Posts: 154 |
Thanks for pointing me in the right direction. I have me some book learnin' to do it seems. :) Mike
|
[2024-08-01 10:59:31] |
TriStar Trading - Posts: 154 |
I did some book learnin' but now I'm looking for a bit of a head start. Does anyone have any source they might be willing to share with me that shows how to implement using a vector to hold and reload subgraph data? Thanks, Mike
|
[2024-08-01 16:05:31] |
ondafringe - Posts: 322 |
Before crawling down the vector rabbit hole, you should first determine whether the value you want to change in your study can be changed on the fly -- without having to change it manually in Study > Settings. If so, your problem is solved: Add code to your study that will do just that. If not, then...
|
[2024-08-01 16:09:03] |
TriStar Trading - Posts: 154 |
Came up with a work-around. A dedicated chart for DOM data studies with that being overlayed to the main chart. Mess with the main all you want then.
Date Time Of Last Edit: 2024-08-01 16:09:37
|
To post a message in this thread, you need to log in with your Sierra Chart account: