Skip to content

Better Logging to help understand trade logic #1352

@gregoryteach

Description

@gregoryteach

Enhancement description

Currently, it is impossible to know why a position was closed or opened without clear logs explaining the reasons.

Also, a trade id to identify all trades is needed.

Code sample

self.buy(log="The position was opened")

self.sell(log="The position was opened")

self.position.close(log="The position was closed because???")

trade.sl(price=???, log="Take stop loss was reached")

trade.tp(price=???, log="Take profit was reached")

Additional info, images

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions