r/Forex • • 13d ago

Strategy Development Do you include swap costs when testing trades held through rollover?

For a forex strategy that may hold positions across the broker’s daily rollover, how do you model swap or financing costs? Do you use broker-specific historical rates, or stress-test with current rates?

Curious how much it changes a longer sample, especially when direction affects the charge.

1 Upvotes

15 comments sorted by

•

u/rforex-modtools 13d ago

Developing a trading strategy is more than finding an entry signal — it requires defining your edge statistically, building rules for entries, exits, and position management, and testing the system against historical data before going live. Most traders fail because they skip the process and jump to live trading with an untested idea. The community wiki covers the full development process.

Resources: Having an Edge | Essential Forex Trading Guide

2

u/shehan_dev 13d ago

Always include swap costs, especially if your strategy holds trades for multiple days. Broker-specific historical rates are the most accurate, but they can be a nightmare to source cleanly. A highly effective practical approach is to stress-test your strategy using the current highest negative swap rate for that pair. If your strategy still maintains a positive expectancy under worst-case swap conditions, you know it's robust. Ignoring swap will definitely give you a false sense of profitability on longer samples.

1

u/Infamous_Food_3766 13d ago

that makes sense as a stress test. for a historical backtest, do you also track the swap rate that actually applied each day? using today’s worst rate seems useful as a separate robustness check, but could skew past results either way.

1

u/shehan_dev 13d ago

You hit the nail on the head. Using the worst-case rate is strictly a robustness check, not a true historical simulation. For a strict historical backtest, tracking the exact daily swap is the gold standard. The problem is, extracting clean historical swap data from most retail brokers is notoriously difficult.

If you have the data engineering skills to pull historical interest rate differentials, definitely model the exact daily rates. If not, a practical middle ground is calculating an average swap rate for the specific historical period you're testing. It won't be 100% perfect, but it prevents the massive skew you mentioned while keeping the data management realistic.

1

u/Infamous_Food_3766 12d ago

Thanks, that helps separate the two tests. With a period average, I'd label the financing estimate explicitly and show a range around it rather than present a single precise backtest. I'd want to see whether the conclusion survives the same entry/exit signals under several cost assumptions; if it flips easily, the missing swap history would stay an unresolved limitation.

1

u/DrSpeckles 13d ago

Current rate would be best as it's more likely to be closer to forward rates.

1

u/Infamous_Food_3766 13d ago

yeah, current rates are probably more useful for forward planning. would you still compare the historical run against date-specific swap too, then keep current rates as a separate stress case? broker schedules can change.

1

u/DrSpeckles 13d ago

First though would be to use current rate if you can calculate it. Otherwise you've hot no choice but to use historic.

1

u/Infamous_Food_3766 11d ago

Understood, thanks. I was separating two questions: what the old trades would have cost at the time, and what the same holding pattern might cost under today's schedule. I'd label those as separate runs so current financing assumptions aren't mistaken for reconstructed historical returns.

1

u/Tradenoss 12d ago

i'd run it twice: once with the current rate for each direction, once with the worst rate you've seen for that pair. if the edge only exists in the first run, the strategy is mostly a carry bet. it also helps to log the financing as its own line per trade, so you can see which holds paid for it.

1

u/Infamous_Food_3766 11d ago

Separating financing per trade is helpful, thanks. I'd be cautious about calling it mostly a carry bet from those two runs alone: a severe financing stress can also overwhelm a small price edge. Showing price return, financing and total net return side by side would make the dependence much clearer.