Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 02:56:24 +0000



different recalculating?

View Count: 1421

[2019-03-23 20:30:11]
Devil_On_WallStreet - Posts: 67
what is the recalculationdifference between sc.RecalculateChart() and the way the chart recalculates after hitting "OK" on the main "Studies" window? They are definitely recalculating differently!

I have a custom study that can sometimes change after a couple bars... Opening the Studies window and hitting OK shows any changes...

I made a simple ACS Button to recalculate the chart quickly... when pressed it does show "Recalculating Studies" in the top left corner of the screen, but it does not reflect changes in the same way as hitting OK in the Studies window...???

I've also tried sc.FlagFullRecalculate...
Date Time Of Last Edit: 2019-03-23 20:44:04
[2019-03-23 21:22:14]
Sierra Chart Engineering - Posts: 104368
If you are running into a problem, it is going to be your own code where the issue will be.

What is different is that when you open the Chart Studies window and press OK, the study arrays are completely cleared whereas with sc.RecalculateChart, the arrays will contain the same data and you have to perform the calculations the study does, starting from Bar index 0 which sc.Index will be set to upon the recalculation.
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-23 21:25:02]
Kiwi - Posts: 374
I always manually recalc by hitting insert while on the chart (mousophobic).

How does that compare?
[2019-03-23 21:36:10]
Sierra Chart Engineering - Posts: 104368
That would involve clearing the arrays as well, assuming you see the chart data fully reload. You can use Control-Insert, which would be just a recalculate without clearing and reallocation of the arrays.
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-25 00:03:36]
Devil_On_WallStreet - Posts: 67
Thanks folks... the code is solid... It makes calculations off of the ZigZag. I wrote in some logic to reduce false signals... but if price chops a bit before cancelling the peak and continuing in that direction after an unknown number of chop bars, that is when I manually need to recalculate and YES clear arrays. I never knew about the Insert button, that is at least another solution. For me it's more for appearance as I'm not automating anything... definitely not something needed, more of a luxury... would be great if there was an sc.ClearChartArrays function though... Thanks again for the responses :)
[2019-03-25 00:27:39]
Sierra Chart Engineering - Posts: 104368
You do not need a clear arrays function. Your code is not setting each element of the arrays that it is using. You need to resolve this in your code. This is easily resolvable by you at this time. You should not have to be doing a reload of chart data. That is completely unnecessary.
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

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

Login

Login Page - Create Account