I have tested the code to do place buy orders and backtested the code. It works on entering new buy positions. However, when I try to use liquidate these buy positions, it does not work on backtest. Is it not possible to backtest closing positions? Do I use liquidate or do I use sell orders to close these positions?
102472036 : Using liquidate or sell orders, are both okay. If you find it does not work in backtest, you can use the method in this article to identify the problems from the running logs.