Sunteți pe pagina 1din 5

The Future of System Development – Part 2

Rank and Filter to Adjust Position Size


The higher the likelihood for a trade to go your way the more contracts you would like to buy. By ranking and filtering all trade signals for
a portfolio on any given trading day you can achieve this. For this to work your system needs to keep track of all markets simultaneously.
For a broad futures-markets portfolio measuring and ranking the most recent trends strength is one way to do it.
18
TRADERS´ insights

One feature that has been lacking The markets tested are listed at F1) Original 40-day Volatility Breakout System
for many years in most trading- the end of this article. Figure 1
system platforms is the possibility shows the performance for this
to test a system incorporating system since 1990. An average
ranking and filtering functions. of $5 and $10 was deducted for
Sure, many testing and trading commission and slippage for all
platforms offer these possibilities contracts traded. The risk per
as stand-alone features, but very trade was set to 0.2 per cent of
few if any offer the possibility to total equity. You can see that the
incorporate them into a system. average annual return comes out
This is because old trading- to 19.08 per cent with a maximum
system platforms operate under drawdown of 22 per cent, over
the old paradigm of testing one 8869 trades.
market at a time from the start
of the data to the end of the The Ranking Functions The performance of the original system indicates the system works
well over time. A steady equity growth generates an annual return of
data, before they combine the Two different ranking and filter more than 19% over 8869 trades.
performance for each market functions are added to the above Source: TradingBlox
tested into a portfolio report. With system. They are based on a
Thomas Stridsman the old-school way of testing simple momentum calculation
there is no way to compare the (Close today minus Close n
Mr Thomas Stridsman is a markets and their respective days ago) and the Average F2) Filtering out the Worst Trades
partner of Alfakraft Fonder, indicator values mid-test. Newer True Range (ATR) indicator. For
where he manages two platforms, on the other hand, the momentum ranking, a high
funds (Alfa Commodity and offer this feature, because their positive value means the market
Alfa Energy). He has been way of testing things are not one has been trending higher and is
developing strategies for market at a time, but rather one expected to continue to do so.
model-based investing since day (bar) at a time, simultaneously A high negative value means the
the early 1990s. Prior to joining across all markets in the portfolio. market has been trending lower.
Alfakraft Fonder, Mr Stridsman One of the platforms offering For the ATR ranking a high value
managed client money in ranking and filtering for systems means low intra-day volatility,
the FX markets. He also is a is Trading Blox, which is used in which is considered a good thing
freelance analyst and author this article on a portfolio of 49 for both long and short trades.
of the two books Trading commodity futures markets in an Using the ranking and filtering
Systems That Work (2000) and effort to improve a basic volatility- techniques you can test the
Trading Systems and Money breakout system. The system performance of all markets based Reducing the number of trades based on a filtering function would be
a bad idea for this system. Getting rid of potentially profitable trades
Management (2003). is a standard Bollinger-band on their relative strength in the is seldom a good idea.
type system with a 40-day look- portfolio for each day, provided Source: TradingBlox
back period for its calculations. that they also signaled a trade

07/2011 www.tradersonline-mag.com
19
TRADERS´ insights

