Skip to content

Missing logic for the sleep() method on the Strategy class #762

@majdzadeh

Description

@majdzadeh

Problem description

The sleep() method on the Strategy class (strategy.py file) accepts a process_pending_orders switch which is not used in the body of the method and basically the method doesn't process pending orders. On the other hand, BacktestingBroker seems to be the only broker which has a logic to process pending orders. Not fully sure about this but the implementation seems a bit contradictory; the Strategy has a broker attribute however, when backtesting, it is not possible to call self.broker.process_pending_orders() from a Strategy subclass as it expects a mandatory strategy argument!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions