My personal crypto trading stuff
Why trust ourselves our money? The machines will end up ruling anyway!
![](https://camo.githubusercontent.com/31a62a43ff967d9e7744daa3da70275cc2b3fdaff1889528fa0cc0626c2ce91e/68747470733a2f2f6d65646961312e67697068792e636f6d2f6d656469612f35304f754e474a637749565863754a5552632f67697068792e6769663f6369643d65636630356534377a6c3679726d6a687862736a356b766c3932303872336f3074706b3568646f7a6b37617165346538267269643d67697068792e676966)
You have to have docker. So if you don't have docker, go get your docker and then come back here.
Go ahead and bake the cake. This step can be ignored if you're using images in the docker-compose.yml file.
I just opened my eyes to crypto, so I'm still learning about all the stuff.
The BBRSI strategy is already "kinda" optimized, but I'm currently working in a huge improvement in its parameters.
The SMA strategy is not optimized at all, and the Hyperopt is not ready. But it's working...
- This is not configured for dry run. By running the steps bellow, you're already trading.
# BBRSI
$ docker-compose start freqtrade_bbrsi
# SMA
$ docker-compose start freqtrade_sma
This is pretty straight forward.
You can pretty much download any chunk of time from your exchange for further machine learning and becktesting.
# BBRSI
$ docker-compose run --rm freqtrade_bbrsi download-data --pairs-file ./user_data/data/binance/pairs_bbrsi.json --exchange binance -t 5m --days 90
# SMA
$ docker-compose run --rm freqtrade_sma download-data --pairs-file ./user_data/data/binance/pairs_sma.json --exchange binance -t 5m --days 90
The bot travels to past with information from the future and applies its knowledge to try to beat its own last record. Amazing!
In truth, it just tests the strategy against the data you just downloaded from the above command...
So it's still amazing, because you can improve your gorgeous strategy and test it with past data without even need to waste money.
# BBRSI
$ docker-compose run --rm freqtrade_bbrsi backtesting --config ./user_data/config_bbrsi.json --strategy BBRSIOptimizedStrategy --datadir user_data/data/binance --export trades --max-open-trades=10 --stake-amount 26 -i 5m
# SMA
$ docker-compose run --rm freqtrade_sma backtesting --config ./user_data/config_sma.json --strategy SMAOffsetStrategy --datadir user_data/data/binance --export trades --max-open-trades=10 --stake-amount 26 -i 5m
Not gonna give any explanation about this today...
# BBRSI
$ docker-compose run --rm freqtrade_bbrsi hyperopt --config ./user_data/config_bbrsi.json --hyperopt BBRSIHyperopt --hyperopt-loss SortinoHyperOptLoss --strategy BBRSIOptimizedStrategy -i 5m --epochs 200 --stake-amount unlimited --min-trades 500 --max-open-trades 10
# SMA
$ docker-compose run --rm freqtrade_sma hyperopt --config ./user_data/config_sma.json --hyperopt SMAHyperopt --hyperopt-loss SortinoHyperOptLoss --strategy SMAOffsetOptimizedStrategy -i 5m --epochs 150 --stake-amount 26.6
This is not done, don't even try
# BBRSI
$ docker-compose run --rm freqtrade_bbrsi hyperopt --config ./user_data/config_bbrsi.json --hyperopt BBRSIHyperopt --hyperopt-loss SortinoHyperOptLoss --strategy BBRSIOptimizedStrategy -i 5m --epochs 200 --stake-amount unlimited --min-trades 500 --max-open-trades 10
# SMA
$ docker-compose run --rm freqtrade_sma hyperopt --config ./user_data/config_sma.json --hyperopt SMAHyperopt --hyperopt-loss SortinoHyperOptLoss --strategy SMAOffsetOptimizedStrategy -i 5m --epochs 150 --stake-amount 26.6