GUNBOT: The automatic profit generator > Technical Support & Development
need help fixing error with GUNBOT 3.1. maybe bug?
Doc:
I have 8 couples running, first I made BTC_ETH and used BTC_ETH-config.js to make all others, but this is the only one giving the error. I'm puzzled... o_0
2017/04/24 14:05:46 Error: BoughtPrice not set!!!
thx for help
--- Quote ---Loading config...
2017/04/24 14:05:42 Creating market client for BTC_ETH pair
Activating hot reconfig...
[ ---- poloniex -- 2017/04/24 14:05:42 -- Gunbot v3.1b cycle #1 -------------------------- ]
Loaded poloniex-BTC_ETH-save.json
::::: collecting market data...
++++
LP 0.04015002 Bal.BTC 0.07034545 Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading...
No opened orders
boughtPrice undefined
direction price steady (0)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/24 14:05:46 Error: BoughtPrice not set!!!
!!! Cycle 2 failed. Will repeat in 10s
[ ---- poloniex -- 2017/04/24 14:05:56 -- Gunbot v3.1b cycle #2 -------------------------- ]
Loaded poloniex-BTC_ETH-save.json
::::: collecting market data...
++++
LP 0.04015 Bal.BTC 0.07034545 Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading...
No opened orders
boughtPrice undefined
direction price falls (-1)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/24 14:05:59 Error: BoughtPrice not set!!!
!!! Cycle 3 failed. Will repeat in 10s
[ ---- poloniex -- 2017/04/24 14:06:09 -- Gunbot v3.1b cycle #3 -------------------------- ]
--- End quote ---
--- Quote ---var config = {
//-----------------------------------------------
// PRIMARY SETTINGS
//-----------------------------------------------
DEFAULT_MARKET_NAME:"poloniex",
DEFAULT_CURRENCY_PAIR:"BTC_ETH", // single pair format for all markets !
BTC_TRADING_LIMIT: 0.040,// 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
LOW_BB: 5, //percentual from the lowest Bollinger Band you want to buy
HIGH_BB: 5, //percentual from the highest Bollinger Band you want to sell
SELL_STRATEGY: 'BB', //sell strategy to use (BB or GAIN)
BUY_STRATEGY: 'BB', // buy strategy to use (BB or GAIN)
BUY_LEVEL: 1, //percentual from weighted price you want to buy if the Bollinger Band are not complete yet or you want to use GAIN strategy
//---BITTREX
BITTREX_KEY:'',
BITTREX_SECRET:'',
BITTREX_GAIN: 2, // margin to sell when currency increases its value (example: sell when currency increases 2% of paid value - used only when Bollinger Band are not completely calculated or if you select GAIN strategy)
BITTREX_PRICE_METHOD:'vWP',// vWP OR ohlc "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_GAIN: 2, // margin to sell when currency increases its value (example: sell when currency increases 2.5% of paid value - used only when Bollinger Band are not completely calculated or if you select GAIN strategy)
KRAKEN_PRICE_METHOD:'vWP',// vWP OR ohlc "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: '***',
GAIN: 2, // margin to sell when currency increases its value (example: sell when currency increases 2.5% of paid value - used only when Bollinger Band are not completely calculated or if you select GAIN strategy)
POLONIEX_PRICE_METHOD:'ohlc',// vWP OR ohlc "price to buy" definition method (use ohlc with Poloniex)
POLONIEX_VWA_1_INTERVAL: 0.02,// weighted average interval in hours
POLONIEX_VWA_2_INTERVAL: 0.04,// weighted average interval in hours
//-----------------------------------------------
// 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: 500,// limit of latest prices to analyze to determine if price is growing or falling and to calculate Bollinger Band: the higher this amount the Best are Bollinger Band. Use 30 for GAIN strategy and 500 for BB.
MAX_LATEST_DIRECTIONS:30,// limit of latest price directions ,used in supergun detection
MAX_LAST_ORDERS:500, // keeping last orders bought
PERIOD: 15, // candlestick period
SAVEFILE_SUFFIX: '-save.json',
//-----------------------------------------------
// BOT TIMINGS
//-----------------------------------------------
API_CALLS_DELAY:777,
BOT_SLEEP_DELAY:(1000)*22,// bot cycle delay (koef*sec)
BOT_MAX_LIFETIME:(1000*60)*60*24,// overall bot lifetime(koef*min*hours) If you dont change this, the bot will stop to operate in 24 hours,
BOT_ON_FAIL_DELAY:(1000)*10, // 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',
//-----------------------------------------------
// DEBUG
//-----------------------------------------------
DEBUG_LOG:false,
I_REALLY_WANT_IT:false,// debug hardcode hack
BUY_SMALL_PORTION:1,// debug volume limiter,must be 1 > x > 0
INSUFFICIENT_FUNDS_ON_SELL_FIX: 0.0005,
//-----------------------------------------------
// 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;
--- End quote ---
Doc:
just got an idea: maybe it's saying GUNBOT doesn't know the price I bought the ETH balance he reads, am I right?
If this is the case I didn't buy those, I just made a deposit from a different address, is this a problem?
Cyperh:
Try move your BTC_xxx-save.json out of gunbot folder and start the selected pair.
Doc:
it doesn't work
--- Code: ---Loading config...
2017/04/25 21:10:53 Creating market client for BTC_ETH pair
Activating hot reconfig...
[ ---- poloniex -- 2017/04/25 21:10:53 -- Gunbot v3.1b cycle #1 -------------------------- ]
Load poloniex-BTC_ETH-save.json doesn`t exist.
::::: collecting market data...
++++
LP 0.03925963 Bal.BTC 2e-8 Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading... No opened orders
boughtPrice 0
direction price steady (0)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/25 21:10:57 Error: BoughtPrice not set!!!
!!! Cycle 2 failed. Will repeat in 10s
[ ---- poloniex -- 2017/04/25 21:11:07 -- Gunbot v3.1b cycle #2 -------------------------- ]
Loaded poloniex-BTC_ETH-save.json
::::: collecting market data...
++++
LP 0.03925961 Bal.BTC 2e-8 Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading... No opened orders
boughtPrice undefined
direction price falls (-1)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/25 21:11:10 Error: BoughtPrice not set!!!
!!! Cycle 3 failed. Will repeat in 10s
--- End code ---
Gunthar:
--- Quote from: Doc on April 25, 2017, 08:16:12 PM ---it doesn't work
--- Code: ---Loading config...
2017/04/25 21:10:53 Creating market client for BTC_ETH pair
Activating hot reconfig...
[ ---- poloniex -- 2017/04/25 21:10:53 -- Gunbot v3.1b cycle #1 -------------------------- ]
Load poloniex-BTC_ETH-save.json doesn`t exist.
::::: collecting market data...
++++
LP 0.03925963 Bal.BTC 2e-8 Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading... No opened orders
boughtPrice 0
direction price steady (0)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/25 21:10:57 Error: BoughtPrice not set!!!
!!! Cycle 2 failed. Will repeat in 10s
[ ---- poloniex -- 2017/04/25 21:11:07 -- Gunbot v3.1b cycle #2 -------------------------- ]
Loaded poloniex-BTC_ETH-save.json
::::: collecting market data...
++++
LP 0.03925961 Bal.BTC 2e-8 Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading... No opened orders
boughtPrice undefined
direction price falls (-1)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/25 21:11:10 Error: BoughtPrice not set!!!
!!! Cycle 3 failed. Will repeat in 10s
--- End code ---
--- End quote ---
Update to the new one, i fixed that
Navigation
[0] Message Index
[#] Next page
Go to full version