The idea is to buy, exit with profit or stop loss target, wait and hour and start over again.

From the log it seems:

  1. The stop order never logged (although they have been filled)
  2. Repeating buy orders on 2020-01-29 and 2020-02-26 even I used hourly data and set if not self.Portfolio[self.symbol].Invested to prevent repeating
  3. There are Order Error: id: 88, Insufficient buying power to complete order. Are these the result of repeating orders?

 

Thanks

Ruming

Author