Slow calculations

Questions about MultiCharts and user contributed studies.
jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Slow calculations

Postby jl12 » 05 Aug 2007

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]);
------------------

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 06 Aug 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.?

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 06 Aug 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.?

jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Slow Calculations

Postby jl12 » 06 Aug 2007

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

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 07 Aug 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.

jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

slow calculations -product version

Postby jl12 » 07 Aug 2007

I have installed (using repair) 2.1.928.1050. twice now but 2.1.880.530 still shows as the version in "about Multicharts".

jek
Posts: 181
Joined: 24 Dec 2006
Has thanked: 1 time
Been thanked: 2 times

Re: slow calculations -product version

Postby jek » 07 Aug 2007

I have installed (using repair) 2.1.928.1050. twice now but 2.1.880.530 still shows as the version in "about Multicharts".
I recall having to uninstall prior to install of the beta.

jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Slow calculations -latest beta made little difference

Postby jl12 » 07 Aug 2007

Thanks for the tip Jek 2.1.928.1050. now installed.

Indicator is still taking about 10 s to calculate

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 08 Aug 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

jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Excellent

Postby jl12 » 08 Aug 2007

Marina

Thanks for the excellent service now recalulating very quickly


Return to “MultiCharts”