Skip to content

danielnagel/gekko-config-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gekko config generator

Donate with Bitcoin Donate with Ethereum

The gekko-config-generator creates a config.js, for gekko backtest, for every toml files in the strategies directory.

It parses all toml files, inside the 'gekko/config/strategies' directory, into JSON formated strings. And then creates the config files for gekko backtest and writes them into the 'gekko/backtest-config' directory.

Getting Started

This Tool is relatively easy to install and run.

Prerequisites

Before you can start you need to install node.js, gekko and Gekko-Strategies.

I will only describe how to install these prerequisites under debian, because I am a debian user.

# Node.js
su
curl -sL https://deb.nodesource.com/setup_10.x | -E bash -
apt-get install -y nodejs

# Gekko
git clone https://github.com/askmike/gekko.git

# Install dependencies for gekko
cd gekko
npm i
npm i tulind --build-from-source
npm i talib
cd exchange
npm i

# Gekko-strategies
git clone https://github.com/gekkowarez/Gekko-Strategies

cd Gekko-Strategies
bash install.sh

You don't have to install the Gekko-Strategies for this tool, but gekko's default strategies are already configured in it's sample-config.js.

Installing

After you are done with the prerequisites you can install the gekko config generator.

git clone https://github.com/danisenpai/gekko-config-generator.git
cd gekko-config-generator
npm i

At this point you can start using the gekko-config-generator.

# getting help
node gcg -h

# if you installed gekko-config-generator inside the gekko dir
# you can start the script with the default parameters.
# path: '.', exchange: 'binance', currency: 'USDT', asset: 'BTC'
node gcg

# or use the parameters to fit your needs.
Usage: gcg [options]

Options:
  -V, --version           output the version number
  -p, --path <value>      path to gekko
  -e, --exchange <value>  specify the exchange
  -c, --currency <value>  specify the currency
  -a, --asset <value>     specify the asset
  -l, --loglevel <value>  set the log level, info/all(1), warning(2), error(3), nothing(4)
  -h, --help              output usage information

# after generation, change to your gekko folder and run a backtest
node gekko -c backtest-config/strategyname.js --backtest

Authors

  • Daniel Nagel - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

A big thanks to the authors of the npm modules

And Askmike for gekko

Note

  1. English is not my native language, if you find some misspellings or misused grammar, please let me know.
  2. Feel free to contribute to my code or criticize it, but tell me what you don't like about it.
  3. Leave a tip, if this tool helped you in any way.

About

creates a config for every toml file in gekko's strategies directory

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published