I am starting to migrate my systems from ts2000.
The first system I have tried is very much slower.
I have tested one of the functions in isolation- code for a vidya ma
The function here takes over 3 times longer to run on MC
I had expected Multicharts to offer a speed advantage particularly as Multicharts is running on a dual core processor desktop and ts2000 on a single core laptop.
Please could you tell me why this might be the case.-----
--------------
inputs:length(numericSimple),smooth(numericsimple);
vars:up(0),dn(0),upsum(0),dnsum(0),abscmo(0),sc(0);
up=iff(c>c[1],c-c[1],0);
dn=iff(c<c[1],absvalue(c-c[1]),0);
upsum=summation(up,length);
dnsum=summation(dn,length);
if upsum+dnsum>0 then
abscmo=absvalue((upsum-dnsum)/(upsum+dnsum));
sc=2/(smooth+1);
if currentbar<=5 then vidya=c;
if currentbar>5 then
vidya=(sc*abscmo*c)+((1-(sc*abscmo))*vidya[1]);
------------------
Slow calculations
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hello,
I have applied the function you've posted to 15 000 bars with length=5 and smooth = 5. It took MC to plot the function about .5 second.
What version of MC are you using? (the older version was slower than TS, the lates beta version is faster). Also, what were the conditions when you applied the function: how many bars did you use, etc.?
I have applied the function you've posted to 15 000 bars with length=5 and smooth = 5. It took MC to plot the function about .5 second.
What version of MC are you using? (the older version was slower than TS, the lates beta version is faster). Also, what were the conditions when you applied the function: how many bars did you use, etc.?
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hello,
I have applied the function you've posted to 15 000 bars with length=5 and smooth = 5. It took MC to plot the function about .5 second.
What version of MC are you using? (the older version was slower than TS, the lates beta version is faster). Also, what were the conditions when you applied the function: how many bars did you use, etc.?
I have applied the function you've posted to 15 000 bars with length=5 and smooth = 5. It took MC to plot the function about .5 second.
What version of MC are you using? (the older version was slower than TS, the lates beta version is faster). Also, what were the conditions when you applied the function: how many bars did you use, etc.?
Slow Calculations
Plotting length=9 smooth=5 90,000 6m bars dax as line indicator takes 10secs
No other programs or charts open
On the same machine TS8 takes<1s
mc v 2.1 880 530
I downloaded latest release- no change
dual core pentium2 gig ram
Have you any suggestions please
John
No other programs or charts open
On the same machine TS8 takes<1s
mc v 2.1 880 530
I downloaded latest release- no change
dual core pentium2 gig ram
Have you any suggestions please
John
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hello,
I tested the function in both TS 8.3 and the latest beta version of Multicharts on 60 000 bars in both. In both programs it took ~ 1 second. And I've been testing the function on the machine that is way less powerful than yours.
Please make sure that the version of MultiCharts you installed is 2.1.928.1050. It is a lot faster than the older version you used.
I tested the function in both TS 8.3 and the latest beta version of Multicharts on 60 000 bars in both. In both programs it took ~ 1 second. And I've been testing the function on the machine that is way less powerful than yours.
Please make sure that the version of MultiCharts you installed is 2.1.928.1050. It is a lot faster than the older version you used.
slow calculations -product version
I have installed (using repair) 2.1.928.1050. twice now but 2.1.880.530 still shows as the version in "about Multicharts".
Re: slow calculations -product version
I recall having to uninstall prior to install of the beta.I have installed (using repair) 2.1.928.1050. twice now but 2.1.880.530 still shows as the version in "about Multicharts".
Slow calculations -latest beta made little difference
Thanks for the tip Jek 2.1.928.1050. now installed.
Indicator is still taking about 10 s to calculate
Indicator is still taking about 10 s to calculate
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
FYI:
The symbol you posted on the forum (the one we tested on our machines) was actually different from the one you applied in MultiCharts. The one you have been using in MultiCharts had a heavy-weight print command which indeed works slowly. We tested this function in both MC and TS and in either program it took > 10 sec to calculate
The symbol you posted on the forum (the one we tested on our machines) was actually different from the one you applied in MultiCharts. The one you have been using in MultiCharts had a heavy-weight print command which indeed works slowly. We tested this function in both MC and TS and in either program it took > 10 sec to calculate