Heerozh / spectre

GPU-accelerated Factors analysis library and Backtester
GNU General Public License v3.0
627 stars 108 forks source link

Adding Buy and sell signal to backtest graph #11

Closed ben1628 closed 3 years ago

ben1628 commented 3 years ago

Using your backtest script, how can one add Close Price, Buy and Sell signal to the chart so we can see them visually...

Currently, it shows Portfolio benchmark and turnover.

I'm new to Python so may not understand everything about it.

Heerozh commented 3 years ago

You need to plot yourself.

The results returned by the backtest contain all the data, use them.

Similar sample code can be found in zipline library, and I recommend using zipline library directly for such needs. Because this library is not primarily for signal trading/backtesting.

ben1628 commented 3 years ago

Great project. Thanks