Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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