enzoampil / fastquant

fastquant — Backtest and optimize your ML trading strategies with only 3 lines of code!
MIT License
1.54k stars 239 forks source link

Support for negative trading levels #392

Open LucasSeveryn opened 3 years ago

LucasSeveryn commented 3 years ago

Doesn't seem to work for price series with negative trading levels - this applies mostly to spreads between contracts, but also to crude oil futures that briefly turned negative in 2020.

mikeejazmines commented 2 years ago

I believe this is a limitation in backtrader as well. Would you have an example of backtrader handling negative values?