This is the error:
All good...keep calm and Gunbot.
{ TypeError: Cannot read property 'length' of undefined
at Statement.<anonymous> (/snapshot/pi/Desktop/gb/gui/sockets/base.js:0:0)
--> in Database#all('SELECT * FROM portfolio', [Function])
at Socket.<anonymous> (/snapshot/pi/Desktop/gb/gui/sockets/base.js:0:0)
at Socket.emit (events.js:159:13)
at SocketNamespace.handlePacket (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/namespace.js:335:22)
at Manager.onClientMessage (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/manager.js:518:38)
at WebSocket.Transport.onMessage (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transport.js:369:20)
at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
at Parser.emit (events.js:159:13)
at finish (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:295:16)
at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:306:15)
at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:305:18)
at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
at expectData (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:303:16)
at 1 (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:320:9)
at Parser.processPacket (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:553:
![Cool 8)](https://forum.gunthy.org/Smileys/default/cool.gif)
at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
at Parser.endPacket (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:573:
![Cool 8)](https://forum.gunthy.org/Smileys/default/cool.gif)
at finish (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:298:14)
at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:306:15)
at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:305:18)
at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
at expectData (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:303:16)
at 1 (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:320:9)
at Parser.processPacket (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:553:
![Cool 8)](https://forum.gunthy.org/Smileys/default/cool.gif)
at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
at Socket.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:146:17)
at Socket.emit (events.js:159:13)
at addChunk (_stream_readable.js:265:12)
at readableAddChunk (_stream_readable.js:252:11)
at Socket.Readable.push (_stream_readable.js:209:10)
at TCP.onread (net.js:598:20) __augmented: true } 'Uncaught Exception thrown'
Loading config...
(Telegram) Starting bot as Gunbot
info - socket.io started
GUI Server Deployed:
http://localhost:5000
Is there any way to disable the GUI since its only causing me troubles, I mean something like a cmd to the launch without loading GUI or http server so my PI could free some resources.
also i got this message:
************************************************************************************************
GUNBOT RT says: Trailing Buy limits are still good...waiting to buy...
************************************************************************************************
************************************************************************************************
BEGIN TSSL PROCESS FOR BUY STRATEGY
************************************************************************************************
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: TrailingBuy limit 137.31
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: Last price 138.20000000 | Target to buy: 139.17471312
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: Stop limit 138.1473
------------------------------------------------------------------------------------------------
Price raising up: activating Stop limit!!!
************************************************************************************************
BEGIN TSSL PROCESS FOR SELL STRATEGY
************************************************************************************************
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: TrailingStop limit 139.585455
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: Last price 137.67000000 | Target to sell: NaN
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: StopLoss limit 138.196545
------------------------------------------------------------------------------------------------
Price to sell is not in TSSL range
GBRT_18.3.8 PAX-ETH@binance Round #3541 2020/03/20 16:37:48
┌───────────────────┬────────────────────┬──────────────────┬──────────────────┬───────────────┬───────────────────┬─────────────────────┐
│ ɢƱƝɮõͳ RT Edition │ Version │ Round │ Exchange │ Pair │ Strategy │ Timestamp │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ GBRT 18.3.8 │ 3541 │ binance │ PAX-ETH │ tssl/tssl │ 2020/03/20 16:37:49 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ Core checks │ Stop limit hit │ Can we buy │ Can we sell │ Panic sell │ Can average │ REVERSAL TRADE │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ NO │ YES │ NO │ NO │ NO │ NO │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ Indicators │ EMA1 │ EMA2 │ HIGHBB │ LOWBB │ RSI │ MFI BTC/USD │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ 141.80257762 │ 140.58051829 │ 151.20916406 │ 134.00203593 │ 37.84085107 │ 40.95623502 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ macd │ MACD_SIGNAL │ MACD_H │ STOCH_K │ STOCH_D │ PAIR MFI │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ -2.38482861 │ -1.20588382 │ -1.17894478 │ 23.39449541 │ 40.11054312 │ 23.46641044 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ EMA spread │ DI - │ DI + │ adx │ FORECAST │ FORECAST TREND │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ 1.22205932 ⇌ │ 38.01602193 │ 10.28215753 │ 34.6904387 │ 138.0126486501779 │ ⇩ ⇩ ⇩ ⇩ │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ ATR TRAILING STOP │ ATR SHORT │ ATR LONG │ STOCH RSI │ DEPTH PRESSURE │ │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ 2.5309012 │ 136.40454939 │ 139.4654506 │ 0 │ 54% │ │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ Trading Checks │ Ask │ Bid │ PAX Balance │ ETH Balance │ ETH On Orders │ BreakEven point │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ 138.2 ⇧ │ 137.67 ⇧ │ 28.7785134 │ 0.00000566 │ 0 │ 0 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ ENTRY POINT │ EXIT POINT │ STOP LIMIT │ XTREND │ LAST TRADE P/L │ PAX LAST SALE P/L │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ 138.89100000 │ 0.00000000 │ 0.00000000 │ DOWN!!! │ NaN % │ 28.70656712 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ RT BUY │ RT SELL │ Last buy │ Last sell │ BAG VALUE PAX │ INITIAL BAG VALUE │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ NaN │ NaN │ 0 │ 114.66 │ 0.00000000 │ 0.00000000 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ BUYBACK │ Original Price │ Infinity% │ 20% │ NaN% │ Available Funds │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ 0.00000000 │ 0.00000000 │ │ │ │ 28.77841340 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ Profit/Loss │ Pair P/L │ Normal Trading │ Reversal Trading │ Last 24h │ Last week │ Last month │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ │ 0.00000000 │ 0.00000000 │ 0.00000000 │ 0.00000000 │ 0.00000000 │ 0.00000000 │
└───────────────────┴────────────────────┴──────────────────┴──────────────────┴───────────────┴───────────────────┴─────────────────────┘
l51000
1403
┌───────────────────┬──────────────────────────────────────┐
│ ɢƱƝβʘŦ RT Edition │ │
├───────────────────┼─────────┬────────────┬───────┬───────┤
│ BOUGHT!!! │ Amount: │ 0.00001447 │ Rate: │ 138.2 │
└───────────────────┴─────────┴────────────┴───────┴───────┘
but checking my binance history i don't see any past order also why is it buying such small amount ![Sad :(](https://forum.gunthy.org/Smileys/default/sad.gif)
also the telegram messages are not being delivering is there any way to test if the telegram settings are correct a button to send a test msg or something?