Topic: Possible optimizer bug in 2.56.3

Hi Popov

There is a strange behaviour in Optimizer. I tried to optimize this indicator with the option: fast MA > slow MA:

http://s4.postimage.org/1oanntj38/screenshot_10.jpg

Then I got a zero strategy. Both fast MA and slow MA values are the same (21).

http://s2.postimage.org/1g1vl3gis/screenshot_12.jpg

I tried this several times.

Re: Possible optimizer bug in 2.56.3

It's not good idea to optimize loosing strategies. The optimizer will produce a strategy without deals because it's better then a loosing one, in case it cannot find a better one. 

The optimizer sets equal number in order to prevent trades. It seams no combination of the selected parameters can lead to a winning strategy.

But this must not happen if "Minimum number of trades" is set to some number.
If your case is not this, please attach the strategy and your config file in the forum. I'll check it.

Re: Possible optimizer bug in 2.56.3

I agree that this is a bad idea to optimize loosing strategies. I use limited optimization at the beginning of the strategy development. I have found that it's reasonable to optimize only 1-2 indicators in the strategy.

I included my unfinished strategy idea. I used 250 000 bars of data within the optimization.

Popov wrote:

It's not good idea to optimize loosing strategies. The optimizer will produce a strategy without deals because it's better then a loosing one, in case it cannot find a better one. 

The optimizer sets equal number in order to prevent trades. It seams no combination of the selected parameters can lead to a winning strategy.

But this must not happen if "Minimum number of trades" is set to some number.
If your case is not this, please attach the strategy and your config file in the forum. I'll check it.

Post's attachments

12.xml 5.79 kb, 3 downloads since 2010-11-15 

You don't have the permssions to download the attachments of this post.

Re: Possible optimizer bug in 2.56.3

This moving average crossover is intended to be the trade direction and trend filer to prevent trades against the main trend.

Re: Possible optimizer bug in 2.56.3

I tested the strategy and found out that optimizer shows zero trades only when "Minimum number of trades" option is switched off. Can you confirm that Optimizer shows zero trades when that option is on?

Re: Possible optimizer bug in 2.56.3

Yes, if the Minimum number of trades = off, then the optimizer produces zero trades. I got results when I switched  Minimum number of trades = on.

I tested several times, but then I got this kind of situation:

http://s3.postimage.org/2g9vhhfus/screenshot_13.jpg

I had to manually set minimum strating values into the default indicator dialog to get it working rightly.

http://s2.postimage.org/1lvmwy3c4/screenshot_14.jpg

Popov wrote:

I tested the strategy and found out that optimizer shows zero trades only when "Minimum number of trades" option is switched off. Can you confirm that Optimizer shows zero trades when that option is on?