Closed LiamBui closed 6 years ago
Have you looked at this mate?
Hey, thanks for the response. I looked at that issue and had looked for previous issues regarding the tearsheet. None of the previous issues raised accurately described my problem, and none of the solutions worked. The problem I'm facing is that the tearsheet does not appear whatsoever.
Hi LiamBui,
Changing plt.show(block=False) to plt.show(block=True) in tearsheet.py has always worked for me. There have been release dependant problems related to the Matplotlib backend in the past (maybe with QSForex rather than QSTrader, can’t remember) but if you have installed in a virtualenv with the requirements.txt file you should have avoided that.
Sorry I can’t help.
Cheers, Dieter.
Thanks, Dieter! I had already tried that, but thank you for the input :)
I did find a solution, however. Context: I'm running Anaconda in Windows 10, but had been running bash from the Anaconda prompt (silly lol). Turns out, in order to display the tearsheet with bash, all I had to do was add the line export DISPLAY=:0
to my .bashrc
file. Also, while stumbling upon this solution, I also found that if you're running qstrader from the Ubuntu bash shell in Windows 10, you'll run into the same error as the one described above. You can solve the issue by following the steps here.
Hi there,
I was having trouble running the backtest example from the readme. I run
$ python buy_and_hold_backtest.py
And result in the following:
After Googling the problem, I saw that this problem can be bypassed by adding the following lines to the top of the example backtest python file:
However, I'm still not seeing a tearsheet after running (and completing) the following command:
$ python buy_and_hold_backtest.py
I simply get the sharpe ratio, max drawdown, and in ~/out, I get a list of the transactions made.
Is there something that I'm doing wrong in the installation process? How can I resolve this problem?