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
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, SBGuy, TipmyPip, ozgur), 859 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 1
Page 19 of 25 1 2 17 18 19 20 21 24 25
Re: Lapsa's very own thread [Re: Lapsa] #485405
03/07/22 22:15
03/07/22 22:15
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
But that's in-sample (right?), which makes this return completely irrelevant. Why not reserve some history for out-of-sample testing? This will speed up your dev process.

Last edited by Grant; 03/07/22 23:37.
Re: Lapsa's very own thread [Re: Lapsa] #485409
03/08/22 06:31
03/08/22 06:31
Joined: Aug 2021
Posts: 237
L
Lapsa Offline OP
Member
Lapsa  Offline OP
Member
L

Joined: Aug 2021
Posts: 237
What do you mean by in-sample?

That's the whole history there is. MATIC is around for couple years.
I'm just ignoring the very initial stage when it had no traction at all.

What's the point of keeping out-of-sample history if I'm gonna test it anyway?
Doesn't that sort of make it in-sample too?

I don't get your point.

----

> But that's in-sample (right?)

I didn't fine tune it for a single week and then extrapolated expected returns.
I fine tuned it for the (!) whole meaningful history I got.
And those are the numbers that come up.

Last edited by Lapsa; 03/08/22 07:14.
Re: Lapsa's very own thread [Re: Lapsa] #485410
03/08/22 13:37
03/08/22 13:37
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Let's compare strategy development cycles in a nut shell..

Yours: take the full data set (in-sample) for tuning > skip out-of-sample testing > test it right away on live market data > weeks go on and now you realize that it performs poorly (most cases) or you have an unicorn.

The traditional way: take 75-90% from your data for tuning > test it out-of-sample on the rest of your data set > you realize almost right away that it performs poorly (most cases) or you have an unicorn > once you have that unicorn, you run it on live market data for a final test ride (better safe than sorry).

Advantages of the traditional method: you save much time and you can compare out-of-sample results from multiple strategies / tune-settings (very important).

Your strategy has much potential when I look at the in-sample results, but your tuning method leads to over-fitting. That's the main weakness that you need to fix.

Last edited by Grant; 03/08/22 15:08.
Re: Lapsa's very own thread [Re: Lapsa] #485412
03/08/22 16:24
03/08/22 16:24
Joined: Aug 2021
Posts: 237
L
Lapsa Offline OP
Member
Lapsa  Offline OP
Member
L

Joined: Aug 2021
Posts: 237
Yeah, but you wait a month, test it again and you got your 10-25% out-of-sample data.

I really don't see a benefit.

What if we pick January 2022 as our out-of-sample data?
Why such data should be allowed to trump everything else just because it got ignored while fine-tuning?

Re: Lapsa's very own thread [Re: Lapsa] #485413
03/08/22 16:58
03/08/22 16:58
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Once your OOS results are good (which is far from easy), you only need another month or so once. Sure, you can skip that second test phase, but that would be foolish.

It's not about 'trump everything', it's about finding out right away how robust your strategy is. In most cases there's over-fitting, so you need to OOS test, adapt, OOS test, adapt, etc. over and over again before your strategy is tradeable.

Re: Lapsa's very own thread [Re: Lapsa] #485415
03/08/22 18:12
03/08/22 18:12
Joined: Aug 2021
Posts: 237
L
Lapsa Offline OP
Member
Lapsa  Offline OP
Member
L

Joined: Aug 2021
Posts: 237
I just fail to see it.

I mean, I do see some benefit in such approach.
Some rules indeed work only temporarily.

But I also feel it raises bunch of new concerns and uncertainties.

Just wanted to highlight one of them - actually picking OOS data.
No matter what's your approach on picking up robustness measurements - they would be based in OOS data.

I think my biggest problem is with the definition of over-fitting itself.
I don't know how to measure it (!) precisely.

Have seen and made algos that are obviously over-fitted and fail immediately on any different data.

But when it's such heaps of data and thousands of trades - I don't really believe it's that easy to over-fit.
More and more the results legitimizes themselves as The Unicorn.

--------

