Username: Password:

Author Topic: "Massive" BTC Sell  (Read 21298 times)

Offline sylance

  • Rookie
  • *
  • Posts: 34
    • View Profile
"Massive" BTC Sell
« on: August 16, 2017, 01:50:31 AM »
So, I just setup my bot and got my pairs running.  I'm trying to inch my way into this so I thought I set the Max balance to trade at a relatively small amount.  I'm on Poloniex so I have the pairs setup as USDT/BTC; I believe in Poloniex we have to have the USDT part first.

So I set the Max balance to trade to $200 so I'd only trade roughly .05 BTC.  I drive into work today and when I get there I see .336 BTC sell order in my log; for $1,353!!  That's way over $200 so what did I do wrong?  I thought the Max balance was set to the primary, first, pair?  Am I not understanding this correctly?

**Oh I might add that it emptied my BTC account; so thankfully I didn't keep all my BTC in Poloniex!
« Last Edit: August 16, 2017, 02:02:53 AM by sylance »

Offline Leetmor1

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: "Massive" BTC Sell
« Reply #1 on: August 16, 2017, 03:19:45 AM »
If your config looks like

"BTC_XRP": {
                   "strategy": "bb",
                "override": {}
            },
"strategies": {
      "bb": {
         "BTC_TRADING_LIMIT": 0.01,

It won't make trades over 0.01, unless you have an older coin and have double up enabled
Be sure that you edit the right trading limit thou, it's different for each strat.

Offline sylance

  • Rookie
  • *
  • Posts: 34
    • View Profile
Re: "Massive" BTC Sell
« Reply #2 on: August 16, 2017, 04:57:02 AM »
Where I get confused... is the bot always calculating in BTC or is it the first of the pair?  On Poloniex, the pair has to be setup with USDT first, so I assumed I had to use USDT as the primary currency.  Was that wrong?  Even if BTC is the second of the pair is it still calculating BTC as the minimum currency?

Offline Leetmor1

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: "Massive" BTC Sell
« Reply #3 on: August 16, 2017, 10:30:35 AM »
There you go, don't write posts when bearly awake, haha. Forgot / missed the usdt part :O.
Quote from our mod
"
When primary coin is not BTC, BTC_TRADING_LIMIT is the new primary coin, USDT in your case,

BR

Criptonauta
"
So as long as you have USDT_XRP, and the BTC_TRADING_LIMIT set correctly it should work as intended.
"BTC_TRADING_LIMIT": 41.48, would be 0.01 at the current exchange rate.
Note that I don't trade other currency pairs so this is only from what Iv'e read, no practical experience
« Last Edit: August 16, 2017, 10:36:15 AM by Leetmor1 »

Offline sylance

  • Rookie
  • *
  • Posts: 34
    • View Profile
Re: "Massive" BTC Sell
« Reply #4 on: August 16, 2017, 02:55:19 PM »
I can't seem to get this figured out.  Again last night, GunBot emptied my BTC wallet with a .025 trading limit.  I woke up this morning with a sell order for .19 BTC sell.  I can't seem to get this one figured out.  Can someone go through my config and help me understand what I did wrong?  I'm a firm believer in the future of BTC so my goal is to slowly grow my overall balance; thus I changed the high BB to -10 in the hopes to slow down the sells.


Quote
var config = {
//  DEBUG
DEBUG_LOG:false,
I_REALLY_WANT_IT:false,
BUY_SMALL_PORTION:1,
INSUFFICIENT_FUNDS_ON_SELL_FIX: 0.0005,
INSUFFICIENT_FUNDS_ON_BUY_FIX: 0.0005,
//-----------------------------------------------
//   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_DIRECTIONS:30,// limit of latest  price directions ,used in supergun detection
MAX_LATEST_PRICES_TREND:30,
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:'USDT_BTC',   //  single pair format for all markets !
BUYLVL1: 2,
BUYLVL2: 5,
BUYLVL3: 40,
SELLLVL1: 2,
SELLLVL2: 5,
SELLLVL3: 70,
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: 40,
HIGH_BB: -10,
PINGPONG_BUY: 0.12345678,
PINGPONG_SELL: 0.12345678,
BUY_LEVEL: 3, // If GAIN buy strategy is used, buy at this percentual below lower ema value
GAIN: 2.25, // If GAIN sell strategy is used, sell at this percentual above bought price
BTC_TRADING_LIMIT: .025,// 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.0005,  // bitrex min volume
//---BITTREX
BITTREX_KEY:'',
BITTREX_SECRET:'',
BITTREX_PRICE_METHOD:'ohlc',// ohlc OR vwa  price to buy definition method
BITTREX_VWA_1_INTERVAL: .02,// weighted average interval in minutes
BITTREX_VWA_2_INTERVAL: .04,// weighted average interval in minutes
//---KRAKEN
KRAKEN_ASSET_PAIR:'XETHXXBT',
KRAKEN_KEY: '',
KRAKEN_SECRET: '',
KRAKEN_PRICE_METHOD:'ohlc',// ohlc OR vwa  price to buy definition method
KRAKEN_VWA_1_INTERVAL: .02,// weighted average interval in minutes
KRAKEN_VWA_2_INTERVAL: .04,// 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: .02,// weighted average interval in hours
POLONIEX_VWA_2_INTERVAL: .04,// weighted average interval in hours
//-----------------------------------------------
//   BOT TIMINGS
//-----------------------------------------------
API_CALLS_DELAY:777,
BOT_SLEEP_DELAY:(1000)*60,// bot cycle delay (koef*sec)
BOT_MAX_LIFETIME:999999999,// overall bot lifetime(koef*min),
BOT_ON_FAIL_DELAY:(1000)*30, // 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;
« Last Edit: August 16, 2017, 03:17:34 PM by sylance »