General Topics
Markets
Technical Topics
Brokerage Firms
Community Lounge
Site Support

# Scaling Out Trading Simulation Results

Discussion in 'Strategy Development' started by jazzguysoca, Aug 9, 2010.

1. ### jazzguysoca

First time poster, long time lurker here. I've been able to extract some decent information from this site over the years, and thought it was time for me to finally get off my ass and give something back.

So I was reading Buy1Sell2's mammoth "Inferior Behavior" thread the other day, which generated quite a bit of fireworks over quite a long, ponderous period.

I should confess that prior to reading that thread I was squarely in the pro-scaling camp, but after foraging through all of its 1300+ posts I actually began to have some doubts. So I decided to run some simulations to try and prove for myself whether scaling out of positions truly makes any sense.

So using Visual C++, I coded up three groups of tests; Each test generates an equity curve from 100,000 trades using one exit technique (timestop only, stop/target, stop only, target only, trailing stop, and scaling out). Each trade is simulated by generating a time series of 500 steps, incrementing/decrementing by one tick at each step with a specified probability.

The simulated scaling out exit uses a stop and two targets, scaling out half at the first target and moving the stop to the entry. The timestop exit simply holds and exits at the last step of the time series.

Anyway, here's a summary of the results:

Test #1: Trading With Zero Edge

The first test group used a 50% uptick probability for all trades, thereby simulating trading with no edge. As expected, none of the exits generated a significant positive expectation, although scaling out generated the largest absolute return. The various stop/target ratios affected the win probability, but had no effect on expectation. The timestop generated the largest drawdown, and interestingly scaling out generated the lowest drawdown while maintaining a higher win probability. On a risk adjusted basis (i.e.: totalreturn/maxDD), none of the exits outperformed the others.

Test #2: Trading With A Positive Edge

The next test group used a 51% uptick probability, therefore simulating trading with an edge. The simple timestop generated the highest expectation, while the various stop/target generated lower returns, but with higher win probabilities. Scaling out generated some of the lowest returns, but also the lowest drawdowns. But most surprising is that on a risk adjusted basis, the simple timestop also outperformed by a wide margin, with the stop with no target and trailing stop exits coming in second. And unexpectedly, scaling out was one of the lowest performers on a risk adjusted basis.

Test #3: Trading With A Negative Edge

The final test group used a 49% uptick probability, simulating trading with a negative edge. The simple timestop generated the worst expectation as well as the worst drawdowns. Scaling out generated the highest expectation and lowest drawdowns, as well as the highest win probability. On a risk adjusted basis, scaling out took first place and the timestop came in last.

The results were interesting, in most cases confirming the obvious, but at closer inspection there were a few surprises - I've attached the results in a text file (its tables are pretty wide, so turn of word wrapping and maximize your window to preserve the formatting). Note that the results are reported in absolute ticks gained/lost (not percentages). "Sum" is the total return, "maxDD" is the maximum drawdown, "Trade Mean" is the trade expectation, and WinProb is the percentage of trades that were winners.

Conclusions

The tests seem to indicate that if you're trading with a positive edge, any exit will make you money. But the simple time stop generated the largest returns, both on an absolute and risk-adjusted basis. The tests also seem to support the assertion that scaling out offers no real advantage and perhaps truly is inferior behavior.

It appears that both stops and targets are also fool's gold, accomplishing nothing but modifying win probabilities, while reducing returns and increasing drawdowns. However, it does appear that a stop without a target (i.e., "let your winners run") has the best risk adjusted return of the systems that used stops.

The tests also indicate that if you have no edge (or a negative edge), scaling out appears to limit drawdowns while maintaining a higher win probability (this may explain its popularity among some traders). It appears to allow a longer, less bumpy ride to the bottom.

The edgeless tests didn't appear to support the notion that one can trade with random entries, and that exits alone can somehow turn a zero-expectation system into a positive one.

One important caveat to the market model used by the simulations is that it assumes that any edge will last for the duration of each time series (which explains why the simple timestops out performed all other strategies on a absolute basis). But since the model makes no assumptions about absolute time (each time step can be considered to be a microsecond or a day), this may be of no consequence. The stop/target exits also benefit from this bias, and as they are moved further from the entry, their returns will approach that of a timestop.

