diff --git a/zipline/pipeline/factors/factor.py b/zipline/pipeline/factors/factor.py index 6a49220e..2973f301 100644 --- a/zipline/pipeline/factors/factor.py +++ b/zipline/pipeline/factors/factor.py @@ -500,7 +500,7 @@ class CustomFactor(RequiredWindowLengthMixin, CustomTermMixin, Factor): highest_highs = nanmax(axis=0) lowest_lows = nanmin(axis=0) - out[:] = highest_highs = lowest_lows + out[:] = highest_highs - lowest_lows # Doesn't require passing inputs or window_length because they're # pre-declared as defaults