Avoid memory issues when running long backtests

Node has a memory limit of 1.5gig. In version 0.5.0 something caused long backtests (e.g. 16 month 1m candles) to fail with memory exhaustion.

Initially not using talib indicators seemed to be the fix. However, I’ve recently encountered the issue again when only using native indicators which is very annoying when running a GA over night…

Anyway, I am a noob, all I needed was to expand the memory. You do this by adding the flag listed below to the node command. Now, it seems all is good.

node –max-old-space-size=8192 server.js