How to calculate day trade commission and put it in a backtest
Day trade commission is charged per side as trade value × broker rate × discount, with a minimum fee as a floor. A day trade pays it twice plus the transaction tax, so the number a backtest needs is the full round-trip cost with slippage, entered before the first run and compared with the gross average trade.
By Soren Huang · Published · updated · Editorial policy
Contents
How is day trade commission calculated?
Day trade commission (當沖手續費) is calculated per side: trade value × the broker's rate × your discount, with a minimum fee as a floor. A day trade pays that twice, once to buy and once to sell, plus the transaction tax on the sell. Add one tick of slippage per side and enter that round-trip sum in the backtest.
A day trade is a position opened and closed in the same session. Commission is the fee the broker charges for handling one order, so a day trade pays it on the entry and again on the exit. The one formula in this article is the per-side commission:
one-side commission = trade value × broker rate × discount, but never less than the minimum fee
Here trade value is price × number of shares (for futures, the contract value is the index level × the point value × contracts), the broker rate is the standard percentage the broker starts from, and the discount is the fraction of that rate you actually pay. For Taiwan stocks the standard rate is 0.1425% of trade value per side; brokers discount from this ceiling. The round-trip cost is the sum of both commissions plus the tax. Tax on Taiwan stocks is charged only on the sell, and the day trade rate is explained in Taiwan cash day trading: rules, costs and backtests. Exchanges and tax authorities can change these values, so confirm them on the exchange's and the regulator's pages before you set a backtest.
Hypothetical example
You buy 1,000 shares at NT$100 and sell them at NT$100 the same day. Trade value is NT$100,000 on each side. Full-rate commission would be NT$100,000 × 0.1425% = NT$142.5 per side. At 60 percent of the standard rate (6折) it is NT$85.5 per side, so NT$171 for the two sides. The day trade transaction tax on the sell, at 0.15% of NT$100,000, is NT$150 (the halved day trade rate under Article 2-2 of the Securities Transaction Tax Act, in force until 31 December 2027; trades before 28 April 2017 and sells that are not day trades pay the normal 0.3%). Round-trip cost: NT$171 + NT$150 = NT$321, or about 0.32% of the trade value. The strategy has to earn more than that per round trip before it has earned anything.
How do discounts and minimum fees change the cost?
A discount lowers the percentage, but a per-order minimum fee puts a floor under it, so small orders pay a much higher effective rate than the headline discount suggests. The effective rate is the commission you actually paid divided by the trade value. For a large order the effective rate equals the discounted rate. For a small order the minimum fee takes over, and the effective rate rises as the order gets smaller.
Think of a taxi with a minimum fare: a two-minute ride costs the minimum, not two minutes of the meter rate. The crossover point is the order value at which the percentage commission exactly equals the minimum fee. Below it, every order pays the minimum.
Hypothetical example
Broker rate 0.1425%, discount 28 percent of the standard rate (2.8折), so the discounted rate is about 0.0399%. Minimum fee NT$20 per order. The crossover is NT$20 ÷ 0.0399% ≈ NT$50,000: orders above that pay the percentage, orders below pay NT$20. A NT$10,000 order pays NT$20, which is 0.2% of its value, five times the discounted rate. A NT$200,000 order pays about NT$80, which is the discounted 0.04%.
Two consequences follow for a backtest. First, a strategy tested on odd lots or small positions must use the minimum fee, not the discounted percentage, or it will undercount its costs. Second, a strategy that scales out in several small exits pays the minimum on each exit, so three partial exits can cost more than one full exit. Enter the fee the way the broker charges it: percentage with a floor, per order.
What does a round trip cost on stocks versus futures?
A stock day trade pays two percentage commissions plus a tax on the sell value, while a futures day trade pays a fixed fee per contract per side plus a small tax on contract value, so the two must be converted into the same unit, money per round trip, before either can be compared with a strategy's results. The percentages look very different; the money per round trip is what the account pays.
For Taiwan stock index futures, the futures transaction tax is 0.002% of contract value, charged on both the buy and the sell. The broker's commission is a fixed amount per contract per side and is agreed with the broker, not set by the exchange. Contract value is the index level × the point value, which for Mini-TAIEX is NT$50 per index point (TAIFEX contract page); the futures contract calculator turns a point move into money for TAIEX and other contracts. Typical per-contract fees and the futures transaction tax are both worked through in Mini-TAIEX fees per contract.
| Cost item | Taiwan stock day trade | Taiwan index futures day trade |
|---|---|---|
| Commission unit | Percentage of trade value, per side, with a minimum per order | Fixed NT$ per contract, per side |
| Transaction tax | On the sell only, as a percentage of sell value | On both sides, 0.002% of contract value |
| Slippage unit | NT$ per share × shares, per side | Ticks × tick value × contracts, per side |
| Round-trip cost | Commission × 2 + tax + slippage × 2 | Commission × 2 + tax × 2 + slippage × 2 |
Hypothetical example
Stock: the NT$100,000 trade from the first example: commission NT$85.5 × 2 = NT$171, day trade tax NT$150, slippage assumed at one tick per side (NT$0.5 per share at a NT$100 price) × 1,000 shares × 2 sides = NT$1,000. Round trip: NT$1,321.
Futures: one Mini-TAIEX contract with the index at 20,000, so contract value NT$1,000,000. Commission assumed at NT$25 per side = NT$50. Tax 0.002% × NT$1,000,000 × 2 sides = NT$40. Slippage one tick (one index point, NT$50) per side = NT$100. Round trip: NT$190.
Both numbers are now in NT$ per round trip and can be set against each strategy's gross average trade.
Is your average trade bigger than the round-trip cost?
Divide the gross average trade by the round-trip cost; a strategy whose gross edge per trade is only a little above its cost loses money once slippage is added, and strategies that trade most often fail this test first. The gross average trade is the net profit before costs divided by the number of trades. The round-trip cost is the number from the previous section. The ratio tells you how much room the strategy has before a slightly worse fill wipes it out.
Frequent strategies have the least room because each trade captures a small move and pays the same fixed fees as a large one. A rule of thumb many systematic traders use is that the gross average trade should be several times the round-trip cost; the exact multiple is a judgment that depends on how sure you are of your slippage estimate. The general case is covered in trading costs in backtests and the average trade, and the special case of very short holds in ES emini scalping: does it survive costs in a backtest. To see how much of a strategy's edge survives, put its win rate and average win and loss into the win rate and expectancy calculator.
Hypothetical example
Three strategies on one Mini-TAIEX contract, round-trip cost NT$190 with one tick of slippage per side and NT$290 with two ticks.
Strategy A trades ten times a day, gross average trade NT$250: net NT$60 at one tick, net −NT$40 at two ticks. Ratio 1.3.
Strategy B trades once a day, gross average trade NT$600: net NT$410 and NT$310. Ratio 3.2.
Strategy C holds for days, gross average trade NT$2,000: net NT$1,810 and NT$1,710. Ratio 10.5.
Strategy A looked best before costs because it had the most trades; it is the one that cannot afford a bad fill.
How do you enter the fees in a backtest?
Enter commission per side, the tax on the correct side, and at least one tick of slippage per side before the first run, with next-bar execution, then rerun with doubled slippage to see how much of the result depends on cheap fills. Costs entered after the search are too late: a ranking made without costs favours the strategies with the most small trades, which are exactly the ones costs remove. Pardo (2008) treats realistic commission and slippage as part of the evaluation itself, not a correction applied afterwards.
- Set commission per side in the backtest's unit. For futures, NT$ per contract per side. For stocks, the discounted percentage with the minimum fee as a floor, per order.
- Add the transaction tax on the correct side. Stocks: the day trade rate on the sell only. Index futures: 0.002% of contract value on both sides. If the backtest has one cost field, add the tax into it as money per side.
- Set at least one tick of slippage per side. Slippage measures the gap between the price a backtest assumes and the fill a real order would receive. Use more than one tick for entries at the open or around news.
- Confirm next-bar execution. Next-bar execution means a signal computed on a bar's close is filled at the next bar, not at the close it was computed from, because that close was not available to trade.
- Rerun with doubled slippage. Compare the two net average trades. A strategy whose net result falls by more than half, or turns negative, was depending on cheap fills.
When these five settings are in place, every candidate in a search pays the same realistic costs, and the order of the results list changes: strategies that captured a large move per trade rise, and strategies that only captured noise fall away. In MultiAlphas (Valynox), the fees, slippage and next-bar fills set in backtesting are charged inside each candidate's evaluation during the search, so the list you read the first time is already net of the round-trip cost you entered. The time a search takes depends on the processor or graphics card, the data length and the research settings.
A concrete next step: take the strategy you trust most, compute its round-trip cost in money with the numbers your broker actually charges you, divide its gross average trade by that cost, and write the ratio down. Then run it once more with two ticks of slippage per side and see whether the ratio you wrote still holds.
Frequently asked questions
How is stock day trade commission calculated in Taiwan?
Each side is trade value × the standard rate of 0.1425% × your broker's discount, with a per-order minimum fee as a floor. A day trade pays this on the buy and again on the sell. The securities transaction tax is added on the sell only, at the day trade rate. The full cost of one day trade is the two commissions plus the tax plus slippage on each side.
Is the day trade tax charged on both the buy and the sell?
For Taiwan stocks the securities transaction tax is charged only when you sell, including a sell-first day trade. For Taiwan index futures the futures transaction tax is charged on both the buy and the sell, as a percentage of contract value. Enter each one on the side the law actually charges, or the round-trip cost will be wrong.
Why does a minimum fee matter if my discount is large?
Because the minimum fee overrides the discount on small orders. If the discounted percentage of an order's value is less than the minimum, you pay the minimum, and the effective rate rises as the order gets smaller. The order value where the two are equal is the crossover point; below it, every order costs the minimum.
How much slippage should a day trading backtest assume?
Start with at least one tick per side for liquid futures with market or stop orders, and more for entries at the open or around news. Then rerun with double that slippage. If the net average trade falls by more than half or turns negative, the strategy was relying on fills it may not get.
Should I add costs before or after a strategy search?
Before. A ranking made without costs favours strategies with many small trades, which are the ones costs eliminate, so costs added afterwards discard most of the finalists and the search time is wasted. Enter commission, tax and slippage in the settings before the first run so the ranking is already net of costs.
References
- Pardo, R. (2008). The Evaluation and Optimization of Trading Strategies (2nd ed.). John Wiley & Sons.
- Taiwan Futures Exchange. Mini-TAIEX Futures. https://www.taifex.com.tw/enl/eng2/mTX