Menu

Before costs vs after costs: why we double the trading cost in every test
📰

Before costs vs after costs: why we double the trading cost in every test

DEV Community: datascience·Quantooox·9 days ago
#kkDWlcTG
#devtodatascience#science#devto#dev#costs
Reading 0:00
15s threshold

A strategy that looks good before costs can look bad after them. The gap is usually turnover : how much of the portfolio changes at each rebalance.

How costs add up

Every trade pays something:

Commission: often zero now for retail, not zero for everyone.

Spread: the gap between the price to get in and the price to get out.

Slippage: the price moving while you trade, more for bigger orders.

A model that replaces half its stocks every month pays these on half the portfolio, twelve times a year.

What we charge

5 basis points (0.05%) per trade , on every stock that changes.

Then the same test with double the cost (10 bp) .

The doubled-cost test is a stress test. Our cost estimate could be optimistic, and real costs rise in stressed markets. A result that only survives at exactly 5 bp is fragile.

def net_result ( gross , weights_prev , weights_new , bp = 5 ): turnover = ( weights_new - weights_prev ). abs ().…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.