format_position#
API documentation for tradeexecutor.strategy.output.format_position Python function.
- format_position(position, up_symbol='🌲', down_symbol='🔻')[source]#
Write a position status line to logs.
Position can be open/closed.
- Returns:
List of log lines
- Parameters:
position (TradingPosition) –
- Return type: