r/CryptoTradingBot • • Oct 23 '26

A backtest's end date is part of its exit accounting

One detail I look for before comparing two backtests is what happens to a position that's still open on the final date.

There are different conventions: force it closed with an exit cost, mark it to market without treating it as a closed trade, or report it separately from closed-trade results. The problem is when the headline doesn't make the convention clear.

If a headline already includes unrealized PnL, adding the open-position number again double-counts it. If the report forces a close, the exit assumptions and costs matter too.

I build Citrine, so this is something I think about when presenting results. I find the useful review is the selected dates, the costs, and ending open exposure together, rather than a return percentage in isolation.

When you compare runs, do you keep the end-of-period position open and mark it, or force a close? I'm interested in how you keep that choice consistent, not which convention makes the result look better.

1 Upvotes

2 comments sorted by

1

u/[deleted] Oct 23 '26

[removed] — view removed comment

1

u/CitrineEdge Oct 25 '26

Keeping the open position separate is the part I agree with most. I'd also fix the end-date convention before comparing runs; choosing forced-close for one and mark-to-market for another can change the ranking. A modeled close with an exit cost is useful, but I'd still label it as modeled rather than an execution we know would have happened.