Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 16,232 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
objective function #469059
11/05/17 00:39
11/05/17 00:39
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
Can anyone explain how to implement the objective function?

I tried to optimize based on different performance metrics but the results don't make sense to me.

As an example I tried to find the value that maximizes R2:

var objective()
{
if(!NumWinTotal && !NumLossTotal) return 0.;
return ThisPerformance.vR2;
}

I also set(PEAK) and used Commission=Slippage=RollLong=RollShort=0;


The optimize chart shows that the best parameter has an R2 value of about .75.

However, running a test with this parameter results in a performance of R2 = 0.87.

I also tried to insert other parameter values and tested and have never been able to match test report with the optimize chart.


Can anyone shed some light on how to properly utilize the objective function?

Thanks.

Re: objective function [Re: Ger1] #469109
11/05/17 16:35
11/05/17 16:35
Joined: Aug 2017
Posts: 58
P
pascalx Offline
Junior Member
pascalx  Offline
Junior Member
P

Joined: Aug 2017
Posts: 58
In the include/default.c you will find an example implementation of the objective() function.

Re: objective function [Re: pascalx] #469128
11/06/17 08:55
11/06/17 08:55
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
The optimize chart shows the result over the range of a single parameter, while the test runs with the parameter combination that achieved the best result when PEAK was set.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1