ezyquant.backtesting.context.Context.sell_pct_port#
- Context.sell_pct_port(pct_port: float) float #
Calculate sell volume from the percentage of the portfolio.
- Parameters:
pct_port (float) – percentage of the portfolio
- Returns:
sell volume, always negative, not round 100
- Return type:
float