# How do margin calls affect leveraged backtests? Slug: how-do-margin-calls-affect-leveraged-backtests. Canonical: https://tradingtune.com/blog/how-do-margin-calls-affect-leveraged-backtests ## Summary Margin calls can force exits in leveraged backtests, changing the simulated trade and potentially affecting later positions. ## Key facts - A margin call can reduce or close a simulated position before the strategy reaches its planned exit. - The effect can carry into later trades when their size depends on the equity left after a forced exit. - A backtest's margin rules describe a simulation and do not necessarily match the terms of a real account. - Compare runs with consistent assumptions and inspect the trades around each forced exit before interpreting the difference. ## Outline - What changes when a margin call occurs in a backtest? (#what-changes-when-a-margin-call-occurs-in-a-backtest) - Why can equity fall below the margin requirement? (#why-can-equity-fall-below-the-margin-requirement) - What does the TradingView model record? (#what-does-the-tradingview-model-record) - Which assumptions belong in the test record? (#which-assumptions-belong-in-the-test-record) - How can a forced exit change later trades? (#how-can-a-forced-exit-change-later-trades) - How can you compare parameter combinations by hand? (#how-can-you-compare-parameter-combinations-by-hand) - What comparison can isolate the effect of margin? (#what-comparison-can-isolate-the-effect-of-margin) - Why might the modeled event differ from a real margin call? (#why-might-the-modeled-event-differ-from-a-real-margin-call) - How can you inspect an event without overreading it? (#how-can-you-inspect-an-event-without-overreading-it) - What belongs in a margin-aware backtest summary? (#what-belongs-in-a-margin-aware-backtest-summary) - Sources (#sources)