weight_equal#

API documentation for tradeexecutor.strategy.weighting.weight_equal Python function.

weight_equal(alpha_signals)[source]#

Give equal weight to every asset, regardless of the signal strength.

Returns:

Weight map where each pair has weight 1.

Parameters:

alpha_signals (Dict[int, float]) –

Return type:

Dict[int, float]