Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, 7th_zorro, alibaba), 913 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Many/Single indicators with standard settings #423873
06/07/13 09:56
06/07/13 09:56
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
Hi,

A single indicator with standard settings is considered a good and not curve fitting indicator.

However, When I put many indicators with all standard settings on the chart, It is considered a curve fitting system although it is profitable in back test?

Is curve fitting is not only about parameters?

Thanks in advance.

Re: Many/Single indicators with standard settings [Re: SFF] #423886
06/07/13 12:24
06/07/13 12:24
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, the more indicators you're using for your signals, the higher is the danger of overfitting, even with standard settings.

The reason is that overfitting does not depend merely on parameters, it depends on degrees of freedom. Any parameter is a degree of freedom, but any additional indicator also.

Re: Many/Single indicators with standard settings [Re: jcl] #423928
06/08/13 06:54
06/08/13 06:54
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
Thanks.

Is MTF(each TF is used only one indicator) also in the danger of overfitting?

Re: Many/Single indicators with standard settings [Re: SFF] #423938
06/08/13 13:12
06/08/13 13:12

A
acidburn
Unregistered
acidburn
Unregistered
A



Originally Posted By: SFF
Thanks.

Is MTF(each TF is used only one indicator) also in the danger of overfitting?


Sure thing. Just think in terms of degrees of freedom, as jcl nicely put. The first degree of freedom is what is your first TF? The second one is your second TF, and so forth... Then when you come to indicators, say you're using MACD. It has three degrees of freedom by itself, because of three parameters it takes to be exactly defined (12, 26, 9). Apply accordingly to others indicators also. Soon you'll see that you have so many parameters to choose from, that your search for a holy grail has quite some chance to succeed. Unfortunately, it will be so perfect only for the time period of your backtest, aka past time. But will fail miserably going forward, out of sample. Obviously, you overfitted. Or said in other words, you've been fooled by randomness.

There's one technique that can help you to avoid overfit, and that is to carefully check your parameter space after optimization. For example, once I had a "great" trading strategy with these parameters: 17, 9, 1. Backtested over 5 years, it gave excellent results. But, as soon as I changed 17 to 18, it would fail. Obviously, not a good trading system. Your final parameters should allow for quite some tolerance, if you expect the trading system to be robust out of sample.

One other way to attack this issue is to use discretized values, so to skip large parts of parameters space and thus lower the chance of overfit. For example, if you're tuning the period of moving average between 50 and 200, don't use all values, but go in steps of say 5, like 75, 80, 85, etc... But also apply the principle from my last paragraph, if you're doing great with SMA80, but results are bad with SMA75, then you probably overfitted.

Back to your example of MTF. Say you're going to use 5 timeframes. That's 5 parameters that can produce a very large number of possible combinations. You're practically guaranteed you will find at least one combination which will produce excellent results. Do you really think it would survive the test of time?

I hope my english is good enough to attempt to explain these very important concepts in automated trading.

Re: Many/Single indicators with standard settings [Re: SFF] #423940
06/08/13 13:33
06/08/13 13:33

A
acidburn
Unregistered
acidburn
Unregistered
A



And after such a long reply, maybe these additional short answers would make more sense.

Originally Posted By: SFF
A single indicator with standard settings is considered a good and not curve fitting indicator.


Obviously, you're reserving the right to choose which indicator exactly to use? So, that's you're degree of freedom. And yes, you've just increased the possibility to overfit, because you granted yourself that degree of freedom. It doesn't matter that you will use only standard parameters, because there's so many indicators to choose from.

Originally Posted By: SFF
However, When I put many indicators with all standard settings on the chart, It is considered a curve fitting system although it is profitable in back test?


Now you also have very large number of indicator combinations to choose from. And you can optimize the hell out of it, until they perfectly fit. Not bad for only standard settings. wink

Originally Posted By: SFF
Is curve fitting is not only about parameters?


Obviously not. wink

Re: Many/Single indicators with standard settings [Re: ] #423944
06/08/13 15:49
06/08/13 15:49
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
Thank you for the great answers.

So it looks like that a forward testing is the king to distinguish between a profitable system or not.

Maybe a curve fitting system would make money in the short period of that test, but in the end it would be a looser.

Is there really no good systems that use many indicators?
Do you know an example?

Last edited by SFF; 06/08/13 15:52.
Re: Many/Single indicators with standard settings [Re: SFF] #423946
06/08/13 16:03
06/08/13 16:03

A
acidburn
Unregistered
acidburn
Unregistered
A



Originally Posted By: SFF
Thank you for the great answers.

So it looks like that a forward testing is the king to distinguish between a profitable system or not.

Maybe a curve fitting system would make money in the short period of that test, but in the end it would be a looser.

Is there really no good systems that use many indicators?
Do you know an example?


Yeah, forward test is definitely a king. Also it doesn't necessarily mean that a system with many indicators can't be a winner. It all depends how you stitched everything together. If you make sure that your system is not overly sensitive to any of the indicators involved, you're on the good path, I guess.

Re: Many/Single indicators with standard settings [Re: ] #423947
06/08/13 16:10
06/08/13 16:10
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
I can see that there is a system with many indicators in forum like forexfactory.
But most of them are a manual system.
Does degree of freedom apply for it?

Last edited by SFF; 06/08/13 16:11.
Re: Many/Single indicators with standard settings [Re: SFF] #423956
06/08/13 17:19
06/08/13 17:19

A
acidburn
Unregistered
acidburn
Unregistered
A



Originally Posted By: SFF
I can see that there is a system with many indicators in forum like forexfactory.
But most of them are a manual system.
Does degree of freedom apply for it?


Generally speaking, yes.

Re: Many/Single indicators with standard settings [Re: ] #424011
06/09/13 17:37
06/09/13 17:37
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
Does MACD without a parameter input option mean that there are no parameters with it?
I don't think so.
Also, I think that there is a parameter that is separate with degree of freedom, like an alert input with indicators.

Page 1 of 2 1 2

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