askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.08k stars 3.93k forks source link

Profit report is not showing during backtest #2831

Closed WardEerland closed 5 years ago

WardEerland commented 5 years ago

I'm submitting a ... [x] bug report [ ] question about the decisions made in the repository

Action taken (what you did) I'm trying to use multiple indicators in my strategy. In this case CCI (native) and BBANDS (Talib).

I installed the Talib library successful with npm install talib --no-save. Then I copied and renamed the strategies/CCI.js file and added this line to include the BBANDS indicator: this.addTalibIndicator('bbands','bbands',this.settings); and included the required parameters in the config. At this point I've only included the Talib indicator but I haven't changed anything of the original CCI strategy methods.

When I backtest the original CCI strategy on 3 months of local data, the strategy works fine, trades are made and the profit report is shown. But when I backtest the CCI strategy with the Talib indicator included the strategy runs, the same trades are made but at the end the backtest just finishes and does not show the profit report.

Expected result (what you hoped would happen) I would expect that the profit report is shown just as it is shown when running strategies/CCI.js.

Actual result (unexpected outcome) The strategy runs successful but just finishes without showing the profit report.

WardEerland commented 5 years ago

I'm not sure it is an issue for this thread.