Anyway, my personal conclusion is that complicated exit strategies don't appear to buy you much of anything. In most cases, its probably better to focus on your entry setups and just use a timestop to exit.

Obviously, these tests are in no way 100% conclusive as the simplified market model makes some very narrow assumptions. But it was fun to code and I think it yielded some useful info, for me at least.

Any criticisms or comments are certainly welcome...

File size:
9.8 KB
Views:
311
2. ### Piffle

It is great to see people doing their own research, generating questions and researching answers. Kudos to you.

My findings are similar here...

and here. I haven't done this exact piece of research, but I have tested many iterations of hundreds of ideas, and my default exit for a profitable trade is to close it at the market close, because this usually works better than any other exit (in testing and in real trading). This is a bit of old Trader's Wisdom that is true.

We have to make some assumptions or we'll go insane trying to allow for all variables. I think you are on the right track. Thanks for sharing your research.

EDIT: I should say that I disagree with some of your other conclusions. Maybe you are making invalid assumptions or misinterpreting your results, or maybe I am wrong, but remember to always question everything and keep testing. I do agree with your basic conclusion that scaling out will usually be one of your worst choices for exit techniques.

It would be interesting to see comparison of sell at market open vs sell at market close vs sell at +/- standard deviation (Bollinger Band) vs sell at +/- average true range. I can't find it now but I recall seeing a paper that selling at market open works better than selling at market close, when trading indexes.

4. ### athlonmank8

Excellent post. You nailed some important points there. Time-stop would be open-ended target. That's something to ponder.

5. ### lurefo

Scaling out - while often inferior on paper - is a good option if you're a discretionary trader as you get a smoother equity curve. With lower DD's you tend to take better decisions. The counterpart is that you leave a bit on the table when the fat-tail trade happens.

That said, what works best for me lies in the gray area where all out is used on the higher probability setups.

6. ### jazzguysoca

Thank for the reply and kind comments. Its encouraging to hear others who have made the same journey confirm some of the same conclusions.

I have found simple MOC exits seem to work best in my live intraday trading. But I'm still surprised that the humble timestop pretty much spanked all other techniques in the simulations, especially on a risk-adjusted basis.

Which conclusions specifically? Not asking in an adversarial way - just curious. Always looking for bits of wisdom wherever I can find them.

7. ### jazzguysoca

Thanks, am8 - appreciate the comments. It certainly does appear that the best exit strat is simply to hold as long as possible (as long as your edge persists).

One of the themes the market seems to constantly resonate over the years I've traded it is that the simplest solutions are generally the superior ones.

8. ### jazzguysoca

I totally agree. Intuitively, the scaling out exit gives up absolute gains in return for lower drawdowns and therefore smoother equity curves. The test appear to confirm this as the scaling out exit's stddev of trade returns was generally the lowest among all the exit strats tested.

But one of the surprising results of the tests was that the simple timestop outperformed scaling out on a risk adjusted basis (totreturn/maxDD). That sort of left me scratching my head.

Based on the tests at least, it appears that scaling out helps if the market turns against you and your system starts to fail. But if your edge holds, it doesn't really appear to buy you much.

Someone pointed out the smoother equity curve benefit to Buy1Sell2 in his thread. He basically slammed it saying that you could achieve the same thing without scaling out by simply adjusting your position size and trading multiple systems/instruments.

You gotta admit, his argument is a hard one to refute...

9. ### asynchronous

Hello!

Guess I am still on a learning curve - can someone explain to me;

Test #1: Trading With Zero Edge
Test #2: Trading With A Positive Edge
Test #3: Trading With A Negative Edge

...I fell a little stupid here...

10. ### ucf_student

You may find the July 2010 article in Active Trader, p28 Exit Technique Showdown an interesting read.

#10     Aug 10, 2010
ET IS FREE BECAUSE OF THE FINANCIAL SUPPORT FROM THESE COMPANIES: