# How do overnight gaps affect stop-loss fills in a backtest? Slug: how-do-overnight-gaps-affect-stop-loss-fills-in-a-backtest. Canonical: https://tradingtune.com/blog/how-do-overnight-gaps-affect-stop-loss-fills-in-a-backtest ## Summary An overnight gap can carry price past a stop, so a backtest may fill at the next opening price instead of the stop level. ## Key facts - A stop level is a trigger, not a fixed exit price. - Check whether the stop was active before the gap and compare its level with the next opening price. - Session settings, chart data and fill assumptions affect how a backtest represents gaps. - A simulated opening-price fill does not establish the price available in live trading. ## Outline - What happens when price gaps past a stop? (#what-happens-when-price-gaps-past-a-stop) - Does the same issue apply to a short position? (#does-the-same-issue-apply-to-a-short-position) - Is a stop price the same as an exit price? (#is-a-stop-price-the-same-as-an-exit-price) - How can you identify a gap-related exit? (#how-can-you-identify-a-gap-related-exit) - Why do sessions and chart data matter? (#why-do-sessions-and-chart-data-matter) - Can more detailed bars remove the uncertainty? (#can-more-detailed-bars-remove-the-uncertainty) - Where does slippage fit into the comparison? (#where-does-slippage-fit-into-the-comparison) - How can you compare stop settings by hand? (#how-can-you-compare-stop-settings-by-hand) - What should you record when comparing runs? (#what-should-you-record-when-comparing-runs) - What can this check establish? (#what-can-this-check-establish) - Sources (#sources)