Page 1 of 1

Stop order signal very slow in optimization

Posted: Oct 10 2007
by glam_100
Hi,

I've done some test to compare the optimization speed of Multichart vs TS.

I found that strategies (signals) with the keyword stop slows down Multichart drammatically.

Below is a simple test strategy. I ran it on a chart using symbol SPY with 2 years daily data (10/10/2007 with 2 years back).

{--------------------------------------------}

inputs:
Iteration( 10000);

Buy next bar highest(high, 20) stop;
Sell short next bar lowest(low, 20) stop;

{---------------------------------------------}

I ran the optimization with 10,000 iteration and found that Multichart optimization is a few times slower than TS. Note that I'm using a quad core machine. It takes 4 mins for MC to ran thru 10,000 iterations and only 1 min for TS to do the same.

In other tests when the keyword "stop" is not present MC outperforms TS 3.5x everytime.

Please find out what is happening.

Posted: Oct 10 2007
by Marina Pashkova
Hi,

Thank you for drawing our attention to the issue.

By the way, was that you reporting the similar issue on EliteTrader as laputa? http://www.elitetrader.com/vb/showthrea ... enumber=13

Just wondering because the same issue has been reported twice on the same day.

Thanks again.

Posted: Oct 10 2007
by Marina Pashkova
Hello again,

The bug has been confirmed.

Thanks a lot for reporting it! We really appreciate that.

Posted: Oct 10 2007
by glam_100
Hi,

Thank you for drawing our attention to the issue.

By the way, was that you reporting the similar issue on EliteTrader as laputa? http://www.elitetrader.com/vb/showthrea ... enumber=13

Just wondering because the same issue has been reported twice on the same day.

Thanks again.

Ok that's me... I was trying to hide...

I spent 2 hours today trying out code line by line to find this bug. Don't blame me on bring this issue up on elitetrader...

The elitetrader posts was before I found out what's wrong with the stop keyword... they won't let me edit the post.

Cheers

Posted: Oct 11 2007
by Marina Pashkova
Hi,

Well, then we would really appreciate if you posted a new message on elitetrader specifying that what you said about the MC optimization speed is only true under the conditions you specified on our forum and that we have started working to fix the problem.

By the way, we really appreciate your pointing out the problem.

Regards.

Posted: Oct 11 2007
by glam_100
sure no problem

Posted: Oct 11 2007
by Marina Pashkova
Thank you!

We really appreciate it.

Posted: Oct 11 2007
by glam_100
Just post an update on elitetrader.

BTW would there be a fix soon?

Posted: Oct 11 2007
by Marina Pashkova
It will be fixed in a demo version due in 20-30 days.

It won't be the only thing fixed. The stop keyword slowing down backtesting/optimization is just a part of the issue. We are dealing with a more general problem and keep optimizing the code.

Apart from that, the demo version will also have intrabar order generation.

Posted: Oct 11 2007
by glam_100
That's great. Thanks!

Posted: Oct 27 2007
by glam_100
Is there a new beta coming out soon that will fix this problem?

Posted: Oct 29 2007
by Marina Pashkova
Next MC version due end of November should have the problem of stop orders slowing down the optimization fixed.