The backtest result window consider all orders including the ones currently opened at the end date, so that’s not possible to exclude them programmatically sorry.
If you put a ‘dummy variable’ in the optimiser, results in the Optimiser Results Table will be for finished trades only.
Great stuff !
… But not for Walk Forward … which I deem a large PRT bug because now all “snapshots” will mostly end in a loss (this depends a bit in the strategy).
Or maybe I miss the trick to do that right ?