ezyquant.backtesting.context.Context.target_value#
- Context.target_value(value: float) float #
Calculate buy/sell volume to make the current position reach the target value.
- Parameters:
value (float) – value
- Returns:
buy/sell volume, not round 100
- Return type:
float