A Swiss Army Node.js brute force backtester for Gekko trading bot. Saves time so you can spend more time looking good.
- Set multiple history periods
- Set multiple candle sizes
- Set multiple strategies
- Set multiple exchange and trading pairs
- Set random ranges for each strategy config
- Writes all outputs and strategy configs out into a csv so you can review what strat and related settings are going to make you the most cold hard crypto
(You can install Bruteforce wherever you like, but it saves you time if you just set it up in a folder called "bruteforce" next to "gekko".)
git clone https://github.com/gekkowarez/bruteforce.git`
cd bruteforce
npm install
Open bruteforce.js in your favorite text editor and setup paths and configs from line 20. Instructions are in the doc.
You must have the Gekko api server running so type the following into a console first:
cd ../gekko
node gekko --ui
Then type the following to run the bruteforce app:
cd ../bruteforce
npm start
(npm start
will launch bruteforce.js with --max_old_space_size=4096
, which should prevent the JavaScript heap out of memory
error (#3).)
The TOML thing is pretty cool - it takes all the TOML files contents, re-writes them into JSON, then appends them to a Gekko config file. This is pretty awesome for us CLI guys who really don't use the front end but do use Strategy libraries such as the one here: https://github.com/xFFFFF/Gekko-Strategies/
toml-config-converter.js will read strategy configurations from all TOML files in strategiesFolder
, append them to configFile
and save the result as outputConfigFile
. Set your paths on lines 19, 21 and 23 accordingly.
node toml-config-converter.js
Make sure to point configFile
in bruteforce.js to the output config file and you're good to go.