Pre-Release v.2.0b (Linux x86/x64) - Release name: "RUSSIAN ROULETTE"
This release is a complete refactor of the previous code, based on async. This should handle all poloniex errors, ports communications, disconnections and all other issues. Please note: the previous code was the real Russian Roulette as it randomly buy 10x the amount we set in configs and was loved by traders because generated 10x profit
- If you still want to use the old version, take care of your old folder and unzip this new one in a fresh new brand-
Changelogs:
GUNBOT is now portable: just grab the gunbot file and the configs and you dont need to install node anymore: run it with ./gunbot , with args being coin pairs like old way
deprecated params.js we now have one config.js file: you can make one config file per pair by renaming it like BTC_XMR-config.js and then pass the args on command line, it will pick up the right configuration
implementing async calls to wait for poloniex to send us the value we want: if errors happen, the bot will handle them and start a new iteration
implementing colors and some snippets on console: supergun trend is now graphically exposed in console and you can follow MAX LATEST PRICE and see the reasons why the bot doesnt buy or doesnt sell yet
new config.js file, not all values are used, i'm going to explain only used ones (this is a pre-release and i will cleanup after some debugs and before the release tag):
COINS_PAIR: 'BTC_ETC',
KEY: '',
SECRET: '',
SMTP: false,
SMTP_EMAIL: '*@gmail.com',
SMTP_PASSWORD: '',
SMTP_PROTOCOL: 'SMTPS',
SMTP_HOST: 'smtp.gmail.com',
// margin to sell when currency increases its value (example: sell when currency increases 2.5% of paid value)
GAIN: 1,
MAX_BALANCE is now DEPRECATED: see MAX_ALTCOINS_BALANCE
// sell all balance if currency decreases x% after you bought it
SECURITY_MARGIN: 60,
TIME_DELAY_PRICE: is DEPRECATED, we use iterations now, see BOT_SLEEP_DELAY
// minimum volume to be a good currency to trade (used in daily recommendations)
MINIMUM_VOLUME_GOOD_CURRENCY: 500,
// minimum variation between low and high price to suggest to trade
MINIMUM_VARIATION_SUGGEST_TRADE: 5,
// EMA interval in hours
STARTEMA1: 2,
// EMA interval in hours
STARTEMA2: 4,
//candelstick period
PERIOD: 15,
// max value (in BTC) of altcoin we want to buy per each trade
MAX_ALTCOINS_BALANCE: 0.01,
// bot cycle delay (koef*sec) per iteration (in this example it is 120 seconds)
BOT_SLEEP_DELAY:(1000)*120,
// overall bot lifetime(koef*min), we can tell the bot to stop after a while: use same formula than BOT SLEEP DELAY. In this example it will never stop
BOT_MAX_LIFETIME:999999999,
// must be 1 > x > 0 : we can trigger MAX ALTCOIN with this: 0.5 is 50%
BUY_SMALL_PORTION:1,
// limit of latest prices to analyze to determine if price is growing or falling
MAX_LATEST_PRICES: 100,
// limit of latest prices to show in console.log
MAX_LATEST_PRICES_SHOWN: 10,
//should we graphically show price direction
SHOW_LASTEST_DIRECTIONS:true,
//limit of latest directions to graphically represent
MAX_LATEST_DIRECTIONS:30,
//limit of latest directions shown on console
MAX_LATEST_DIRECTIONS_SHOWN:10,
//widht(scale) of latest directions list
LASTEST_DIRECTIONS_LIST_WIDTH:15,
//do not change this: it is used to save bot state on restart
SAVEFILE: '-save.json',
//do not change this: when you restart it will pick last buy price and place sell order at profit
SELL_ON_START:true
some security bugs fixed: if you hack this with a not registered license, it will randomly sell at loss all your coins
A special thank to all users that contributed to debug old code and create yet another great release. A special thank to Henkkaa and Sweeet for their enthusiastic contribution to the forum, the support group and for helping us to keep up our morale
Please report any bug immediately!!!
Thanks!
~Gun