Gamestudio Links
Zorro Links
Newest Posts
Black Book, 4th edition
by jcl. 03/17/26 09:28
Trying to get started...
by Lukudo. 03/16/26 09:08
ZorroGPT
by TipmyPip. 03/08/26 18:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 4,610 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Optimizing with Sharpe ratio #459383
05/13/16 07:33
05/13/16 07:33
Joined: Jan 2015
Posts: 5
G
Georgez Offline OP
Newbie
Georgez  Offline OP
Newbie
G

Joined: Jan 2015
Posts: 5
How to use Sharpe ratio instead of profit factor in optimize?
I read the manual about objective function but there is no Sharpe ratio in PERFORMANCE struct or in trade statistics parameters.

Last edited by Georgez; 05/13/16 07:37.
Re: Optimizing with Sharpe ratio [Re: Georgez] #459390
05/14/16 09:37
05/14/16 09:37
Joined: Dec 2014
Posts: 206
Germany
Smon Offline
Member
Smon  Offline
Member

Joined: Dec 2014
Posts: 206
Germany
I have the same question.

Re: Optimizing with Sharpe ratio [Re: Smon] #459405
05/16/16 08:23
05/16/16 08:23
Joined: Jul 2000
Posts: 28,089
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,089
Frankfurt
Code:
var objective()
{
	if(!NumWinTotal && !NumLossTotal) return 0.;
	PERFORMANCE Perf = &g->w;
	return Perf->vMean/Perf->vStdDev;
}


Re: Optimizing with Sharpe ratio [Re: jcl] #459409
05/16/16 09:21
05/16/16 09:21
Joined: Jan 2015
Posts: 5
G
Georgez Offline OP
Newbie
Georgez  Offline OP
Newbie
G

Joined: Jan 2015
Posts: 5
Originally Posted By: jcl
Code:
var objective()
{
	if(!NumWinTotal && !NumLossTotal) return 0.;
	PERFORMANCE Perf = &g->w;
	return Perf->vMean/Perf->vStdDev;
}



Thanks! it works.
but the asterisk skipped
Code:
PERFORMANCE *Perf = &g->w;



Last edited by Georgez; 05/16/16 09:22.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1