Btw, on actual performance - you might argue it's not half bad.
Sort of break even-ish month. 1 week was great (dunno, +30% or something) - flattened out by others.

Given the circumstances we currently live in - it's not really that much out of the line.
In 2021 - it shows about 3 flat months in a row. Ulcer's might not like it, but hey - that's the path I chose!

--------

Much of the frustration comes from the fact how hard it actually is to live trade.

You need bravery - sending out bunch of money and putting it on the line isn't exactly that easy.
Foolishness can help too (and backstab you later on).

You need resilience - even after hitting stop loss like 5 times in a row, that may or may not tell anything.

You need patience - those hours go by slowly. Even worse when you get bad gut feel predictions for days / weeks.

And then the stuff automagically happens and you are TOO LATE.
Either it failed or you are left with constant reminders that success ain't given freely and may very well disappear next week.

Ridiculous of me initially thinking that sound alerts are a good idea.

Re: Lapsa's very own thread [Re: Lapsa] #485416
03/08/22 18:47
03/08/22 18:47
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
I can appreciate your honesty. Setting up successful algo trading isn't like just baking a cake laugh

There's no golden standard for robustness/over-fitting (both are -IMO- pretty much the same), so I can only speak for myself.
I look for decent OOS statistics, enough trades (say 50+), combined with a decent PF (say 1.25+).
More precise would be to look at the performance offsets between your in- and out-of-sample stats.

To read it from a different perspective, check this interesting blog article https://quantlane.com/blog/avoid-overfitting-trading-strategies/

Believe me, even with 10 years of data with 1000+ trades you can have over-fitting, so a large in-sample set is not a guarantee for robustness.
This largely depends on the complexity of your approach, the more complex, the higher the likelihood of over-fitting.

Re: Lapsa's very own thread [Re: Lapsa] #485417
03/08/22 20:00
03/08/22 20:00
Joined: Aug 2021
Posts: 237
L
Lapsa Offline OP
Member
Lapsa  Offline OP
Member
L

Joined: Aug 2021
Posts: 237
sadly - I find that blog article empty.
nicely written, good theory overview, near zero practical value

> enough trades (say 50+)

that's like couple days

to my mind - tells nothing

> not a guarantee for robustness

I don't believe there is any

> This largely depends on the complexity of your approach, the more complex, the higher the likelihood of over-fitting.

already mentioned - think it's much more important when working with machine learning

> Believe me, even with 10 years of data with 1000+ trades you can have over-fitting

I know it's there. just don't think it's that easy to pick it out by delaying tests on some particular data

Re: Lapsa's very own thread [Re: Lapsa] #485418
03/08/22 22:24
03/08/22 22:24
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Originally Posted by Lapsa
sadly - I find that blog article empty.
nicely written, good theory overview, near zero practical value

It provides basic guidelines. Don't expect effective 'recipes' in this secretive area.

Quote

> enough trades (say 50+)

that's like couple days

to my mind - tells nothing



That's just a number to give an indication, just like reserving 10-25% from your data set for OOS testing.

Quote

> not a guarantee for robustness

I don't believe there is any


True, but I provide you some guidelines to increase the likelihood. Up to you what do with that, it's your broker account.

Quote

> This largely depends on the complexity of your approach, the more complex, the higher the likelihood of over-fitting.

already mentioned - think it's much more important when working with machine learning

> Believe me, even with 10 years of data with 1000+ trades you can have over-fitting

I know it's there. just don't think it's that easy to pick it out by delaying tests on some particular data


Yes, this is esp true with ML, but you can basically over-fit any method. I don't know about the complexity of your approach, but those in-sample stats are way too optimistic.

Re: Lapsa's very own thread [Re: Grant] #485419
03/09/22 06:02
03/09/22 06:02
Joined: Aug 2021
Posts: 237
L
Lapsa Offline OP
Member
Lapsa  Offline OP
Member
L

Joined: Aug 2021
Posts: 237
Originally Posted by Grant

but those in-sample stats are way too optimistic.


well... those are just numbers

my expectations are slightly lower - I expect it to be profitable and that's all

Last edited by Lapsa; 03/09/22 09:29.
Page 19 of 25 1 2 17 18 19 20 21 24 25

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1