HIGH_BB does not work
tl;dr
Only value of LOW_BB is being used by the bot. So a BB sell strategy could not work properly if HIGH_BB value differs from LOW_BB
I realized too late that this was the case causing me to lose some profit.
My settings,
"BUY_STRATEGY": "BB",
"SELL_STRATEGY": "BB",
"LOW_BB": 0,
"HIGH_BB": 50,
"BUY_LEVEL": 2,
"GAIN": 1,
Bot is running telling me this
2017/06/26 11:33:16 ###[ --2017/06/26 11:33:16--poloniex--BTC_XRP -- Gunbot v3.3 cycle #14514 --------------- ]
2017/06/26 11:33:16 ::::: collecting market data...
2017/06/26 11:33:16 ***************************************************
2017/06/26 11:33:16 Low BB:0.00010095 - High BB:0.00010540
2017/06/26 11:33:16 ***************************************************
2017/06/26 11:33:16 ***************************************************
2017/06/26 11:33:16 EMA1:0.00010267 - EMA2:0.00010267
2017/06/26 11:33:16 ***************************************************
2017/06/26 11:33:16 BB price to sell 0.00010539596 -- GAIN price to sell 0.0001035755
2017/06/26 11:33:16 BB price to buy 0.00010094920724659685 -- GAIN price to buy 0.00010110913166666665
2017/06/26 11:33:17 LP 0.00010058 Bal.BTC 0.01026966 Bal.XRP 13.48647333(0)
2017/06/26 11:33:18 No open orders
2017/06/26 11:33:18 boughtPrice 0.00010255
2017/06/26 11:33:18 price falls (-8)
2017/06/26 11:33:18 PriceToBuy,1.0095,priceToSell,1.0540
2017/06/26 11:33:18 we have altcoins: 13.48647333
2017/06/26 11:33:18 LP 1.0058,<,prSell 1.0539596 secMargin 0.00004126903333333333 falls yes
2017/06/26 11:33:18 price is too low to sell
2017/06/26 11:33:18 Gunbot callback at 2017/06/26 11:33:18 cycle # 14514
2017/06/26 11:33:18 Callback:
2017/06/26 11:33:18 ---------
2017/06/26 11:33:18 waiting to sell
need faster: no
need slower: no
AS you can see my priceTobuy is equal to HIGH_BB instead of somewhere lower. So it seems it is reading the value of LOW_BB and using that as reference.
Let's check that hypothesis
My settings:
"BUY_STRATEGY": "BB",
"SELL_STRATEGY": "BB",
"LOW_BB": 50,
"HIGH_BB": 0,
"BUY_LEVEL": 2,
"GAIN": 1,
Bot is running telling this
2017/06/26 11:37:14 ALLPAIR changed. Reconfig sheduled.
2017/06/26 11:37:27 ###[ --2017/06/26 11:37:27--poloniex--BTC_XRP -- Gunbot v3.3 cycle #14529 --------------- ]
2017/06/26 11:37:28 ::::: collecting market data...
2017/06/26 11:37:28 ***************************************************
2017/06/26 11:37:28 Low BB:0.00010086 - High BB:0.00010541
2017/06/26 11:37:28 ***************************************************
2017/06/26 11:37:28 ***************************************************
2017/06/26 11:37:28 EMA1:0.00010255 - EMA2:0.00010255
2017/06/26 11:37:28 ***************************************************
2017/06/26 11:37:28 BB price to sell 0.00010313422 -- GAIN price to sell 0.0001035755
2017/06/26 11:37:28 BB price to buy 0.00010313422222222226 -- GAIN price to buy 0.00010107153777777782
2017/06/26 11:37:29 LP 0.00010046 Bal.BTC 0.01026966 Bal.XRP 13.48647333(0)
2017/06/26 11:37:30 No open orders
2017/06/26 11:37:30 boughtPrice 0.00010255
2017/06/26 11:37:30 price falls (-11)
2017/06/26 11:37:30 CANCELING OPEN ORDERS
2017/06/26 11:37:30 Canceling result: ,ok
2017/06/26 11:37:30 PriceToBuy,1.0107,priceToSell,1.0358
2017/06/26 11:37:30 we have altcoins: 13.48647333
2017/06/26 11:37:30 LP 1.0046,<,prSell 1.035755 secMargin 0.000041253688888888906 falls no
2017/06/26 11:37:30 price is too low to sell
2017/06/26 11:37:30 Gunbot callback at 2017/06/26 11:37:30 cycle # 14529
2017/06/26 11:37:30 Callback:
2017/06/26 11:37:30 ---------
2017/06/26 11:37:30 waiting to sell
need faster: no
need slower: no
As you can see now priceToSELL is somewhere lower than HIGH BB but it should be equal to HiGH_BB. It is lower because LOW_BB is set to 50%.
So to me it seems like the value of HIGH_BB is being ignored and the value of LOW_BB is being used for both SELL and BUY.