Gamestudio Links
Zorro Links
Newest Posts
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, SkinnyApe, 1 invisible), 7,580 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 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,030
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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