abbass2 / pyqstrat

A fast, extensible, transparent python library for backtesting quantitative strategies.
BSD 3-Clause "New" or "Revised" License
349 stars 57 forks source link

Can't show graph #2

Closed luanya01 closed 5 years ago

luanya01 commented 5 years ago

sorry for the stupid question... I forgot to call plt.show() plz,close the issue.


Dear abbass2 ,

I found this project from ib_insync forum , thank you to share this awesome backtest tool.

I have the problem that , I can't show anthing graph when run the example 'build_example_strategy.py' in the console, but show some text. my env is :

Anaconda 4.3.27 pandas 0.23.4 py36h830ac7b_0 matplotlib 2.2.3 py36hd159220_0

btw, it's work fine in juypter. regards.

abbass2 commented 5 years ago

Hi,

build_example_strategy.py has a function that builds a strategy but does nothing with it. Its got a utility function that’s used by other example code for building strategies.

Take a look at this notebook for how to build a strategy.

https://github.com/abbass2/pyqstrat/blob/master/pyqstrat/notebooks/building_strategies.ipynb https://github.com/abbass2/pyqstrat/blob/master/pyqstrat/notebooks/building_strategies.ipynb

Let me know if you still have questions.

Best,

Sal

On Aug 29, 2018, at 3:28 AM, luanya01 notifications@github.com wrote:

Dear abbass2 ,

I found this project from ib_insync forum , thank you to share this awesome backtest tool.

I have the problem that , I can't show anthing graph when run the example 'build_example_strategy.py' , but show some text. my env is :

Anaconda 4.3.27 pandas 0.23.4 py36h830ac7b_0 matplotlib 2.2.3 py36hd159220_0

regards.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/abbass2/pyqstrat/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AETdV_ayuZ8CGHEubdpjTyWKXsbOvHoMks5uVlCzgaJpZM4WREXL.