03-18-2018, 11:49 AM
Sometimes it happens that some error will occur in Gekko and the program will turn off, for example when we have runned Gekkos live trade.
We can overcome this by simply loops in Bash.
1. Save above code to loop.bash file and copy to Gekko directory.
2. $ chmod +x loop.bash
3. $ ./loop.bash "node gekko -c config.js"
After turning off Gekko, the script will launch Gekko again. He will repeat the action 10 times.
We can overcome this by simply loops in Bash.
Code:
#!/bin/bash
for i in {1..10}
do
$1
done
2. $ chmod +x loop.bash
3. $ ./loop.bash "node gekko -c config.js"
After turning off Gekko, the script will launch Gekko again. He will repeat the action 10 times.