Aborting strategy calculation
Aborting strategy calculation
Is there a way to abort a running strategy (when it takes forever) like what we can do with TS? TS has a button on the upper left corner that we can click on to abort strategy. I don't seem to find anything similar with MC.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hi glam_100,
There's no such a button in MultiCharts because it's not needed there. Unlike TS, MultiCharts uses multiple CPU cores and different processes are distributed onto different threads. So, even if a study calculation is taking forever, MultiCharts won't freeze. You still will be able to call the Format Study window and remove the study.
There's no such a button in MultiCharts because it's not needed there. Unlike TS, MultiCharts uses multiple CPU cores and different processes are distributed onto different threads. So, even if a study calculation is taking forever, MultiCharts won't freeze. You still will be able to call the Format Study window and remove the study.
The problem is that even when I remove the study the computer is still doing the calculation.
This button is needed because there are many times during strategy development that we would have wrongly written code (let's say we get into an infinite loop) and we would want to terminate the calculation.
Please consider adding such feature.
In the mean time is there a way to terminate the calculation. It seem the calculation is being continued by the PF editor rather than multichart process.
This button is needed because there are many times during strategy development that we would have wrongly written code (let's say we get into an infinite loop) and we would want to terminate the calculation.
Please consider adding such feature.
In the mean time is there a way to terminate the calculation. It seem the calculation is being continued by the PF editor rather than multichart process.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Well, the way it works is that if you remove/turn off a study it will complete all the calculations for the bar that's already being processed. After that the calculations will stop. There's no way to abort the calculation.
We are going to consider adding a button to abort study calculations in future MC version.
We are going to consider adding a button to abort study calculations in future MC version.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hi glam_100,
Do you by any chance use the print function in your study?
If you do, what happens is simply that due to the large volume of data the process takes longer to finish the calculations on the currently processed bar.
There's no way to abort this before the calculations on the currently processed bar are finished.
Do you by any chance use the print function in your study?
If you do, what happens is simply that due to the large volume of data the process takes longer to finish the calculations on the currently processed bar.
There's no way to abort this before the calculations on the currently processed bar are finished.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Is there anyway to stop the printing pipe as well? TS seems to have a way to do that cos I ran the same code on both MC and TS and I can quit all calculation and printing on TS after clicking on the abort button. I can immediately go back to work on the code where as in MC I had to kill MC everytime I ran into a long loop or inifinite loop with print function.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hi glam_100,
Regards.
No. What you could do, though, is avoid printing out the results on every bar.Is there anyway to stop the printing pipe as well?
MC works in a differet whay. In MC, you can't quit calculation and printing right away.TS seems to have a way to do that cos I ran the same code on both MC and TS and I can quit all calculation and printing on TS after clicking on the abort button. I can immediately go back to work on the code where as in MC I had to kill MC everytime I ran into a long loop or inifinite loop with print function.
Regards.