that day in accordance with the much higher for the sum of all trade more contracts while those
original breakout rules. Table 1 percentiles than they are for the that rank the lowest trade as few
shows the performance of each unconstrained system in Figure contracts as possible? In this F3) Ranking the Momentum
percentile, using the momentum 1. This is because a filter like this case we will alter the original 0.2
filter. For example, the row for the can in fact, offer more trading per cent risked per trade with the
top-10 percentile shows those opportunities per market over a following simple formula:
markets that were among the longer test period, the narrower New Risk = Original Risk * ((1 -
highest ranked markets according the ranking bins are. Figure 2, Rank / 49 - 0.5) * 2 + 1), with the
to the momentum filter, and also which shows the performance of number 49 representing the total
signaled a trade that day which trading only the top-60 percent number of markets.
produced 2068 trades for a total trades, confirms that this would This way we double the risk
annual return of 3.13 per cent. be a bad conclusion. Filtering out for the highest ranked markets
Now, not knowing any positive trades always lead to while decreasing the risk for the
better, we could just add all lower performance. lowest ranked markets all the way
the percentile returns together down to zero. For all trades, the
and might conclude something Testing Money Management average risk per trade will still be
like, “Trading only the top-60 So, in this case filtering out 0.2 per cent or close to it. Figures
percentile markets will produce a trades is not the way to do it. 3 and 4 show the performance of Ranking the markets in the portfolio according to their relative market
momentum before modifying the position sizing algorithm incorporating
return of close to 35 per cent, so But is there another way? How such tests with our filters. Figure the ranking, generates higher returns, but also higher drawdowns.
let us settle for that”. about altering the positions size 3 shows the performance for the Source: TradingBlox
However, this the wrong based on the ranking so that momentum filter. With this filter,
conclusion as both the sum those markets that are ranked the the annual return came out to
of all returns and trades are highest according to the ATR filter 23.62 per cent, an increase of F4) Ranking the Average True Range (ATR)
approximately four percentage
points. The modified Sharpe ratio
T1) Percentile Performance (not including the interest rate)
also increased somewhat, but
Percentile Return Sharpe Trades the bad news is that both the
- 10 3.13 0.62 2068 magnitude and the length of the
10 - 20 5.40 0.72 3299 maximum drawdown are also
20 - 30 6.23 0.80 3688 increased.
30 - 40 7.82 0.96 3462 Figure 4 shows the
40 - 50 5.53 0.81 2926 performance for the ATR filter.
50 - 60 6.20 0.98 2314 Now the annual return comes
60 - 70 2.72 0.54 1772 out to 21.38, an increase of
70 - 80 1.00 0.28 1331 2.3 percentage points. Again,
80 - 90 0.75 0.07 893
the modified Sharpe ratio also
90 - 100 0.45 0.22 426
increased somewhat, which is In this case, ranking the markets in the portfolio according to their
relative ATR before modifying the position sizing algorithm based on the
Here we see the performance of each percentile, using the momentum filter. For example, the row for the top-10
percentile shows those markets that were among the highest ranked markets according to the momentum filter
an improvement. Again, though, ranking turned out not as profitable as the momentum-based ranking.
and also signaled a trade that day produced 2068 trades for a total annual return of 3.13%. the bad news is that both the Source: TradingBlox
magnitude and the length of

07/2011 www.tradersonline-mag.com
20
TRADERS´ insights

the maximum drawdown also red. As you can see, both lines system after the ranking process.
increased considerably. Overall, are rather unstructured with no Notice how both the Sharpe
the momentum filter did a slightly clear trend from high to low or ratio and the profit ratio become F5) Profit per Trade for Each Percentile of Trades
better job than the ATR filter. vice versa. This indicates that increasingly lower for each
the trades for each percentile are percentile. This is exactly what we
Analysing the Results producing profits similar to the want to see for the ranking based
The reason why we were not trades for all other percentiles, money management to work the
able to increase the performance which makes the use of these two most effectively.
more than this can be deducted ranking techniques for adjusting If we base the position sizing
from Table 1. First, take look at the position size for this particular of each trade on the ranking, the
the values for each percentile’s system fruitless. annual return increases by close
Sharpe ratio. Notice that there to nine percentage points, which
is little order to how the values Another Example is very good; the modified Sharpe
change from one percentile to As is likely to be pointed out ratio increases by 0.27 points,
the next. Sometimes it is higher, more with some frequency in this which is phenomenally good; the
sometimes it is lower. This means article series: The purpose of this drawdown increases by close to The profit per trade for each percentile of trades for the ranking
functions. There really are no distinct trends from high to low values
the filter is doing a poor job in article is not to provide you with seven percentage points, which for either of the two ranking functions. The momentum function in blue
and the ATR function in red.
sorting out risk-adjusted trading any turn-key trading systems, is bad. The most important point
opportunities. but rather to present, state-of- here is the large increase for the Source: TradingBlox
For the system to do a good the-art research concepts while modified Sharpe ratio, while the
job we would have liked for the inspiring you to conduct your drawdown increases less than the
Sharpe ratio to be consistently own research. Therefore, so that annual return. This is super good
lower. (A consistently higher you do not feel left in the dark news, because now what we can F6) Performance of a Proprietary Breakout System
Sharpe ratio would also have thinking this was a bad trading do is to lower the average amount
been a good thing, although in idea and article let us take a risked per trade from 0.2 per cent
that case our reasoning for how look at another system with an to look for a target return close
the filter was supposed to work accompanying ranking function to the original 20 per cent which
would have been completely which considers adjusting the will lower the drawdown even
backwards.) position size. more while maintaining a very
Second, if we divide the annual Figure 6 shows the competitive Sharpe ratio.
return for each percentile with performance of a basic volatility- Figure 8 shows what happens
the number of trades for that breakout system, also tested on with the performance, if we
percentile we come to a number the same portfolio of markets, keep the ranking based money
indicating the performance per risking 0.2 per cent of equity management, while lowering the
trade for that percentile. Again, per trade. This system has an average risk per trade to 0.14 per
for the system to do a good job annual return of 20.27 per cent, a cent. With both the return and the
we would have liked for this ratio modified Sharpe ratio of 1.2 and a drawdown back to their original
to be consistently lower or higher. maximum drawdown of 22.9 per readings, the modified Sharpe The performance of a short-term volatility breakout system without
any filtering or ranking. Note that the annual return is accompanied by
Figure 5 shows this ratio for our cent. Figure 7 shows the Sharpe ratio remains at 1.47, which a modified Sharpe ratio of 1.2.
two filters, with the momentum ratio (in blue) and the profit ratio indicates that the day-to-day and Source: TradingBlox
filter in blue and the ATR filter in (in red) for each percentile for this month-to-month volatility of the

