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
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 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
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,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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