/oss · 1 merged

stefan-jansen/zipline-reloaded

A Python library for testing stock trading strategies against historical data.

the project on GitHub (opens in a new tab)
  1. 24 Nov 2026

    Maximum drawdown is measured from the peak

    What was broken
    The maximum drawdown factor divided by the lowest price instead of the peak, so a 50% fall was reported as 100%.
    What I changed
    It now returns the largest drop as a fraction of the peak before it.
    Why it matters
    Strategies that filter or rank stocks by drawdown get the right numbers.

    see the code, #370 (opens in a new tab)

← every project