Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Backtesting OptimalF #467434
08/02/17 11:41
08/02/17 11:41
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline OP
Member
Brax  Offline OP
Member
B

Joined: Aug 2017
Posts: 102
Spain
Hi,

I´m trying to backtest a simple daily mean reversion system on EURUSD, so i apply optimalf for each trade as a money management tecnique.

The problem is that the applied optimalf factor is always the same, the last one. I´d like to dinamically apply it on the go, as the trades are executed and the equity curve ir created in my backtest.

I don´t see this type of mechanism in Zorro, or maybe i´m not able to find it.

The only similar thing i´ve thought of, is coding the kelly factor and apply it.

¿Is there a simpler way to reproduce this in Zorro?

Thanks in advance.

Re: Backtesting OptimalF [Re: Brax] #467449
08/03/17 09:11
08/03/17 09:11
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
As far as I know, the OptimalF calculation is not exposed with a function. So OptimalF cannot be dynamically calculated in a backtest, although this would make sense. In live trading you could use the Retrain function for this.

I've made a notice for possibly implementing a dedicated optiomalF function.

Re: Backtesting OptimalF [Re: jcl] #467454
08/03/17 11:13
08/03/17 11:13
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline OP
Member
Brax  Offline OP
Member
B

Joined: Aug 2017
Posts: 102
Spain
Thanks jcl.

I think that feature would be very handy, as it reproduces what i´ve always understood as optimalf as a money management tecnique.

The way optimalf is now used, seems to be more like a Markowitz alternative, a capital allocation tool.

For now, i´ve implemented the kelly factor as an alternative.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1