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

[BUG] Issue with imports #409

Closed DidierRLopes closed 2 years ago

DidierRLopes commented 2 years ago

Hey, I come from Gamestonk Terminal. One of our users asked about being able to integrate your library.

Problem description

The issue seems to be at the import level.

Example

Screenshot 2022-01-23 at 11 36 51 Screenshot 2022-01-23 at 11 37 27

Expected behavior

Screenshot 2022-01-23 at 11 38 04

Environment

enzoampil commented 2 years ago

@mikeejazmines have you seen this issue before?

mikeejazmines commented 2 years ago

Hi @DidierRLopes This is a backtrader and matplotlib issue. You can refer to this https://github.com/enzoampil/fastquant/pull/397

Another user has found a solution by changing their backtrader version but since we do not go this route, I find success in changing the matplotlib to 3.2.2 https://github.com/enzoampil/fastquant/issues/369

DidierRLopes commented 2 years ago

That does it! Thank you @mikeejazmines and @enzoampil !