Username: Password:

Author Topic: [TUT] How to Start all your coins or change configs all at once on Windows  (Read 65418 times)

Offline Pro

  • Rookie
  • *
  • Posts: 20
    • View Profile
Heyo  ;)

Here is my first tutorial/config on how to start your favorite coins at once.
Also how to edit all your configs at once!
And a prepared package of all these .bat & config files attached!

Basically you need to do this in 5 main steps:

1. Start Gunbot.exe / or skip this to set up configs first and start supergun with commandline/.bat file.
2. Configure your coin & save each coin to generate a config file - also insert API Keys.
(or setup one file & copy it many times and give it all the coin names)
3. create a XXX.bat (e.g. eth.bat) for each coin from the list below (or just take the .bat man pack from download)
4. Modify & Start all you coins with start-all.bat
5. Done - all configured coins should run fine

Here is the new default Config:
Please configure it as you need it.

Code: [Select]
var config = {
//  DEBUG
DEBUG_LOG:false,
I_REALLY_WANT_IT:false,
BUY_SMALL_PORTION:1,
INSUFFICIENT_FUNDS_ON_SELL_FIX: 0.005,
INSUFFICIENT_FUNDS_ON_BUY_FIX: 0.005,


//-----------------------------------------------
//   STARTUP OPTIONS
//-----------------------------------------------

SELL_ON_START:false,
CANCEL_SELL_ORDERS_ON_START:false,
CANCEL_BUY_ORDERS_ON_START:false,
CANCEL_OPEN_ORDERS_ON_START:false,



MAX_LATEST_PRICES: 300,// limit of latest prices to analyze to determine if price is growing or falling
MAX_LATEST_PRICES_TREND: 30,// limit of latest prices to analyze to determine if price is growing or falling
MAX_LATEST_DIRECTIONS:30,// limit of latest  price directions ,used in supergun detection
MAX_LAST_ORDERS:5,  // keeping last orders bought
PERIOD: 15,   // candlestick period

SAVEFILE_SUFFIX: '-save.json',
//-----------------------------------------------
//  PRIMARY SETTINGS
//-----------------------------------------------
DEFAULT_MARKET_NAME:"poloniex",
DEFAULT_CURRENCY_PAIR:"BTC_ETH",   //  single pair format for all markets !
BUYLVL1: 3,
BUYLVL2: 12,
SELLLVL1: 2,
SELLLVL2: 70,
BUYLVL: 2,
SELLLVL: 2,
BUY_STRATEGY: "BB", // accepted values BB or STEPGAIN or GAIN or PINGPONG
SELL_STRATEGY: "BB", // accepted values BB or STEPGAIN or GAIN or PINGPONG
LOW_BB: 25,
HIGH_BB: 25,
PINGPONG_BUY: 0.01,
PINGPONG_SELL: 0.02,
BUY_LEVEL: 3, // If GAIN buy strategy is used, buy at this percentual below lower ema value
GAIN: 5, // If GAIN sell strategy is used, sell at this percentual above bought price
BTC_TRADING_LIMIT: 0.2,// max amount of BTC balance to use for each pair
SECURITY_MARGIN: 60, // sell all balance if currency decreases x% after you bought it
MIN_VOLUME_TO_BUY: 0.05,  // bitrex min volume

//---BITTREX
BITTREX_KEY:'',
BITTREX_SECRET:'',

BITTREX_PRICE_METHOD:'ohlc',// ohlc OR vwa  "price to buy" definition method
BITTREX_VWA_1_INTERVAL: 10,// weighted average interval in minutes
BITTREX_VWA_2_INTERVAL: 120,// weighted average interval in minutes


//---KRAKEN
KRAKEN_ASSET_PAIR:'XETHXXBT',

KRAKEN_KEY: '',
KRAKEN_SECRET: '',


KRAKEN_PRICE_METHOD:'vwa',// ohlc OR vwa  "price to buy" definition method
KRAKEN_VWA_1_INTERVAL: 1,// weighted average interval in minutes
KRAKEN_VWA_2_INTERVAL: 15,// weighted average interval in minutes

//---POLONIEX
POLONIEX_KEY: '',
POLONIEX_SECRET: '',



POLONIEX_PRICE_METHOD:'vwa',// ohlc OR vwa  "price to buy" definition method
POLONIEX_VWA_1_INTERVAL: 0.02,// weighted average interval in hours
POLONIEX_VWA_2_INTERVAL: 0.04,// weighted average interval in hours


 
 
//-----------------------------------------------
//   BOT TIMINGS
//-----------------------------------------------
API_CALLS_DELAY:777,
BOT_SLEEP_DELAY:(1000)*120,// bot cycle delay (koef*sec)
BOT_MAX_LIFETIME:999999999,// overall bot lifetime(koef*min),
BOT_ON_FAIL_DELAY:(1000)*60, // bot repeat cycle delay if previous cycle failed  (koef*sec)
//-----------------------------------------------
// EMAIL
//-----------------------------------------------
ALERT_ON_NO_FUNDS:false,  // email on insufficcient funds
SMTP_EMAIL: '%40@gmail.com',
ALERT_EMAIL:'********',
SMTP_PASSWORD: '**********',
SMTP: true,
SMTP_PROTOCOL: 'SMTPS',
SMTP_HOST: 'smtp.gmail.com',

//-----------------------------------------------
//  OUTPUT
//-----------------------------------------------
MAX_LATEST_PRICES_SHOWN: 0, // limit of latest prices to show in console.log
SHOW_LASTEST_DIRECTIONS:false,  // show chart in console
MAX_LATEST_DIRECTIONS_SHOWN:0, // chart height
LASTEST_DIRECTIONS_LIST_WIDTH:0, // chart width

//-----------------------------------------------
//   OTHER (might be deprecated/not in use)
//-----------------------------------------------
BTC_BALANCE: 2// btc balance for test purposes,
};
 
