lndshrk
Member
- Joined
- Jun 13, 2019
- Posts
- 13
- Likes
- 2
It seems at a macro level, there are two methods to underpin the calculations for a study, 'calculate' and 'calculateValues'
In calculateValues, the values are stored in the initial calculation via something like
for(int i = 1; i < series.size(); i++) {
if (!updates && !series.isBarComplete(i)) continue;
etc.
}
While calculate simply uses the index for the calculations and goes through the index when the chart is launched.
Is one a preferred over another?
I've been using calculateValues most of the time, but I have seen performance issues 'scrolling around' if a user has many charts open with computational intensive studies.. I've also seen the RAM usage increase over the course of the day, from 1Gb then going up to 7Gb - which is making me consider alternative methods to construct the study.
In calculateValues, the values are stored in the initial calculation via something like
for(int i = 1; i < series.size(); i++) {
if (!updates && !series.isBarComplete(i)) continue;
etc.
}
While calculate simply uses the index for the calculations and goes through the index when the chart is launched.
Is one a preferred over another?
I've been using calculateValues most of the time, but I have seen performance issues 'scrolling around' if a user has many charts open with computational intensive studies.. I've also seen the RAM usage increase over the course of the day, from 1Gb then going up to 7Gb - which is making me consider alternative methods to construct the study.