Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 810 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
WFO and curve fitting #446746
10/30/14 05:37
10/30/14 05:37
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline OP
Senior Member
boatman  Offline OP
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
The manual states that a good rule of thumb for avoiding curve fitting is to generate at least 20 trades per optimization parameter per asset.

I have a system with 10 assets and 5 parameters. Therefore I need at least 1000 trades to have confidence that my system isn't curve fitted.

If I run a WFO test, I assume I need 1000 trades PER CYCLE to get the same level of confidence. Is that correct?

Re: WFO and curve fitting [Re: boatman] #446753
10/30/14 10:08
10/30/14 10:08
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes. But it's not 1000 trades, it's 100 per asset. It won't do if you have one asset with 5 trades and another one with 195.

Re: WFO and curve fitting [Re: jcl] #446781
10/30/14 21:58
10/30/14 21:58
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline OP
Senior Member
boatman  Offline OP
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
OK, thanks for the reply. That's an important distinction.

What conclusions could I draw if I used a relatively large number of WFO cycles, with say only 30-40 trades per asset, and got good performance in the WFO test? Obviously the concern is that the strategy would be curve fitted to each training cycle, but in my mind this shouldn't matter because each test cycle that makes up the WFO test is out of sample.

Therefore it seems to make sense to test various numbers of WFO cycles and find the number that gives good performance and is stable when the numbers adjacent to it are tested (as we do when optimizing the strategy's parameters). This number would then be used to set the re-train interval in live trading.

Is this a statistically robust approach to WFO testing?

Re: WFO and curve fitting [Re: boatman] #448572
02/11/15 00:48
02/11/15 00:48
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline OP
Senior Member
boatman  Offline OP
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Thought I'd bump this. I've been revisiting this idea and would really like to hear jcl's and other's thoughts.

Re: WFO and curve fitting [Re: boatman] #449331
03/15/15 11:48
03/15/15 11:48
Joined: Sep 2013
Posts: 73
M
Mangal Offline
Junior Member
Mangal  Offline
Junior Member
M

Joined: Sep 2013
Posts: 73
My thinking is that WFO is not 100% reliable, though by now it might be one of the best tools we have. If you test it in a different period of time than the one you are testing, you probably will find quiet different results. So, it would be interesting to test the strategy in periods when the market has movement up, down, lateral or flat, and see how the system behaves.

Alternatively, if you test it only in the immediate past, say last few years or so, then if your system suffers draw down higher than your WFO results it might be the time to considere in abandoning it. Also you can aply one formula jcl gave. I am pasting his communication:

"When you begin trading an automated system, you normally start in a drawdown. But how can you determine if the drawdown is normal, or if something is wrong and you should pull the plug?

The simplest method is comparing the drawdown with the recommended capital of the simulation. A more precise estimate is this:

E >= C + P*t/y - D*sqrt((t+l)/y)

E = your equity
C = initial capital (= Required Capital)
P = test profit
t = trade time
y = test period
D = test max drawdown
l = length of the drawdown

Example: the backtest shows $8,000 profit after 5 years with $2000 drawdown of 1 year length, and $1500 required capital. You invest it and are down to $1000 after 6 months.

E = 1500 + 8000*0.5/5 - 2000*sqrt(1.5/5) = 1204.

With $1000 you're below the minimum profit, meaning that you should pull out.

Keep in mind that this is also just an estimate and does not take into account that the max drawdown can happen anytime, even right at the beginning. So there may be reasons to stop the system earlier, or later."

All this doesn't answer directly to your question, but it may help to keep thinking about it.

Last edited by Mangal; 03/15/15 11:50.
Re: WFO and curve fitting [Re: Mangal] #449344
03/16/15 06:55
03/16/15 06:55
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline OP
Senior Member
boatman  Offline OP
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Thanks for posting, Mangal. I don't suppose you know where that formula comes from? It would be interesting to see the derivation and the assumptions behind it.

Re: WFO and curve fitting [Re: boatman] #449349
03/16/15 11:29
03/16/15 11:29
Joined: Sep 2013
Posts: 73
M
Mangal Offline
Junior Member
Mangal  Offline
Junior Member
M

Joined: Sep 2013
Posts: 73
No, I don't. Jcl posted it sometime ago.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1