Crypto trading bot using genetic algorithm (NEAT).
WARNING : It's an experimental project and I don't advice you to test it with real money. Some of the features doesn't work yet and it needs to be testing.
npm run data
npm run build:test
npm run train
npm run build:test
npm run test
npm run build:prod
npm start
- Download the data for your currencies at https://www.cryptodatadownload.com/data/binance/ with the timeframe
1m
and move the files to the folder nameddata
at the root of the project. Delete for each file the first line and tap the commandnpm run data
to generate your historical data on multiple time frames (1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d). - When the data are ready, update the json file
config.json
as you want to configure the genetic algorithm parameters. - Tap the commands
npm build:test
andnpm run train
to run the training. - During the training, the genome of the best player is saved in the folder
temp
. Tapnpm run train:reset
if you want to reset the genome of the best player at the next training.
To use your own indicators, update the file src/training/indicators.ts
as you want. Then, take care to specify the right number of inputs in the file src/training/loadConfig.ts
.