Stocks & Commodities V. 20:9 (-36): Improve Your System With The Profitability Rule by Michael Harris SYSTEM DESIG Insight Into System Capability Improve Your System With The Profitability Rule What are the capabilities and limitations of your trading system or investment strategy? You can ensure your system or strategy has a high probability of meeting your profit objectives by using this simple model as a measure of by Michael Harris ost traders spend time trying to M develop mechanical trading systems and often end up lost in a maze of indicators and techniques that produce dismal results. They may not fully understand the fundamental tradeoffs present in trading system design, or even worse, underestimate the influence of those tradeoffs. The profitability rule I present in this article sheds some light on the capabilities and limitations of trading systems, especially when commissions are factored in. It provides insight into systems operating in different time frames such as intraday or short-term, as well as trend-following systems. It would be worthwhile for every trader to understand how this simple rule can be used to realistically analyze the profitability of a system. THE PROFITABILITY RULE A trading system is profitable over a period of time if the sum of all winning trades, W, is greater than the sum of all losing trades, L : W L > 0 (Equation ) The average winning trade, AvgW, is defined as: AvgW = W / W or W = AvgW * W (2) AvgW * W * L > 0 (4) It is also true that: W = L (5) where is the total number of trades. Combining equations 4 and 5 and dividing them by yields: DOUG TILLER where W is the number of winning trades. Similarly, the average losing trade,, is defined as: AvgW W W >0 (6) = L / L or L = * L (3) where L is the number of losing trades. Combining equations, 2, and 3 yields: The profitability (P) of a trading system, or investment strategy in general, is defined here as the ratio of the number of winning trades or investments to the total number of trades or investments made, a number ranging from zero to (zero to 00%, in percentage terms):
Stocks & Commodities V. 20:9 (-36): Improve Your System With The Profitability Rule by Michael Harris P= W (7) Combining equations 6 and 7 yields: AvgW * P ( P) > 0 (8) Dividing equation 8 by ( is not zero unless a Holy Grail technique is involved, in which case the issue of profitability is moot because P = 00%) gives: AvgW P P >0 (9) The ratio of average winning to average losing trade, R WL, is defined as follows: R WL = AvgW R WL Minimum required profitability P (x00) 0 9.09% 5 6.67% 2 33.33% 50.00% 0.5 66.67% 0.25 80.00% 0.25 88.88% (0) Combining equations 9 and 0 and solving for P yields: R WL + () Equation is the profitability rule. It relates the minimum profitability of a trading system or investment strategy that is required to generate a net profit to the ratio of average winning to average losing trades or investments. The rule provides a simple model for profitability as a function of a single parameter. It is of extreme importance to the trading system or investment strategy development process and has several implications, some already known to trading system developers from an empirical standpoint. Figure shows the required minimum profitability of a system for various values of the R WL parameter, computed using equation. There is an inverse relationship between profitability P and the ratio R WL. As the RWL parameter increases, the minimum profitability of a trading system required in generating a net profit decreases. With respect to the value of the R WL parameter, you can draw the following conclusions: Trading systems with low R WL values must have a high profitability, which implies a much higher number of winning trades than losing trades. Trading systems with high R WL values may have a low profitability that is, they can generate lower numbers of winning trades than losing trades and still be profitable. Alternatively, you may solve equation for the minimum value of the R WL parameter that is required in order for a trading system or investment strategy to produce a certain level of profitability P. Solving equation for R WL yields: FIGURE : MIIMUM REQUIRED PROFITABILITY. Minimum required profitability is expressed as a function of the ratio of average winning to average losing trades. R WL > P P This equation may be used to determine the level of risk/reward parameters required, as expressed by the R WL parameter, given the expected profitability P of a trading system or investment strategy. PROFITABILITY AD TRADIG TIME FRAMES Short-term or intraday trading systems usually exhibit lower values for parameter R WL, as compared to trend-following systems. In practice, typical values for short-term and intraday trading systems for the R WL parameters lie within the range of 0.25 to 2, and true trend-following system values are far above 3. This is because in short-term and intraday trading systems the trading activity is based on price volatility. Specifically, as it relates to the profitability rule, it is likely that future R WL values will closely match values determined during historical testing. This is true because in shorter-term time frames, trade exit techniques result in comparable ratios of profits to losses over time (especially when using targets and stops based on fixed percentages or increments of the entry price). Therefore, if the profitability of an investment strategy is maintained above the minimum required by the profitability rule, the system will always generate a profit. The profitability rule shows you the minimum profitability that is required to generate a net profit in a trading system or investment strategy. In trend-following systems, the objective is to minimize losing trades during sideways markets and maximize winning trades during price trends. However, it is uncertain how future R WL values will compare with historical ones, since the future average winning trade size is unknown. This is because the size of future price trends is unpredictable and, at the same time, exit technique performance depends highly on volatility (such as trailing stops). If you assume that more or less the same magnitude of trends and the same or lower associated trend volatility will exist in the future, the profitability of a trend-following system based on historical testing will guarantee future profits. This assumption exemplifies the stochastic nature of the profitability rule in the case of trend-following systems, where the parameter R WL is a random variable. A practical implication of the nature of the profitability rule is that trend-following systems must have a greater historical percent profitability than the minimum required based on historical R WL values, because future R WL values may be drastically reduced by smaller trend sizes and higher
Stocks & Commodities V. 20:9 (-36): Improve Your System With The Profitability Rule by Michael Harris market volatility. This imposes additional constraints in the design of trend-following systems, which must be robust enough to account for future market conditions resulting in much lower R WL values, and in comparison a demand for investment strategies exhibiting higher than expected Thus, trend-following strategies will remain profitable for extended periods if they can maintain the minimum required profitability as determined by the minimum expected values of the R WL parameter. So does that mean trend-following systems can have lower profitability levels than short-term or intraday systems and still be profitable? This also gives a clue about the difficulties involved in designing high-profitability trendfollowing systems. THE COMMISSIO EFFECT The profitability rule presented in equation considers trading commissions implicitly by subtracting them from both the winning and losing trades. The effect of trading commissions can be considered explicitly by defining C as the round-turn commission charged per trade. Then, equation is modified to include commissions as follows: W L * C > 0 (2) The commission paid for trades is subtracted from the sum of winners, in addition to subtracting the sum of losers. Combining equations 2, 3, and 2 yields: AvgW * W * L * C > 0 (3) Combining equations 5 and 3 and dividing by yields: AvgW W W Combining equations 7 and 4 gives: C>0 (4) AvgW * P * ( P) C > 0 (5) Rearranging the terms of equation 5 yields: AvgW * P + * P > C + or C + AvgW+ (6) Dividing both the numerator and denominator of equation 6 by (again, is not zero unless a Holy Grail is involved, in which case the issue of profitability is moot, because P = 00%), and using equation 0, results in: C R WL (7) Equation 7 is the modified profitability rule that incorporates flat round-turn commissions. ote that equation 7 is identical to equation with the exception of the term C/, which is added to the numerator. To distinguish this profitability from the one derived from equation, I denote it as P C. The ratio C/ is the commission paid per trade divided by the average losing trade, a factor denoted here as C f. Then equation 7 may be written as: + C f R WL (8) with: C f = C Alternatively, equation 8 can be written as follows: or P+ R WL + C f R WL C f R WL =P+ P C The minimum required profitability including commissions (P C ) is equal to that in equation, which does not account for commissions, plus a term equal to P C, the value of which depends on the factor C f and R WL. As long as the factor C f is kept low and the parameter R WL attains a high value, the value of the term P C is kept low. Low values for the factor C f are possible as long as the commission paid per trade is low compared to the average losing trade. This may hardly affect trading strategies with high average losers, such as trend-following systems, but it may adversely affect the required minimum profitability of intraday or short-term trading systems, depending on the value of the parameter R WL. Often, traders take intraday or short-term positions based on price volatility design strategies that have low R WL values and require a high The low R WL values are the result of higher average losing trades compared with the average winning trades. This is because stop-losses are set higher than profit targets to avoid having the stops run by the market. Consider the following cases: Case : R WL = 2, commission per trade = $ (round turn) The minimum required profitability without considering commissions is determined by equation : 2+ = 0.3333 or 33.33%
Stocks & Commodities V. 20:9 (-36): Improve Your System With The Profitability Rule by Michael Harris By getting a measure of the minimum required profitability, you have an idea of the minimum success rate that must be maintained in order to be profitable. If the average losing trade is $,000, then from equation 7 000 2 =.03 3 = 0.3433 or 34.33% If the average losing trade is $, 2 =.5 = 0.3833 or 38.33% 3 Using the same series of equations, the minimum required profitability without considering commissions is: 0.25 + = 0.80 or 80% If the average losing trade is $,000, then from equation 7 000 0.5 =.03 = 0.8240 or 82.40%.25 When the average losing trade is lowered to $, then from equation 7 0.5 =.5 = 0.92 or 92%.25 In this example, the effect of commissions on the required minimum profitability does not affect its range significantly. It can still be considered a low-profitability requirement. But in case 2: Case 2: R WL = 0.5, commission per trade = $ (round turn) The minimum required profitability without considering commissions (equation ) results in: = 0.6666 or 66.66% 0.5 + If the average losing trade is $,000, then from equation 7 000 0.5 =.03 = 0.6866 or 68.66%.5 When the average losing trade is lowered to $, then from equation 7 0.5 =.5 = 0.7666 or 76.66%.5 In this case also when the average losing trade is $ the required profitability increases from 66.66% to 76.66%. Although the increase, percentage-wise, is the same as in case, keep in mind that any gain in profitability at this higher range is much more difficult to obtain than in low ranges. Therefore, many would argue that graduating from 66.66% to 76.66% is more difficult than from 33.33% to 38.33%. As a final example, in case 3: Case 3: R WL = 0.25, commission per trade = $ (round turn) In this last case when the average losing trade is $ the required profitability increases from 80% to 92%. Although the percentage increase is the same as in the other two cases, no one would deny that 92% profitability is more difficult to achieve than 80% You can determine from equation 7 that in order to minimize the commission effect on profitability you must minimize the factor C f, which for fixed commissions means maximizing the average losing trade. You need a highaverage winning trade from your system, and this is where both the difficulty and tradeoff lie. As you attempt to increase the average winners, more trades fail to meet the profit objectives and turn into losers, decreasing system THE SCALPIG GAME Scalpers intraday traders trying to profit from small price moves have a profit objective of covering commission costs and making a small profit. They also place very tight stops. It is a highly intensive trading process and requires special skills as well as an in-depth understanding of market operation. Obviously, such trading is not suitable to everyone. I will try to analyze the effect of commissions in scalping by assuming that the average losing trade and average winning trade are multiples of the commission rate C, as follows: AvgW = m * C (9) = k * C where k and m are integer numbers. Combining equations 7 and 9 gives: C kc mc kc
Stocks & Commodities V. 20:9 (-36): Improve Your System With The Profitability Rule by Michael Harris or k m k 0 C 0 C = = 0.50 or 50% 2 which further transforms to: + k m+k (20) The required minimum profitability as a function of the integers m and k (multiples, in terms of the commission rate, of the average winning and average losing trades, respectively) is presented in equation 20. In this form, neither the commission size nor the magnitude of the average losing trades is required to determine the minimum required Case : m = 2, k = 4 (the average losing trade is four times the commission and the average winning trade twice that). Applying equation 20 results in: + 4 = 0.8333 or 83.33% 2+4 From equation 2C 4C = = 0.6666 or 66.66%.5 The minimum required profitability with commissions was increased from 66.66% to 83.33%. Case 2: m = 0, k = 0 (the average losing trade and average winning trade are both 0 times the commission rate). 0 = 0.55 = 55% 0 + 0 From equation you also get: The profitability rule is useful when a trading technique cannot be put in a form suitable for backtesting, or there is no historical data on which to test it. In this case the minimum required profitability, in the presence of commissions, was increased from 50% to 55%. This is a more realistic situation than in case, and offers a higher probability of devising a technique that will meet profitability objectives. USIG THE PROFITABILITY RULE The profitability rule can be useful in understanding the limitations of various trading systems and in designing strategies with more possibility of trading success. Intraday and short-term traders can use the rule to estimate a priori the required minimum profitability based on their profit/loss objectives and commission structure. The profitability rule is useful when a trading technique cannot be put in a form suitable for backtesting, or there is no historical data on which to test it. By getting a measure of the minimum required profitability, you have an idea of the minimum success rate that must be maintained in order to be profitable. If the R WL parameter cannot be estimated in advance, as is true in the case of trend-following systems, you could use historical data analysis to determine the worst possible value for this parameter and then calculate the required minimum Understanding the fundamental tradeoffs imposed by the profitability rule may result in a more realistic approach to the system development process and expectation for trading performance. Michael Harris is president of TradingPatterns.com, which specializes in the development and sale of mechanical trading systems for futures and equities, such as Automatic Pattern Search. He is also managing director of Harrison Investments (www. harrisontrading.com), an offshore money management and hedge fund consulting firm. He has been a trader and system developer for 5 years. SUGGESTED READIG Harris, Michael []. Stock Trading Techniques Based On Price Patterns, Traders Press. [0]. Short-Term Trading With Price Patterns, Traders Press. See Traders Glossary for definition S&C