Artificial Intelligence, Sentiment Analysis, Finance, Stock Market, Python.
sell three days (bars) after buying: if len(self) >= (self.bar_executed + self.params.exitbars): self.log('SELL CREATE, %.2f' % self.dataclose[0]) # Keep track of the created order to avoid a 2nd order self.order = self.sell(size=1000) Running the Backtest… Now that the strategy class has been