Welcome to the Traders Laboratory Forums.
Automated Trading Black box systems, strategy automation, algorithmic trading, etc...

Reply
Old 02-01-2010, 03:46 PM   #1

cunparis's Avatar

Join Date: May 2008
Location: Paris
Posts: 154
Ignore this user

Thanks: 238
Thanked 45 Times in 25 Posts

Is Optimizing Profit Target & Stop Loss Curve Fitting?

I took a price pattern I was trading manually and programmed it into a strategy using tradestation. It doesn't use any indicators, just price & volume. I then ran the optimizer on it and had it find the optimal profit target and stop loss.

My strategy report has almost 1k trades over the past 2 years. The profit factor is 1.90. Drawdown is acceptable (less than 10% of the gross profit).

I'm curious if this is considered "curve fitting"? In the past I've written strategies using indicators and they worked for a month or two and then died. So now I'm focusing on price and volume and I'm avoiding indicators. But I still like to optimize for the target & stop loss.

Looking for experience here. Thanks.
cunparis is offline  
Reply With Quote
Old 02-01-2010, 05:14 PM   #2

Join Date: Jul 2009
Location: London
Posts: 365
Ignore this user

Thanks: 206
Thanked 195 Times in 124 Posts

Re: Is Optimizing Profit Target & Stop Loss Curve Fitting?

It could be argued any optimisation is curve fitting as part performance is never indicative of future performances.... etc;

I think by working out the averages, and best TP and stops then it just gives you an idea of what to expect. It seems all you have done is work out the best to expect.

However from what I have read, and learnt myself on the subject, I could suggest you look at the instances that constitute the outliers either side of the analysis, and try and work out what causes the bigger winners, and the losers. This might give you a better idea.

I am sure others will give more specific replies.
DugDug is offline  
Reply With Quote
Old 02-02-2010, 01:26 AM   #3

cunparis's Avatar

Join Date: May 2008
Location: Paris
Posts: 154
Ignore this user

Thanks: 238
Thanked 45 Times in 25 Posts

Re: Is Optimizing Profit Target & Stop Loss Curve Fitting?

Quote:
Originally Posted by DugDug »
It could be argued any optimisation is curve fitting as part performance is never indicative of future performances.... etc;

I think by working out the averages, and best TP and stops then it just gives you an idea of what to expect. It seems all you have done is work out the best to expect.

However from what I have read, and learnt myself on the subject, I could suggest you look at the instances that constitute the outliers either side of the analysis, and try and work out what causes the bigger winners, and the losers. This might give you a better idea.

I am sure others will give more specific replies.
Hi, thank you for your reply. I agree about the past & future. I guess I am betting that it "won't stop tomorrow".

Yes, it's about what to expect on the target & stop side. The reason this could stop working is due to volatility. What if the moves get bigger and the stop is hit more often? or the volatility contracts and the moves get smaller and the target is not hit?

I've tried using range based targets and stops but I haven't found anything nearly as profitable as constant target and stop targets.

there aren't really any outliers. It either hits the target or the stop, so all the wins are the same size and all the losses are the same. that's what I like about it, it's really simple. I think I can do better trading the price pattern manually, mainly cause I can exit with a small profit instead of taking a loss, but I like the idea of automating it so that I can do discretionary trading with other methods.
cunparis is offline  
Reply With Quote
Old 02-02-2010, 01:50 AM   #4

electroniclocal's Avatar

Join Date: Oct 2009
Location: London
Posts: 91
Ignore this user

Thanks: 7
Thanked 53 Times in 29 Posts

Re: Is Optimizing Profit Target & Stop Loss Curve Fitting?

If you just optimised using $ values then you are getting an "average" OK value for the ranges of volatility during those 2 years.

If instead of using $ values, you used something else - not an indicator - so that the changes in volatility would not impact you, you would have something more robust.
electroniclocal is offline  
Reply With Quote
Old 02-02-2010, 01:12 PM   #5

zapisy's Avatar

Join Date: Jan 2009
Location: New York
Posts: 81
Ignore this user

Thanks: 6
Thanked 26 Times in 17 Posts

Re: Is Optimizing Profit Target & Stop Loss Curve Fitting?

Any optimization is a curve fitting, if is done without forward testing.

Never base your profit target on fixed amount, because the bars range change every day, every month and every year - they are different in size.
By optimizing, you are trying to find best values, but those values may be on the edge of the bars, so simply speaking, is better to be out, than miss big profits,
when last bar range were big enough to take $1500 instead of $500.

You can add a condition, that if the possible profit factor is less than your stop * 2, then do not take the trade.

Luk
zapisy is offline  
Reply With Quote
Old 02-03-2010, 02:56 AM   #6

cunparis's Avatar

Join Date: May 2008
Location: Paris
Posts: 154
Ignore this user

Thanks: 238
Thanked 45 Times in 25 Posts

Re: Is Optimizing Profit Target & Stop Loss Curve Fitting?

Quote:
Originally Posted by zapisy »
Any optimization is a curve fitting, if is done without forward testing.

Never base your profit target on fixed amount, because the bars range change every day, every month and every year - they are different in size.
I forward tested it like this: I reran the optimization up until 3 months ago. I then took these values and tested them for the next 3 months. Results were similar. in fact the optimal values for target & stop for the period up until 3 months ago and the period including the past 3 months are the same.

I'm optimizing with 1.5 years of data. Prior to that the optimal values are different. In mid-2007 the markets become more volatile.

can you suggest a way to not use fixed amounts? I've tried using percentages of the daily range but that did not work as well as the fixed amounts.

Thanks
cunparis is offline  
Reply With Quote
Old 02-03-2010, 03:12 AM   #7

Kiwi's Avatar

Join Date: Oct 2006
Location: the zone
Posts: 988
Ignore this user

Thanks: 248
Thanked 844 Times in 391 Posts

Re: Is Optimizing Profit Target & Stop Loss Curve Fitting?

It might be that the markets participants react to point moves rather than average ranges (which is one of the ways of making it more self-adaptive).

I've found that it is often better to know what is potentially "wrong" with your system and fix it as you go along. You might run a series of optimizations every two weeks and when you get significant variation you adjust your parameters (or something - perhaps you spend some time figuring out why it has changed).
Kiwi is offline  
Reply With Quote
The Following User Says Thank You to Kiwi For This Useful Post:
DugDug (02-03-2010)
Old 02-03-2010, 03:31 AM   #8

zapisy's Avatar

Join Date: Jan 2009
Location: New York
Posts: 81
Ignore this user

Thanks: 6
Thanked 26 Times in 17 Posts

Re: Is Optimizing Profit Target & Stop Loss Curve Fitting?

You can use the support and resistance as first exit.

Second exit you can make by taking w. average range for 100 days and multiple it by 1.5 or something like that if the stop is too small, and profit target multiply by 5. This way, the stop and profit will adopt to the changing market.
zapisy is offline  
Reply With Quote
The Following User Says Thank You to zapisy For This Useful Post:
DugDug (02-03-2010)

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Daily stop loss/profit targets Sparrow Money Management 21 03-29-2011 08:42 PM
Stop Trading After Profit/Loss cortlane Automated Trading 1 12-08-2009 09:27 PM
Avoiding Curve Fitting cunparis Automated Trading 3 09-01-2009 03:41 PM
Arts of stop placment and profit target kingking Beginners Forum 24 03-01-2007 01:52 AM
Stop Loss or Target Price? Follow The Trend Trading Psychology 4 12-01-2006 12:54 PM

All times are GMT -4. The time now is 09:35 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.