Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 15:33:16 +0000



Post From: Recalculate Study

[2020-05-11 22:04:30]
QnReally - Posts: 181
When using sc.SetChartStudyInputInt() to change inputs for some studies in the chart, I am calling sc.RecalculateChart() (sc.RecalculateChart()) to recalculate the chart after.

The study where this logic occurs also draws labels. This study doesn't execute on every update of the chart, to conserve resources (say at most once every 200ms -- custom code). The sc.RecalculateChart() call this study issues triggers a call to itself with sc.UpdateStartIndex=0 which wipes my DRAWING_TEXT labels first. This means, I am forced to immediately draw them without waiting for the 200ms.

I know which studies I am setting the inputs for with sc.SetChartStudyInputInt(). Is there a way you can support recalculating one study at a time?

Thanks.