A backtest is for simulating real trading. In real trading, two systems connected to a real broker will normally get different results due to slippage. If you want identical results in a backtest for some reason, you need to set up order filling with no slippage.

In a TMF of an open trade, the exit price is the current price at the time when the TMF was run.