07/2011 www.tradersonline-mag.com
21
TRADERS´ insights

account equity has decreased builders and technical traders. markets were then allowed only
significantly, making this version First we tried using them as a small risk per trade, all the way
of the system both safer and filters, filtering away the least down to no risk (= no contracts F7) Profit per Trade and Sharpe Ratios
more enjoyable to trade than the profitable trades, which did not traded) at all.
original version. work that well in our case. This, This way of doing things turned
however, has more to do with out much better, and in one
Conclusion the underlying system than the case we increased the average
Both ranking and filtering has filters themselves. Because if annual return by more than four
been around for many years, the system is good, generating percentage points from 19.08
but not as features to be added profitable trades even during per cent to 23.62 per cent. This
into a trading system. Being most circumstances, then the in itself is very good, but we also
able to do so, represents filters do nothing but lower the took a closer look at why we did
a huge leap forward in the profit. Had the system itself been not manage to increase the profit
systems development process, better, then even these simple even more.
which opens up the doors filters would have done a good To maximise the total profit
for a completely new set of job. increase, the ranking process Both the profit per trade and the Sharpe ratio trends nicely from high
to low values for this system with the modified filtering function in
automatised trading strategies When the filtering process did needs to be constructed so that place. This indicates that the performance could increase significantly
with the position sizing altered by the ranking.
and completely new ways of not work we tried to rank only the average profit per trade and/
thinking. The sky is truly the limit the systems and then adjust the or the Sharpe ratio decreases Source: TradingBlox
in this area. money management function at a steady pace, the worse the
For this article we looked at based on the ranking so that upcoming trades are expected
two very simple ranking and the highest ranked markets at to perform. That is, in a backtest, F8) Ranking Increases Performance
filtering techniques, using nothing each day were allowed to take the highest ranked markets
but the simple momentum and on a larger position than the should have a much higher
ATR indicators. Both techniques original 0.2 per cent per trade. average profit per trade than
are well known to most systems Consequently, the worst ranked the worst ranked markets. To
show this, a final example with a
proprietary breakout system and
Markets used in these tests a proprietary ranking managed
to increase the annual return by
close to nine percentage points,
Currencies: Australian dollar, British pound, Canadian dollar, Euro, Japanese yen,
Mexican peso, Swiss franc
from 20.27 per cent to 29.06
Energies: EUA emission rights, Crude oil, Heating oil, Brent oil, Gas oil, Natural gas, per cent, indicating that a well-
Gasoline functioning ranking and filtering
Equity indices: SP 400, CAC 40, Dax, FTSE 100, Hang seng, Nikkei, Russell 2000 function will increase a system’s
Grains: Corn, Rice, Soybeans, Soybean meal, Soybean oil, Wheat, Kansas wheat performance significantly.
Interest rates: Australian bonds, British long gilt, Canadian bonds, German bund, The performance of a short-term volatility breakout system with a
Japanese bonds, US 10-year notes, US 30-year bonds proprietary ranking function affecting the position size. Note especially the
large increase in the modified Sharpe ratio, from 1.2 to 1.47, even after the
Metals: Aluminum, Copper, Gold, Nickel, Palladium, Platinum, Silver average risk per trade has been reduced from 0.2% to 0.14% per trade.
Misc: Feeder cattle, Live cattle, Lean hogs, Coffee, Lumber, Orange juice, Sugar
Source: TradingBlox

07/2011 www.tradersonline-mag.com

S-ar putea să vă placă și