How many TAIEX futures contracts? Size from backtest drawdown
Divide the loss you can accept from your account by the backtest's maximum drawdown for one contract, widened by about 1.5 to 2 times, and trade that many whole contracts. Margin is a deposit the exchange asks for, not a measure of what the strategy can lose, so it plays no part in the count.
By Soren Huang · Published · updated · Editorial policy
Contents
- How many TAIEX futures contracts should you trade?
- What is one index point worth on TX, MTX and TMF?
- How do you turn a backtest drawdown into dollars per contract?
- Why is margin not the same as your risk?
- How do you scale up with Mini-TAIEX and Micro-TAIEX contracts?
- Why is the backtest drawdown not a ceiling?
- Frequently asked questions
- References
How many TAIEX futures contracts should you trade?
How many TAIEX futures contracts to trade: divide the loss you can accept from your account by the backtest's maximum drawdown for one contract, widened by about 1.5 to 2 times, and trade that many whole contracts. Margin plays no part in the answer. Margin is a deposit, not a measure of how much the strategy can lose.
Think of a ferry. The captain does not count passengers by the price of a ticket; he counts them by the worst wave the boat must survive with everyone on board. Margin is the ticket. The strategy's drawdown is the wave. The 台指期口數 question is a question about the wave. The free position size calculator does this division for a single trade with a fixed stop; the method below does the same with the strategy's whole losing run, because a systematic strategy loses in runs of trades, not one trade at a time.
contracts = (account × accepted loss share) ÷ (maximum drawdown per contract × safety factor)
Here account is the money in the futures account, the accepted loss share is the fraction of it you can lose and keep trading (many traders use 20 to 30 percent), the maximum drawdown per contract is the largest fall from an equity peak to the next low in the backtest, in dollars, for one contract after costs, and the safety factor is the widening of that drawdown, usually 1.5 to 2, because the future can be worse than the past. Round the result down to a whole number. The general version of this rule for any market is in max drawdown position sizing: how many contracts fit your limit.
What is one index point worth on TX, MTX and TMF?
TX, Mini-TAIEX (MTX) and Micro-TAIEX (TMF) follow the same index, but one point is worth a different amount on each, so the same backtest drawdown in points means a different dollar loss per contract. Point value is the money one contract gains or loses when the index moves one point. For the three TAIEX contracts the values are:
| Contract | TX (TAIEX futures) | MTX (Mini-TAIEX) | TMF (Micro-TAIEX) |
|---|---|---|---|
| Value of one index point | NT$200 | NT$50 | NT$10 |
| Size relative to TX | 1 | 1/4 | 1/20 |
| Contracts equal to one TX | 1 | 4 | 20 |
The exchange can change contract values, so confirm them on the TAIFEX contract specification page before you size a position. The tick sizes, point values and other settings a backtest needs are listed in TAIEX futures specs: TX, MTX and TMF point values and settings.
Hypothetical example
Suppose a strategy's worst losing run is 500 index points for one contract. On TX that run costs NT$100,000. On MTX it costs NT$25,000. On TMF it costs NT$5,000. The rule and the trades are the same; only the contract changes. A trader with a small account can run the same strategy on TMF and keep the loss inside a limit that TX would break many times over.
How do you turn a backtest drawdown into dollars per contract?
Multiply the maximum drawdown in index points by the point value of the contract you will trade, then add round-trip costs for the trades inside that drawdown, and you have the loss one contract would have produced. Maximum drawdown is the largest fall in the equity curve from a peak to the following low before a new peak is reached. Most reports show it for one contract, so the four steps are:
- Read the maximum drawdown in points from the backtest report, for one contract.
- Multiply by the point value of the contract you will actually trade: NT$200, NT$50 or NT$10.
- Add round-trip costs for the trades that happened inside the drawdown: commission, exchange fee, transaction tax and slippage on entry and exit. If the backtest already charged these costs, this step is done and you only check that the cost settings were realistic.
- Write down the dollar drawdown per contract. This is the number the sizing formula divides by, before the safety factor.
Hypothetical example
A strategy on Mini-TAIEX 15-minute bars shows a maximum drawdown of 1,000 points per contract in a backtest run without costs. Step 2: 1,000 × NT$50 = NT$50,000. Step 3: the drawdown contained 40 round trips at NT$150 each (fees, tax and one tick of slippage on each side), so costs add NT$6,000. Step 4: the dollar drawdown is NT$56,000 per MTX contract. The same run on Micro-TAIEX gives 1,000 × NT$10 = NT$10,000, plus 40 round trips at NT$30 = NT$1,200, so NT$11,200 per TMF contract.
Step 3 matters more than it looks, because a drawdown is made of many small losing trades, and each one paid to get in and out. What the per-contract fees and tax on Mini-TAIEX look like, and how to set them in a backtest, is covered in Mini-TAIEX fees per contract and backtest costs. In MultiAlphas (Valynox) the drawdown you read from the Performance Report is already after the fees and slippage charged in every evaluation, so step 3 becomes a check that those cost settings matched your broker.
Why is margin not the same as your risk?
Margin is the deposit the exchange requires to hold a position, while risk is the drawdown the strategy can produce, and a backtest drawdown is often larger than the margin, so an account sized by margin alone can be wiped out by a normal losing run. The exchange sets margin from recent price swings over a day or two, because its only concern is that you can cover one day's move. Your strategy's losing run can last weeks.
A deposit on a rented car is the same kind of number. It covers the dent the rental company expects, not the cost of driving the car for a year. Traders who ask "how many contracts can my margin afford?" are asking the wrong question, because the answer tells them the largest position the exchange will allow, not the largest position their strategy can survive. The current per-contract margin is shown by the free TAIEX futures margin calculator; use it to check that the account can hold the position, never to decide how large the position should be. What happens when the account falls below the maintenance level is described in Margin trading explained: leverage, margin calls and backtest risk.
Hypothetical example
Suppose the margin for one MTX contract is NT$40,000 and the strategy's dollar drawdown after costs is NT$56,000 per contract. A trader who deposits NT$40,000 and trades one contract has an account that is smaller than a losing run the strategy has already produced once. The exchange would close the position part way through that run, when the account dropped below the maintenance level, and the trader would never see the recovery that follows in the backtest. By the sizing formula, with a 20 percent loss limit and a safety factor of 1.5, that one contract needs an account of NT$420,000, more than ten times the margin.
How do you scale up with Mini-TAIEX and Micro-TAIEX contracts?
Start with the smallest contract that keeps the widened drawdown inside your loss limit, and add a contract only when the account has grown by one more per-contract step, so each step keeps the same risk per unit of account. The small contracts exist for this. Four MTX equal one TX and twenty TMF equal one TX, so an account that cannot carry one TX can still trade the same rule at a size that fits.
The step size is the account needed per contract: the widened per-contract drawdown divided by the accepted loss share. Each time the account passes the next multiple of that number, add one contract; each time it falls below, remove one. This is a staircase, not a ramp. The 小台微台口數 question then answers itself from the account balance.
- Compute the account needed per contract for TMF and for MTX: widened drawdown ÷ accepted loss share.
- Divide the account by that number and round down. If the MTX count is zero, trade TMF.
- Write the thresholds down for 1, 2, 3 and 4 contracts before you trade, so adding a contract is a rule and not a mood.
- Switch five TMF for one MTX when the TMF count reaches a multiple of five and your broker's fees per point are lower on the larger contract.
Hypothetical example
Using the drawdowns from the earlier example, a safety factor of 1.5 and a 20 percent loss limit: one TMF contract needs NT$11,200 × 1.5 ÷ 0.2 = NT$84,000 of account, and one MTX contract needs NT$56,000 × 1.5 ÷ 0.2 = NT$420,000. The TMF thresholds are NT$84,000 for one contract, NT$168,000 for two, NT$252,000 for three and NT$336,000 for four. An account of NT$600,000 holds seven TMF, or one MTX with the remainder unused. The second MTX arrives at NT$840,000.
A common mistake is to add the second contract after a good month rather than after the account crosses the threshold. A good month and a crossed threshold are not the same thing: the first is a feeling, the second is the number the formula gave you before the month started.
Why is the backtest drawdown not a ceiling?
The past worst drawdown is one sample of what the strategy can do, and a reordering of the same trades or a longer future usually produces a deeper one, so size for at least one and a half to two times the backtest figure and recheck the number after every validation run. The backtest shows the trades in the one order history happened to deal them. Shuffle the same cards and deal again, and a different number of losing trades land next to each other.
Trade reordering is a test that takes the list of trade results from a backtest, puts them in a random order many times, and records the maximum drawdown of each new order. Because the trades are the same, the total profit is the same in every reordering; only the drawdown changes. The original backtest usually sits somewhere in the middle of the range, with a long tail of deeper drawdowns to its right. Magdon-Ismail and Atiya (2004) show the same thing from the mathematics: the expected maximum drawdown grows with the length of the record, so a longer future is likely to contain a deeper low than a shorter past. The safety factor in the sizing formula is the plain-language version of this result. Paste the trade list into the free Monte Carlo drawdown simulator to see the range for your own strategy, and size for the deep end of it rather than for the single line the backtest drew.
Two more reasons the backtest figure is not a ceiling. First, a strategy that was kept from a large search was kept partly because its drawdown looked good, so the drawdown it will show on new data is usually worse than the one that won the search. Second, every validation run, walk-forward window or new year of data is a chance for a deeper low to appear. When it does, the per-contract drawdown in the formula rises, the account needed per contract rises with it, and the contract count may fall by one.
The next step is a single calculation on your own strategy: take the maximum drawdown per contract from your latest backtest report, run its trade list through the Monte Carlo drawdown simulator, read off the drawdown that about 95 percent of reorderings stay inside, and put that number, not the backtest line, into the formula in the first section.
Frequently asked questions
How much money do you need for one TAIEX futures contract?
More than the margin. The margin is the deposit the exchange requires; the money you need is the strategy's widened maximum drawdown per contract divided by the share of the account you can accept losing. With a 20 percent loss limit and a safety factor of 1.5, one contract needs an account of about 7.5 times its backtested dollar drawdown. For a small account, the Micro-TAIEX contract at NT$10 per point is the one most likely to fit.
Can I decide 台指期口數 from the margin alone?
No. Margin tells you the largest position the exchange will let you hold, not the largest position your strategy can survive. A backtested drawdown for one contract is often larger than the margin for that contract, so an account sized by margin runs out part way through a normal losing run. Use margin only to confirm the account can hold the position the drawdown formula gave you.
How many Mini-TAIEX or Micro-TAIEX contracts equal one TX?
Four MTX contracts equal one TX, and twenty TMF contracts equal one TX, because the point values are NT$200, NT$50 and NT$10. Five TMF equal one MTX. The exchange can change these values, so check the TAIFEX contract specification page before sizing.
What safety factor should I apply to a backtest drawdown?
Between 1.5 and 2 is a common range. Reordering the same trades usually produces drawdowns deeper than the backtest, a longer record tends to contain a deeper low, and a strategy kept from a large search carries a flattering drawdown. Run the trade list through a Monte Carlo drawdown simulator and read the depth that most reorderings stay inside; if that depth is more than twice the backtest figure, use it instead of the factor.
When should I add a second contract?
When the account crosses the next threshold you wrote down before trading: the account needed per contract times two. The threshold is the widened per-contract drawdown divided by your accepted loss share. Adding a contract after a good month, before the threshold is crossed, raises the risk per unit of account above the level you chose.
References
- Taiwan Futures Exchange. Mini-TAIEX Futures. https://www.taifex.com.tw/enl/eng2/mTX
- Magdon-Ismail, M., & Atiya, A. F. (2004). Maximum Drawdown. Risk, 17(10), 99–102.
- Bailey, D. H., Borwein, J., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance. Notices of the American Mathematical Society, 61(5), 458–471.