module.exports = config;


Just add your Exchange Api code.

Here is how you can quickly change those configs on all files AT ONCE or those files you need:

  • Download and open Sublime Text (Best Text Editor ;) 
  • Select all XXX_XXX-config.js you want to edit in your explorer 
  • Drag & Drop into Sublime Text
  • Select Lines you want to change (shortcut CTRL+SHIFT+F) or MENU > FIND > Search in Files
  • Select <open files>
  • Copy Paste the old part in search (top row) and Copy&Edit the new part in replace (bottom row)
  • Replace & Boom & Done like a Pro! ;)
See Screenshots!



Here is a example of the coin, including the commands you need to start them on windows.
Just pick the ones you need and create a .bat file with the coin name (e.g. btc_xrp.bat)

[spoiler]
Code: [Select]
@echo off
TITLE BTC_XRP
gunthy BTC_XRP poloniex
[/spoiler]



If you don't want to setup these files, you can find them in the attached.zip file.

Here I have a startup.bat file to start them all (you may have to edit it)
This would start these 63 coins at once, minimized, with 1 second startdelay per coin (you can delete all you don't want to trade, just edit it as you need)
[spoiler]
Code: [Select]
@echo off
@echo off
start /min BTC_DCR.bat
timeout 1
start /min BTC_BTCD.bat
timeout 1
start /min BTC_DASH.bat
timeout 1
start /min BTC_DOGE.bat
timeout 1
start /min BTC_REP.bat
timeout 1
start /min BTC_NMC.bat
timeout 1
start /min BTC_NAV.bat
timeout 1
start /min BTC_BELA.bat
timeout 1
start /min BTC_VRC.bat
timeout 1
start /min BTC_HZ.bat
timeout 1
start /min BTC_LTC.bat
timeout 1
start /min BTC_LSK.bat
timeout 1
start /min BTC_XBC.bat
timeout 1
start /min BTC_ETH.bat
timeout 1
start /min BTC_RADS.bat
timeout 1
start /min BTC_VTC.bat
timeout 1
start /min BTC_BCN.bat
timeout 1
start /min BTC_XMR.bat
timeout 1
start /min BTC_OMNI.bat
timeout 1
start /min BTC_XPM.bat
timeout 1
start /min BTC_STRAT.bat
timeout 1
start /min BTC_LBC.bat
timeout 1
start /min BTC_GRC.bat
timeout 1
start /min BTC_VIA.bat
timeout 1
start /min BTC_EXP.bat
timeout 1
start /min BTC_SC.bat
timeout 1
start /min BTC_CLAM.bat
timeout 1
start /min BTC_GAME.bat
timeout 1
start /min BTC_BURST.bat
timeout 1
start /min BTC_SYS.bat
timeout 1
start /min BTC_ARDR.bat
timeout 1
start /min BTC_STEEM.bat
timeout 1
start /min BTC_RIC.bat
timeout 1
start /min BTC_ZEC.bat
timeout 1
start /min BTC_BTS.bat
timeout 1
start /min BTC_NSR.bat
timeout 1
start /min BTC_XRP.bat
timeout 1
start /min BTC_GNT.bat
timeout 1
start /min BTC_XVC.bat
timeout 1
start /min BTC_FLO.bat
timeout 1
start /min BTC_NXC.bat
timeout 1
start /min BTC_NOTE.bat
timeout 1
start /min BTC_PINK.bat
timeout 1
start /min BTC_BLK.bat
timeout 1
start /min BTC_XEM.bat
timeout 1
start /min BTC_POT.bat
timeout 1
start /min BTC_SJCX.bat
timeout 1
start /min BTC_NAUT.bat
timeout 1
start /min BTC_MAID.bat
timeout 1
start /min BTC_FCT.bat
timeout 1
start /min BTC_FLDC.bat
timeout 1
start /min BTC_STR.bat
timeout 1
start /min BTC_AMP.bat
timeout 1
start /min BTC_NXT.bat
timeout 1
start /min BTC_CURE.bat
timeout 1
start /min BTC_NEOS.bat
timeout 1
start /min BTC_DGB.bat
timeout 1
start /min BTC_PPC.bat
timeout 1
start /min BTC_HUC.bat
timeout 1
start /min BTC_XCP.bat
timeout 1
start /min BTC_EMC2.bat
timeout 1
start /min BTC_PASC.bat
timeout 1
start /min BTC_ETC.bat
exit
[/spoiler]

Important, you have to go trought all coins and set up a config file (save) for each coin before you can start all!
This will be fixed in future versions, so standard settings apply to each coin, if you start it.

Edit: 17.04.2017
Added files to start all coins on windows.
Make sure you have setup all the settings first.

Edit: 22.04.2017
Added New Config for 3xx
Fixed Descriptions
Changed Startup.bat (filtered those coins that poloniex will remove)
Thanks for adding this thread to the main description @ Gunthar ;)

Edit: 20.05.2017
Updated all configs to latest version 3.3

Wish you good botting :)

Well, best regards
Pro
« Last Edit: June 06, 2017, 11:32:23 AM by Pro »

Offline xith

  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #1 on: April 09, 2017, 01:51:54 PM »
Nice, I'll play with it a bit. How do you know its working when it stays minimized?

Offline iensu

  • Rookie
  • *
  • Posts: 9
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #2 on: April 09, 2017, 04:47:40 PM »
so that starts the process running in the background without showing it in the console?

Offline Pro

  • Rookie
  • *
  • Posts: 20
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #3 on: April 09, 2017, 10:45:55 PM »
Nice, I'll play with it a bit. How do you know its working when it stays minimized?

You open the minized console, there you see everything.

so that starts the process running in the background without showing it in the console?

You can also see the console working, just open the right window, there is everything ;)

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #4 on: April 11, 2017, 03:13:59 PM »
To run the 1000trades strategy from .bat:
@echo off
TITLE BTC_xxx
node 1000trades BTC_xxx
To run 1000trades strategy you need install nodejs >>https://nodejs.org/en/download/
« Last Edit: April 11, 2017, 08:22:55 PM by dobcrypto »

Offline Pro

  • Rookie
  • *
  • Posts: 20
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #5 on: April 17, 2017, 01:33:55 PM »
I added:
all other coins
a new zip file with nessecary files (skip the work for you - just download and run)

Offline noonway

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #6 on: April 22, 2017, 06:54:10 AM »
Just a heads up that you're missing a critical last line of the config template in all your pre-packaged config files.

module.exports = config;

Otherwise, great tutorial with Sublime Text.  Been using it since v2.  :)

Offline ilaurens

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #7 on: April 22, 2017, 07:51:52 AM »
Can you tell me what the meaning is with: DEFAULT_CURRENCY_PAIR:"BTC_ETH"

