position_manager#

API documentation for tradeexecutor.strategy.pandas_trader.position_manager Python module in Trading Strategy.

Module description#

Positions open and closing management.

Classes#

PositionManager

An utility class to open and close new trade positions.

Functions#

explain_open_position_failure(portfolio, ...)

Display user friendly error message about conflicting open positions.

explain_portfolio_contents(portfolio)

Build an error message about what makes our portflio: