Cover Order



  • I am aware that Backtrader supports Bracket Orders with an accompanying Stop Loss and Limit Orders.

    But what if I just want a Cover Order with an accompanying Stop Loss and with out any accompanying Limit order compared to Bracket Orders.

    As per documentation we can specify a Bracket Order manually as follows-

    mainside = self.buy(price=13.50, exectype=bt.Order.Limit, transmit=False)
    lowside  = self.sell(price=13.00, size=mainsize.size, exectype=bt.Order.Stop,
                         transmit=False, parent=mainside)
    highside = self.sell(price=14.00, size=mainsize.size, exectype=bt.Order.Limit,
                         transmit=True, parent=mainside)
    

    Now what if we just use that low side Stop type without high side Limit type order as below -

    mainside = self.buy(price=13.50, exectype=bt.Order.Limit, transmit=False)
    lowside  = self.sell(price=13.00, size=mainsize.size, exectype=bt.Order.Stop,
                         transmit=True, parent=mainside)
    

    Is it a legit scenario or will I break anything by doing this?
    Thank you.



  • hello @backtrader - Can you please throw some light on the above scenario.

    Thank you.


  • administrators

    Have you tried it?


Log in to reply
 

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.