For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Order Created Not Executed
-
Hi there,
I am new to backtrader and still learning.
In my code, I submitted the order but it never got executed and I am not sure why.
The order is only valid for the day session. The data feed is dailyself.order = self.buy(exectype=bt.Order.Limit, price=self.strategy.entry, valid=bt.Order.DAY)
Output
2021-04-01, BUY CREATE, 71.37
2021-04-05, Close, 72.04It should have executed as the ticker has Open (70.41), High (71.59), Low (69.28)
Any advice?