Hi,

Is it a good idea or generally a good practice to liquidate all positions on the last day of the backtest?

What's the best way of doing that? Calling Liquidate(null, tag) in OnEndOfAlgorithm() doesn't seem to work, probably because it's too late in the pipeline.

Cheers!