ezyquant.backtesting.context.Context.buy_value#

Context.buy_value(value: float) float#

Calculate buy volume from the given value.

Parameters:

value (float) – value

Returns:

buy volume, always positive, not round 100

Return type:

float