Login Page - Create Account

Support Board


Date/Time: Thu, 13 Feb 2025 07:15:59 +0000



Post From: Fast recalculation? Why it is different when we change study settings?

[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