Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Quad, M_D), 1,217 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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