English
Back
Download
Log in to access Online Inquiry
Back to the Top
[Survey with Rewards] Share your Algo Trading experience and win up to $100 Cash Rewards
Views 29K Contents 35

Using code to close positions

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?
Disclaimer: Community is offered by Moomoo Technologies Inc. and is for educational purposes only. Read more
1
+0
1
Translate
Report
5799 Views
Comment
Sign in to post a comment
  • 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.