Skip to content

Finalize Trades #1342

@AlexC89

Description

@AlexC89

Enhancement description

I have a bit of an issue with how if one sets finalize_trades=False the BT algo does not do/open the last trade, even if the signals are there for it to BUY/SELL, it does not implement it because False does not allow it to close the trade, hence it skips it altogether.

I think a change should be made here. If you set finalize_trades=False it should do the trade with _trade history showing the EntryPrice, with ExitPrice of course being blank (since it has not trade signal to close).

It would be a great improvement I think, in helping algo traders a lot.

Code sample

Additional info, images

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions