Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (howardR), 503 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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 | chip programmers | 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