Set order.executed.price to always fill at specified buy/sell order price
Is there a way for orders to always execute at the price specified? I've tried using a narrow
StopLimitbut this won't always fill:
self.order = self.buy(price=self.upbound[-1], exectype=backtrader.Order.StopLimit)
Thanks in advance.
plimitprices to be defined. If these prices fall within the OHLC range, than the order will be executed at the desired price.
IIRC I've used the same price for both
plimitand orders were executed at this price.