Support Board
Date/Time: Thu, 13 Feb 2025 03:21:26 +0000
[User Discussion] - Fast recalculation? Why it is different when we change study settings?
View Count: 728
[2020-11-22 16:24:17] |
mbilyanov - Posts: 62 |
Hi, I would like to re-run a calculation on a study and update bits that include previous bars. I know that after the first call, next function calls operate only on the latest bar (with autolooping). What I have noticed is that if I trigger the recalculation using one of the following: sc.FlagFullRecalculate = true; //or sc.FlagToReloadChartData = true; I get a progress bar and a lengthy reloading process. This forces the iterating index to start from `0` and all of the subgraph is repopulated. What I don't understand is, we get the same kind of recalculation by bringing up the `study` window and clicking the `OK` button. Only that this is a lot faster and we do not get the reloading progress bar. A study will be fully calculated/recalculated when it is added to a chart, any time its Input settings are changed, another study is added or removed from a chart, when the Study Window is closed with OK or the settings are applied. Or under other conditions which can cause a full recalculation. What is the difference between the `OK` button and the `variables` approach? Is there a faster way to force a re-evaluation of the arrays without actually reloading all of the data? Date Time Of Last Edit: 2020-11-22 16:25:09
|
[2020-11-24 09:50:59] |
mbilyanov - Posts: 62 |
I just realized that ... sc.FlagFullRecalculate = true; ... is that faster and more efficient way to force a re-evaluation of the arrays starting from `sc.Index` @ 0. So that kind of answers my question. However, what I noticed is that if the data feed is disconnected or we are in SIM mode and the playback is paused, the chart will NOT cook. Only after the playback starts or we get bar data flowing in, the changes are observable after a recalculation. Could please someone confirm that? Is there a way to redraw the full recalculation even when the chart is not cooking? And by cooking I mean the interval of refreshing the study. |
To post a message in this thread, you need to log in with your Sierra Chart account: