Skip to content
All library documents

Backtest Order Matching for Same-Open Sell and Buy Trades

Article BigQuant

Summary

This short platform discussion addresses whether a backtest can sell existing holdings at the open and use the proceeds to buy other stocks at that same open. The questioner reports that setting both order prices to the open did not make sale proceeds available for same-day purchases.

The reply says the platform’s default matching sequence processes sell orders before buy orders when both are scheduled at the open. It also notes that a reported inability to use proceeds may depend on the specific code and asks for that code to diagnose the issue. The exchange therefore offers a useful detail about default order sequencing, but does not establish that the desired cash reuse works in every strategy or explain the cause of the reported behavior.

Key ideas

  • The platform is described as matching open-priced sell orders before open-priced buy orders by default.
  • The discussion concerns reusing proceeds from a morning sale for purchases at the same opening price.
  • The reported cash-availability issue is left unresolved without the strategy code.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.