Couldn't it be BTC because we want btc -> coin, coin -> btc?

Offline noonway

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #8 on: April 22, 2017, 01:52:37 PM »
At first I thought that needed to be changed for each pair's config but I have found that not to be the case when setting up configs to run 20+ pairs at the same time.  The only things you should change in the config are:

1. Your API Key for whatever exchanges you are running
2. Your secret key for whatever exchanges you are running
3. BOT_MAX_LIFETIME - by default this is set to (1000*60)*60*24 which works out to 1000ms * 60 sec * 60 min * 24 hr ... so if you leave it like that the bot will run for a day... I recommend just adding *365 at the end so it will run for a year

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #9 on: April 22, 2017, 10:08:55 PM »
At first I thought that needed to be changed for each pair's config but I have found that not to be the case when setting up configs to run 20+ pairs at the same time.  The only things you should change in the config are:

1. Your API Key for whatever exchanges you are running
2. Your secret key for whatever exchanges you are running
3. BOT_MAX_LIFETIME - by default this is set to (1000*60)*60*24 which works out to 1000ms * 60 sec * 60 min * 24 hr ... so if you leave it like that the bot will run for a day... I recommend just adding *365 at the end so it will run for a year

or set BOT_MAX_LIFETIME to 999999999 and it will run forever

Offline Pro

  • Rookie
  • *
  • Posts: 20
    • View Profile
Re: [TUT] How to Start all your coins at once
« Reply #10 on: April 23, 2017, 03:52:51 PM »
Just a heads up that you're missing a critical last line of the config template in all your pre-packaged config files.

module.exports = config;

Otherwise, great tutorial with Sublime Text.  Been using it since v2.  :)

LOL :D

Thanks for letting me/us know, I changed that instantly, when I saw it.

Yeah Sublime Text is really great ;)

Offline czczcz

  • Rookie
  • *
  • Posts: 2
    • View Profile
Thanks for posting this - really helpful!

I am trying to upgrade to 3.1, but am unable to launch the bot. I have tried running 'start-all' and activating individual .bat files but nothing happens. Any idea what I might be doing wrong?

Offline rsalan

  • Rookie
  • *
  • Posts: 7
    • View Profile
How do you set up a .BAT for running BB strat?

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
How do you set up a .BAT for running BB strat?
Code: [Select]
@echo off
TITLE XXX
node BB BTC_XXX poloniex

Offline soyab0007

  • Rookie
  • *
  • Posts: 28
  • 10% discount with code "SOYAB" on GUNBOT License
    • View Profile
    • Tradingbotpro
nice tutorial, will give it a try....

BTW, is this for new version or 2.0.4?


Authorized GunBot Reseller

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Were the attached.zip?

Offline serverleader

  • Rookie
  • *
  • Posts: 4
    • View Profile
same question  :o

Offline ARosie

  • Rookie
  • *
  • Posts: 6
    • View Profile
When I start the startall .bat file only the first pair in the file starts. Using BB... Any ideas?

Here's what the file looks like...

@echo off
TITLE DCR
node BB BTC_DCR poloniex

TITLE DASH
node BB BTC_DASH poloniex

etc...

Offline criptonauta

  • Contributor
  • **
  • Posts: 137
    • View Profile
When I start the startall .bat file only the first pair in the file starts. Using BB... Any ideas?

Here's what the file looks like...

@echo off
TITLE DCR
node BB BTC_DCR poloniex

TITLE DASH
node BB BTC_DASH poloniex

etc...


It would be

@echo off
TITLE DCR
node BB BTC_DCR poloniex
 
@echo off
TITLE DASH
node BB BTC_DASH poloniex

@echo off
BLA BLA


Also, for Stepgain, it's node stepgain BTC_XXX poloniex
   ✔ FAST, APPROVED AND EASY Escrow for used GunBot licenses @ 5% ..:..Gunbot licenses 10% off: 'Criptonauta_Gun' code. | Tuning, Custom Strats | No VPS? Get yours here   ✔

Offline majorlee

  • Rookie
  • *
  • Posts: 17
    • View Profile
does anyone have an example bat file we can use for multiple coins starting with 3.2 until the GUI comes out?