ezyquant.backtesting.context.Context.sell_pct_position#

Context.sell_pct_position(pct_position: float) float#

Calculate sell volume from the percentage of the current position.

Parameters:

pct_position (float) – percentage of position

Returns:

sell volume, always negative, not round 100

Return type:

float