bvkin / trade_bot

Bot to automatically manage a stock portfolio
1 stars 0 forks source link

Set stop loss on buy orders #2

Closed bvkin closed 1 year ago

bvkin commented 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.