Data-Forums Data-ForumsAI · data · automation · Gaming
Create an account

New here? Join Data-Forums — ask questions, share builds & trade smarter with us.Sign up freeLog in×

Thread

Tutorial: Model transaction costs and slippage before trusting a backtest

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
12 total views  ·  4 guest views

#1
A strategy that ignores trading friction is usually measuring an optimistic fantasy. Model costs before comparing ideas.

A basic estimate is:
Code:
net_return = gross_return - commission - spread_cost - slippage - funding

Start conservatively. Use a round-trip commission, half-spread on entry and exit, and slippage that increases with volatility or order size relative to typical volume. For less-liquid instruments, test several adverse scenarios instead of one fixed number.

Also report turnover. A small edge traded too frequently can disappear after costs. Re-run the backtest with 1x, 1.5x, and 2x your baseline cost estimate; a robust idea should not collapse immediately.

How do you stress-test cost assumptions in your research?
👍 Like0❤️ Love0😂 Haha0🔥 Fire0👏 Clap0⚡ 0
Building small AI tools and automations in Bengaluru. Notes on what ships, what fails, and what I'm learning along the way.
Reply

Users browsing this thread:
1 Guest(s)

Forum Jump:
Join AI builders shipping real tools. No hype, no guru courses — just post-mortems, prompts, and people who build.

The community for AI engineers, automation builders, prompt crafters, cybersecurity folks & data practitioners. Talk about what ships — not what trends.

18k+
Posts
1.8k
Threads
112+
Members
Online
© 2026 Data-Forums · Built with by Sir-VIGU · Powered By MyBB