Does bracket orders check the low price but execute at close prices?
I have a doubt in regards to how backtrader operates bracket orders (and perhaps limit and stop orders too). For instance, in a long position, the upper bracket will check if the low price of the current bar is greater than or equal to the value and then close the position at close price for that bar. Is this the way backtrader works?
The bracket orders operates according to the execution type you set.
In any case you may want to reformulate your question because for example:
the upper bracket will check if the low price of the current bar is greater than or equal to the value
Mixing "price" and "value" makes no sense.
In any case the bracket orders are not intelligent entities making decisions. They are orders inserted in the broker which tries to execute them if the current set of prices meet the criteria of the order.
@backtrader Thanks for your response. I apologize for not making a clear question. But the link you provide solve my doubts about how backtrader executes orders. Very interesting mechanism.