The hidden costs: spread, slippage and the fill you did not expect

There is a number on your chart, and there is the number you actually trade at, and they are not the same. The gap between them is where a surprising amount of retail edge quietly disappears. Spread, slippage and imperfect fills rarely feel dramatic on any single trade, but compounded across hundreds of them, they are often the difference between a strategy that works on paper and one that works in an account.
[01]Spread is the toll you pay to enter
Every instrument has a bid and an ask, and the distance between them is the spread, the built-in cost of crossing from one side of the market to the other. Buy at the ask, sell at the bid, and you start every trade fractionally underwater. On a liquid major during an active session the toll is small; on a thin instrument or in a quiet hour it widens, sometimes sharply. A strategy that trades often is paying this toll constantly, and a backtest that ignores it is quietly optimistic.
[02]Slippage is the price of moving now
Slippage is the difference between the price you asked for and the price you got. It shows up most when you demand immediacy in a fast or thin market: your order arrives, the level you wanted is already gone, and you fill a little worse. It is not a malfunction, it is the market repricing between your decision and your execution. It can occasionally go in your favour, but you should plan around the version that does not.
[03]Why this matters more for automation
An automated system can fire far more trades than a human, which means these frictions scale with it. A strategy with a genuine but slim edge can be perfectly profitable in theory and net-negative once realistic costs are applied. That is exactly why honest backtesting insists on modelling spread, commission and slippage rather than pretending fills happen at the mid-price. The costs are not a footnote; they are part of the strategy.
[04]Designing around the friction
You cannot eliminate these costs, but you can respect them. Favour liquid instruments and active sessions where spreads are tight; be wary of strategies whose edge is smaller than the round-trip cost of trading them; and remember that wider stops and larger targets are less sensitive to a few points of slippage than hair-trigger scalps. A good trade setup budgets for friction the way a good driver budgets for stopping distance.
This is educational and illustrative, not financial advice. Trading costs vary by broker, instrument and conditions; understand yours, model them honestly, and never assume the fill will match the chart.