mhallsmoore / qstrader

QuantStart.com - QSTrader backtesting simulation engine.
https://www.quantstart.com/qstrader/
MIT License
2.84k stars 851 forks source link

Can we have a boolean argument to suppress the events getting printed? #334

Closed chatRG closed 3 years ago

chatRG commented 4 years ago

https://github.com/mhallsmoore/qstrader/blob/e3af73b457ba4aab8124d35bf7c11e020d7da740/qstrader/trading/backtest.py#L385

Thanks!

mhallsmoore commented 3 years ago

Hi @chatRG,

Apologies for the delay in response to your comment!

Yes, this is a good idea. Largely this has been done for ease of use for those getting up to speed with the backtester.

It will be pretty straightforward to add a boolean argument to suppress the print statements.

I'll leave the Issue open until I've added it to a subsequent release.

Kind regards,

Mike.

mhallsmoore commented 3 years ago

Thanks @simongarisch - now fixed with #338.