Closed bvkin closed 1 year ago
The bot should use stop prices in order to minimize losses if the market makes a big swing.
The alpaca api supports this. Example.
For starters we can set the stop loss at 10% and adjust later if needed.
The buy stock test case should be updated appropriately.
The bot should use stop prices in order to minimize losses if the market makes a big swing.
The alpaca api supports this. Example.
For starters we can set the stop loss at 10% and adjust later if needed.
The buy stock test case should be updated appropriately.