Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 475 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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