Login Page - Create Account

Support Board


Date/Time: Fri, 31 Jan 2025 03:20:30 +0000



ACSIL / RecalculateChart and GetStudyArrayFromChartUsingID problem ?

View Count: 1417

[2019-03-15 20:41:57]
wwwingman - Posts: 185
Hi

I wonder if RecalculateChart updates correctly the arrays of a study that I fetch using GetStudyArrayFromChartUsingID.

More precisely : I am trying to change the parameter of another chart study and get the result in one his subgraphs.
I use SetChartStudyInputInt and can confirm the parameter was changed using GetChartStudyInputInt.
I then use RecalculateChart to make the computation of the study.
But, when I get the results using GetStudyArrayFromChartUsingID I continue to get the old subgraph values, as if the recalculation was not done, or as if the arrays of the subgraph were not updated.

I can give a code for test.

Please advise.

-- W
[2019-03-15 22:34:29]
Sierra Chart Engineering - Posts: 104368
The recalculation happens on a delay. It happens the next time the specified chart performs an update.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2019-03-16 18:54:02]
wwwingman - Posts: 185
Thank you.

Is there a way to force the refresh of a chart ? I am using non connected instance for the study I am working on (sort of back tester..).

-- W
[2019-03-17 08:55:58]
Sierra Chart Engineering - Posts: 104368
There is no need for that. The chart will get calculated at the next update whether connected to the data feed or not.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-03-17 08:56:30
[2019-03-17 11:38:05]
wwwingman - Posts: 185
Deleting this message because my answer was not clear.
Date Time Of Last Edit: 2019-03-17 12:41:26
[2019-03-17 12:50:55]
wwwingman - Posts: 185
Thank you

I have no doubt the chart will get updated at some point but I need to control that since I will run that many times, because I cannot wait randomly for the chart to be updated, and because I do not know when it was finally updated.

The core logic is :


Loop on a very large set of parameters scenarios

Change the parameters using sc.SetChartStudyInputInt and it works well.
Recalculate chart using sc.RecalculateChart, but at this point not working for me because call is asynchronous
Get data and store it for later analysis, which does not work because the recalculation is asynchronous.

End

Please Let me know if I missed the sc.Recalculate logic of if you think I missed a function in the ACSIL doc that could help me do this kind of back tester.

Thank you.
Date Time Of Last Edit: 2019-03-17 16:42:31
[2019-03-17 19:31:07]
Sierra Chart Engineering - Posts: 104368
We would have to add a function to do an immediate recalculate. We will see about that. We can do this, but we are not sure if under certain scenarios it could lead to some unexpected problem.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2019-03-18 04:05:41]
User90125 - Posts: 715
We would have to add a function to do an immediate recalculate.

+1
[2019-03-18 16:15:11]
wwwingman - Posts: 185
We would have to add a function to do an immediate recalculate.
+1
[2019-04-02 21:10:12]
wwwingman - Posts: 185
Any news on the immediate recalculate ?
[2019-04-02 21:45:13]
Sierra Chart Engineering - Posts: 104368
This function is available in the latest release: sc.RecalculateChartImmediate(int ChartNumber);
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-04-02 21:45:24

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account