Username: Password:

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - densmirnov

Pages: [1]
1
Hi! As you might know, PM2 is one of the best process managers for *nix right now. And it works perfectly with GunBot, but when you have multiple configs the process of starting new instance becames a bit complicated.

I've tried to make a simple solution, which allows you to start new GunBot instance (as long as you have PM2 installed and there is a config file present) with just a simple command (run it from gunbot folder): gunstart BTC_LSK poloniex !

This command will work exactly as this one: pm2 start -n BTC_LSK -o /home/gunbot/gunbot3/poloniex-BTC_LSK-log.txt -e /home/gunbot/gunbot3/poloniex-BTC_LSK-err.txt /home/gunbot/gunbot3/gunthy-linuxx64 -- BTC_LSK poloniex, which will start a new pm2 instance with config and error logs in correct places and will use correct gunbot version for your system architecture.

To install this command simply run curl -o- https://densmirnov.com/gunstart.sh | bash and voila — you will be able to use gunstart command. Actually all this is just a simple script, which adds new function to your ~/.bash_aliases


P.S. Keep in mind, that this is very early release, possible full of bugs and glitches. Use it on your risk! But feel free to fix or change anything!

2
   Hi!

   I love Gunbot! And I just can't stop thinking about a feature, which (as it seems to me) might significantly improve the trading speed (especially in high volatility) and reduce unwanted delays!

   Basically, I suggest to change the bot behavior in a way so that instead of creating a single buy order, it would create several orders on different price levels. The first one will executed immediately after creation and the others will work as insurance in case of sudden price drop!

   The order sizes and price levels will calculated based on the Martingale strategy, so every next one wil be bigger than previous, so the break-even price of the asset will be even lower and lower with each buy. And even after a huge dump, we won't have to wait ages until the price recovers, just a small growth will be enough to continue making a profit! The number of orders to create, step between orders, martingale factor for new orders and the amount of deposit used for order creation can be set individually in each config file (by setting some new variables):

   Perhaps, it will be possible to calculate the indent between the orders, as well as the Martingale coefficient fully dinamically, depending on the momentum of the price change and current 'p(d)umping speed'.


   Possible example of new variables section in config file:

//  -----------------------------------------------
//  MULTIPLE ORDER CREATION. MARTINGALE STRATEGY
//  -----------------------------------------------
    ORDERS_COUNT:   5,             // Number of additional new orders to create;
    ORDERS_INDENT5,             // Distance between the newly created orders;
    MARTINGALE:     1,             // Martingale factor for dynamic order size calculation;
    TRADING_LIMIT1,             // Maximum percent of initial balance to use for each pair.

Pages: [1]