ezyquant.backtesting.context.Context.buy_pct_position#
- Context.buy_pct_position(pct_position: float) float #
Calculate buy volume from the percentage of the current position.
- Parameters:
pct_position (float) – percentage of position
- Returns:
buy volume, always positive, not round 100
- Return type:
float