CLI tool helps to put together testing and optimizing strategies that extend the Gekko's Trading Bot capabilities – and thus you may get the most of it, and see what combinations were the best and the worst backed up by statistics.
The results appear in a CSV report file. It provides key statistics describing the overall performance of the selected strategies over the chosen historical timing of the simulation.
It uses Gekko's API, one gekko instance running required only.
- Batcher – batch backtest tool for multiple strategies and pairs.
- Bruteforce – run all possible parameter combinations for specific method with given ranges for strategy optimization.
- Importer – allow you to import multiple datasets thick and fast
Strategies / Trading Pairs / Candle sizes / History sizes / Dateranges / Range of strategy config's parameters (BruteForce)
- Ability to set up the priority of where to get method's config (be it TOML, gekko's config.js or gekko-batcher's config itself)
- Generating all possible combinations of configs for backtests and shuffle it
- Multithreading
- Exporting results to CSV file
- Evaluating approximately remaining time
- Node.js
- Gekko trading framework
npm install
– first, you need to install dependencies.- Download all candles data you need via the importer.
node gekko --ui
– start Gekko in ui mod.cp sample-config.js config.js
– just copy sample-config.js like this. Strategy settings will be taken from here.
Additional:
Increase server.timeout
at /gekko/web/server.js
to avoid a timeout error if the strategy runs for a long time. For example, this happens for small sized candles.
npm install
cp sample-config.js config.js
– don't forget to create config file as well.- Set up everything you need in
config.js
and you are ready to go.
After all the above you can start tools by running one of the following in your terminal:
node batch -c config.js
– to start Batcher
node bruteforce -c config.js
– to start Bruteforce
node import -c config.js
– to start Importer
You can find results in the results folder after backtests. Take a look of Sample file output
🎥 Gekko Trading Bot - Gekko Batcher - YouTube – watch a video review of these tools.
🗒️ [RU] Gekko-batcher — тестирование и оптимизация торговых стратегий
Forks and stars are highly welcome.
For bugs and feature requests, please create an issue.