Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 472 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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