Backtesting crash
#7
I also have this problem with longer backtest periods (and have for some time). This seems to occur on both Windows (WSL bash) and Linux (Docker container).
None of the purposed optimizations work (but they do make a difference, not just on larger datasets).

System 1: Windows x64 + WSL (bash), 32 GB ram etc
System 2, server: Debian + Docker container, 128 GB ram etc

Dataset: ETH-USDT (Poloniex)
Candle Size: 15 min
Data from: 2015-08-08 06:15
Data to: 2017-11-07 14:37
Duration: 2 years, 3 months, 12 hours, 52 minutes

Other settings @ init() function:
// performance
config.backtest.batchSize = 1000; // increase performance
config.silent = true;
config.debug = false;

Other:
running gekko ui with:
node -max-old-space-size=14000 server.js
@ /gekko/web/

All other debugging set to off, so 0 messages except something that occurs on end().

Edit: 20 minutes works and takes 1.7350 minutes to complete, but as soon as i go lower...

---

Edit 2: Screen
[Image: jJAkEFj.png]

Note how i get the 'Finish' in the terminal = the end() function for the strategy has been ran but for some reason finish() has not been triggered and thus no output @ UI?
Another thing that happens is that Gekko tries to re-run the backtest for no apparent reason, it's basically like it's stalling and then retries.
After 2-4 tries it just dies.


SOLVED!

Someone thought it was a good idea to set the timeout to 2 minutes @:
/gekko/web/vue/UIconfig.js

Why @askmike? Smile

Solution
1. open /gekko/web/vue/UIconfig.js
2. change timeout 120000 (2 minutes!) to 21600000 (6 hours) + save
3. Restart Gekko UI

UIconfig.js

Code:
// This config is used in both the
// frontend as well as the web server.

// see https://github.com/askmike/gekko/blob/stable/docs/installing_gekko_on_a_server.md

const CONFIG = {
 headless: false,
 api: {
   host: '127.0.0.1',
   port: 3000,
   timeout: 7200000 // 120 minutes
 },
 ui: {
   ssl: false,
   host: 'localhost',
   port: 3000,
   path: '/'
 },
 adapter: 'sqlite'
}

if(typeof window === 'undefined')
 module.exports = CONFIG;
else
 window.CONFIG = CONFIG;
  Reply


Messages In This Thread
Backtesting crash - by Valleyman - 01-19-2018, 01:15 PM
RE: Backtesting crash - by askmike - 01-19-2018, 05:31 PM
RE: Backtesting crash - by Valleyman - 01-22-2018, 07:37 AM
RE: Backtesting crash - by askmike - 01-25-2018, 10:46 PM
RE: Backtesting crash - by Valleyman - 02-01-2018, 04:37 PM
RE: Backtesting crash - by askmike - 02-04-2018, 10:48 AM
RE: Backtesting crash - by tommiehansen - 02-11-2018, 09:49 PM
RE: Backtesting crash - by Valleyman - 02-13-2018, 08:20 AM
RE: Backtesting crash - by izzy0323 - 03-11-2018, 03:48 PM
RE: Backtesting crash - by chico - 07-10-2018, 02:41 AM

Forum Jump:


Users browsing this thread: