Make Backtest sell at end of test period
Currently Backtest does not sell at end of test period - always uses current day close price info for the end date - not next day's open, if checked. Also, does not account for the broker charge on the final sell of the stock.
19
votes
Jim Neher
shared this idea
-
Ken Reso commented
Work-around is to run to the next-to-last day, issue a "Close All", then run to the last day, removing pending new positions. This method includes the commission, at the Open Price on the end date (one day earlier than VV6 online).
I do this, if I want the final holdings into the trade history. It's only a test, an approximation. Though, the work around is a bit cumbersome.