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.


Messages - StarterUser

Pages: [1]
1
Technical Support & Development / Re: gunbot 24.3.2 PNL
« on: October 29, 2022, 05:22:21 AM »
I just went from 24.3.2 to 24.6.7 and got this error.

Code: [Select]
unhandledRejection Error: [DecimalError] Invalid argument: undefined

It was just after a market spot sell and the sell did go through OK on the exchange.

I'll see what happens next buy.

EDIT: It did the same on the next buy, the trade took place but that same error came up in the bot command window.

Code: [Select]
+-----------------------------------------------------------------------------------+
¦ ?????L RT Edition  ¦ Version              ¦ Exchange ¦ Pair         ¦ Cycle       ¦
+--------------------+----------------------+----------+--------------+-------------¦
¦ TradingView Plugin ¦ v24.6.7              ¦ binance  ¦ USDT-BTC     ¦ BUY         ¦
+--------------------+----------------------+----------+--------------+-------------¦
¦                    ¦ Ask                  ¦ Bid      ¦ Balance USDT ¦ Balance BTC ¦
+--------------------+----------------------+----------+--------------+-------------¦
¦                    ¦ 20741                ¦ 20740.48 ¦ 34.33560694  ¦ 0           ¦
+--------------------+----------------------+---------------------------------------¦
¦ Callback           ¦  BUY order placed... ¦                                       ¦
+-----------------------------------------------------------------------------------+
------------------------------------------------------------------------------------------------
 ????õL TradingView Edition -  2022/10/30 15:00:13
------------------------------------------------------------------------------------------------
unhandledRejection Error: [DecimalError] Invalid argument: undefined
    at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
    at C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js
    at PnlAnalysis._forEachOrdersOfKeys (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async PnlAnalysis.getPnlStatisticData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js) Promise {
  <rejected> Error: [DecimalError] Invalid argument: undefined
      at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
      at C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js
      at PnlAnalysis._forEachOrdersOfKeys (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at async PnlAnalysis.getPnlStatisticData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
}
unhandledRejection Error: [DecimalError] Invalid argument: undefined
    at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
    at C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js
    at PnlAnalysis._forEachOrdersOfKeys (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async PnlAnalysis.getPnlStatisticData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js) Promise {
  <rejected> Error: [DecimalError] Invalid argument: undefined
      at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
      at C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js
      at PnlAnalysis._forEachOrdersOfKeys (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at async PnlAnalysis.getPnlStatisticData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
}

2
With help from my reseller it was a simple fix.

FUNDS_RESERVE needed to be a round number.

It's solved.

3
Please can anyone shed some light on this?

I added more funds and I'm still having the above issue.

I have got 31 USDT on the exchange (spot wallet) which is 3 times more than the minimum trade limit of $10 USD.

Here's the exported config.js (set to test settings, buy 0.1 & gain 0.1, because I'm trying to trigger a buy)

Code: [Select]
{
    "pairs": {
        "binance": {
            "USDT-BTC": {
                "strategy": "gain_rsi",
                "enabled": true,
                "override": {}
            }
        }
    },
    "strategies": {
        "gain_rsi": {
            "ADX_ENABLED": false,
            "ADX_LEVEL": 25,
            "ATRX": 0.5,
            "ATR_PERIOD": 14,
            "BTC_MONEY_FLOW": 35,
            "BTC_PND_PERIOD": 14,
            "BTC_PND_PROTECTION": false,
            "BUYLVL": 1,
            "BUYLVL1": 0.6,
            "BUYLVL2": 2,
            "BUYLVL3": 70,
            "BUY_ENABLED": true,
            "SINGLE_BUY": false,
            "BUY_LEVEL": 0.1,
            "BUY_METHOD": "gain",
            "BUY_RANGE": 0.5,
            "CANDLES_LENGTH": 99,
            "COUNT_SELL": 9999,
            "DISPLACEMENT": 26,
            "DI_PERIOD": 14,
            "DOUBLE_CHECK_GAIN": true,
            "DOUBLE_UP": false,
            "DOUBLE_UP_CAP": 1,
            "DU_BUYDOWN": 2,
            "DU_CAP_COUNT": 0,
            "DU_METHOD": "HIGHBB",
            "EMA1": 16,
            "EMA2": 8,
            "EMA3": 150,
            "EMASPREAD": false,
            "EMA_LENGTH": 50,
            "EMAx": 0.5,
            "FAST_SMA": 1,
            "FUNDS_RESERVE": 0.0001,
            "GAIN": 0.1,
            "HIGH_BB": 0,
            "ICHIMOKU_PROTECTION": true,
            "IGNORE_TRADES_BEFORE": 0,
            "LIQUIDITY": false,
            "LIQUIDITY_TAKER": false,
            "LIQUIDITY_GAIN": true,
            "MAX_INVESTMENT": 1,
            "NASH_LEAGUE": false,
            "NASH_TIMER": 300,
            "IS_MARGIN_STRAT": false,
            "KEEP_QUOTE": 0,
            "KIJUN_BUY": false,
            "KIJUN_CLOSE": false,
            "KIJUN_PERIOD": 26,
            "KIJUN_SELL": false,
            "KIJUN_STOP": false,
            "KUMO_BUY": false,
            "KUMO_CLOSE": false,
            "KUMO_SELL": false,
            "KUMO_SENTIMENTS": true,
            "KUMO_STOP": true,
            "LEVERAGE": 0,
            "LONG_LEVEL": 1,
            "LOW_BB": 0,
            "MACD_LONG": 20,
            "MACD_SHORT": 5,
            "MACD_SIGNAL": 10,
            "MAKER_FEES": false,
            "TAKER_FEES": false,
            "MARKET_BUY": true,
            "MARKET_BUYBACK": false,
            "MARKET_CLOSE": false,
            "MARKET_DU": false,
            "MARKET_FOK": false,
            "MARKET_RTBUY": false,
            "MARKET_RTSELL": false,
            "MARKET_SELL": true,
            "MARKET_STOP": false,
            "MEAN_REVERSION": false,
            "MFI_BUY_LEVEL": 30,
            "MFI_ENABLED": false,
            "MFI_LENGTH": 14,
            "MFI_SELL_LEVEL": 70,
            "MIN_VOLUME_TO_BUY": 11,
            "MIN_VOLUME_TO_SELL": 11,
            "NBA": 0,
            "PANIC_SELL": false,
            "PERIOD": 15,
            "PP_BUY": 0,
            "PP_SELL": 99999,
            "PRE_ORDER": false,
            "PRE_ORDER_GAP": 0,
            "RENKO_ATR": false,
            "RENKO_BRICK_SIZE": 0.0001,
            "RENKO_PERIOD": 15,
            "ROE": 1,
            "ROE_CLOSE": false,
            "ROE_LIMIT": 1,
            "ROE_TRAILING": false,
            "ROE_SCALPER": false,
            "ROE_SPREAD": 0,
            "RSI_BUY_ENABLED": false,
            "RSI_BUY_LEVEL": 46,
            "RSI_DU_BUY": 30,
            "RSI_LENGTH": 14,
            "RSI_METHOD": "oscillator",
            "RSI_SELL_ENABLED": false,
            "RSI_SELL_LEVEL": 52,
            "RT_BUY_LEVEL": 2,
            "RT_BUY_UP_LEVEL": 0,
            "RT_ENABLED": false,
            "RT_GAIN": 1.5,
            "RT_MAXBAG_PROTECTION": 10,
            "RT_ONCE": false,
            "RT_ONCE_AND_CONTINUE": false,
            "RT_SELL_UP": 0.3,
            "RT_TREND_ENABLED": false,
            "SELLLVL": 1,
            "SELLLVL1": 0.6,
            "SELLLVL2": 2,
            "SELLLVL3": 70,
            "SELL_ENABLED": true,
            "SELL_METHOD": "gain",
            "SELL_RANGE": 0.5,
            "SENKOUSPAN_PERIOD": 52,
            "SHORT_LEVEL": 1,
            "SLOW_SMA": 2,
            "SLOW_STOCH_K": 3,
            "SL_DISABLE_BUY": false,
            "SL_DISABLE_SELL": false,
            "SMAPERIOD": 50,
            "STDV": 2,
            "STOCHRSI_BUY_LEVEL": 0.2,
            "STOCHRSI_ENABLED": false,
            "STOCHRSI_LENGTH": 14,
            "STOCHRSI_METHOD": "oscillator",
            "STOCHRSI_SELL_LEVEL": 0.8,
            "STOCH_BUY_LEVEL": 20,
            "STOCH_D": 3,
            "STOCH_ENABLED": false,
            "STOCH_K": 14,
            "STOCH_METHOD": "oscillator",
            "STOCH_SELL_LEVEL": 80,
            "STOP_LIMIT": 4,
            "TAKE_BUY": false,
            "TAKE_PROFIT": false,
            "TBUY_RANGE": 0.5,
            "TENKAN_BUY": true,
            "TENKAN_CLOSE": true,
            "TENKAN_PERIOD": 9,
            "TENKAN_SELL": true,
            "TENKAN_STOP": false,
            "TL_ALLIN": true,
            "TL_PERC": "0",
            "TM_RT_SELL": false,
            "TP_PROFIT_ONLY": true,
            "TP_RANGE": 0.5,
            "TRADES_TIMEOUT": 0,
            "TRADING_LIMIT": 10000,
            "TRAIL_ME_BUY": false,
            "TRAIL_ME_BUY_RANGE": 0.5,
            "TRAIL_ME_DU": false,
            "TRAIL_ME_RT": false,
            "TRAIL_ME_RT_SELL_RANGE": 0.5,
            "TRAIL_ME_SELL": false,
            "TRAIL_ME_SELL_RANGE": 0.5,
            "TSSL_TARGET_ONLY": true,
            "USE_RENKO": false,
            "XTREND_ENABLED": true,
            "STOP_BUY": 0,
            "STOP_SELL": 0,
            "PND": false,
            "PND_PROTECTION": 1.5,
            "SupportResistance": false,
            "SupRes_ALLOW_DCA": true,
            "SupRes_SPREAD": 0.1,
            "SupRes_LVL_SPREAD": 1,
            "SupRes_MAX": 0,
            "SupRes_TIMER": 300,
            "SupResMinROE": 20,
            "MAX_BUY_COUNT": 20,
            "GRID_MULTIPLIER": 1,
            "STOP_AFTER_SELL": false,
            "AUTO_GAIN": true,
            "TRAILING_MULTIPLIER": 1,
            "START_CONT_TRADING": 3,
            "CT_TL_MULTIPLIER": 0.5,
            "CT_RESTART_MULTIPLIER": 1,
            "TL_MULTIPLIER": 1,
            "MAX_OPEN_CONTRACTS": 1,
            "DCA_METHOD": "NATIVE",
            "DCA_SPREAD": 2,
            "SAFETY_TIMER": 1800,
            "TREND_OPEN": false,
            "TREND_BLOCK_DCA": false,
            "TREND_LOWER_DCA": false,
            "DIRECTION": "LONG",
            "TREND_CT_MULTIPLIER": 2,
            "TREND_GRID_MULTIPLIER": 2,
            "AUTO_STEP_SIZE": true,
            "STEP_SIZE": 500,
            "ENFORCE_STEP": false,
            "STRAT_FILENAME": "filename.js",
            "unit_cost": false,
            "DYNAMIC_EXIT_LOGIC": true,
            "bitRage": false,
            "FIRST_ORDER_EXTRA_DELAY": 30,
            "TREND_TRAILING": true,
            "TREND_TRAILING_MULTIPLIER": 1,
            "TREND_TRAILING_BEARISH_MULTIPLIER": 2,
            "AUTO_TREND_ORDERS": true
        }
    },
    "exchanges": {
        "binance": {
            "key": "0Ym...",
            "secret": "ece...",
            "masterkey": "0Ym...",
            "mastersecret": "ece...",
            "passphrase": "xxxxx",
            "clientId": "xxxxx",
            "market": "spot",
            "delay": 5,
            "type": "binance",
            "filteredBase": [],
            "filteredQuote": [],
            "filteredPair": [],
            "TRADING_FEES": 0.075,
            "includeCoins": "",
            "autoPairs": false,
            "tick_interval": 30,
            "tick_time": false,
            "isEncrypted": true,
            "Triples": []
        }
    },
    "bot": {
        "json_output": "./json",
        "debug": false,
        "BOT_DELAY": 5,
        "BOT_CCLEAN": 200,
        "gunthy_wallet": "0x5...",
        "CANCEL_ORDERS_ENABLED": true,
        "CANCEL_ORDERS_CYCLE_CAP": 10,
        "CANCEL_ONCAP": false,
        "RESERVE_PILE_UP": false,
        "interval_ticker_update": 25000,
        "period_storage_ticker": 2000,
        "timeout_buy": 59000,
        "timeout_sell": 60000,
        "TRADING_LIMIT_BUY_PYRAMID": 50,
        "TV_GAIN": 0.6,
        "TV_TRADING_LIMIT_BUY": 50,
        "TV_TRADING_LIMIT_BUY_PYRAMID": 50,
        "TV_PYRAMID": false,
        "TV_TRADING_LIMIT_SELL": 50,
        "TV_PROTECTION": false,
        "TV_MARKET_ORDERS": true,
        "TV_TRADING_LIMIT_CAP": 0.0001,
        "TV_STOPLOSS_PERCENTAGE": 60,
        "TV_TRADING_LIMIT_ALLIN": false,
        "TV_MVTS": 0.0001,
        "TV_GB": false,
        "TV_LEVERAGE": 0,
        "TV_LENDING": 0.02,
        "TV_CLOSE_ALL": false,
        "RETRY_TV_ORDER": false,
        "VERBOSE": true,
        "WATCH_MODE": false,
        "MULTIPLE_BASE": false,
        "withdraw_address": "xxxxx",
        "withdraw_threshold": 0.5,
        "TELEGRAM_ENABLED": false,
        "TG_ORDER_TIMEOUT": 0,
        "TG_TEST": false,
        "TG_PL_ONLY": false,
        "TELEGRAM_NICK": "xxxxx",
        "TOKEN": "bot...",
        "BR_TOKEN": "bot...",
        "TG_AUTOCONFIG": false,
        "chat_id": "123...",
        "admin_id": "123...",
        "OLD_TELEGRAM": false,
        "TOURNAMENT_AGREEMENT": "",
        "TOURNAMENT_NICKNAME": "xxxxx",
        "LOG_SIZE": "50m",
        "INSTANCE_NAME": "",
        "LOGS": true,
        "BR_WATCH_MODE": false,
        "GB_SIMULATOR": false
    },
    "ws": {
        "port": 5001,
        "clientport": 3000,
        "hostname": "127.0.0.1"
    },
    "GUI": {
        "enabled": true,
        "start": true,
        "port": 5000,
        "https": false,
        "key": "localhost.key",
        "cert": "localhost.crt",
        "networktraffic": false,
        "authentication": {
            "login": true,
            "twoFA": false
        },
        "notifications": {
            "trade": true,
            "callback": false,
            "error": true
        },
        "demo": false
    },
    "AutoConfig": {
        "enabled": false,
        "silentMode": false
    },
    "imap_listener": {
        "enabled": false,
        "authorized_froms": "[\"no...",
        "user": "xxxxx",
        "password": "xxxxx",
        "host": "xxxxx",
        "port": 993,
        "tls": true,
        "tlsOptions": {
            "rejectUnauthorized": false
        }
    },
    "webhooks": {
        "enabled": "xxxxx",
        "wh_port": "xxxxx",
        "wh_passphrase": "xxxxx"
    }
}

Here's one of the log entries showing the error...

Code: [Select]
GB_24.3.2 USDT-BTC@binance Round #7520 2022/08/28 05:02:36
┌───────────────────┬────────────────────┬──────────────────┬──────────────────┬────────────────┬────────────────────┬─────────────────────┐
│ ɢՍÑɮǾͳ RT Edition │ Version            │ Round            │ Exchange         │ Pair           │ Strategy           │ Timestamp           │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ GB 24.3.2          │ 7520             │ binance          │ USDT-BTC       │ gain/gain          │ 2022/08/28 05:02:36 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│ 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         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ 20015.4192494      │ 20011.68008451   │ 20088.92748942   │ 19902.43291057 │ 47.08907897        │ 66.88247069         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ macd               │ MACD_SIGNAL      │ MACD_H           │ STOCH_K        │ STOCH_D            │ PAIR MFI            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ -10.23377875       │ 5.23639455       │ -15.47017331     │ 29.9822695     │ 32.40270958        │ 66.88887664         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ EMA spread         │ DI -             │ DI +             │ adx            │ FORECAST           │ FORECAST TREND      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ 3.73916488 ⇧       │ 19.13309521      │ 18.88060726      │ 16.28241293    │ 19990.836045377167 │ ⇧ ⇧                 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ ATR TRAILING STOP  │ ATR SHORT        │ ATR LONG         │ STOCH RSI      │ DEPTH PRESSURE     │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ 62.42493516        │ 19959.72753241   │ 20022.50246758   │ 0.01           │      50%           │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│ Trading Checks    │      Ask           │      Bid         │ USDT Balance     │ BTC Balance    │ BTC On Orders      │ BreakEven point     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ 19991.29 ⇩         │ 19990.94 ⇧       │ 31.76739244      │ 0              │ 0                  │ 49488.37115654      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ ENTRY POINT        │ EXIT POINT       │ STOP LIMIT       │    XTREND      │ LAST TRADE P/L     │ USDT LAST SALE P/L  │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ 19991.66840443     │ 49537.85952771   │ 0.00000000       │    UP!!!       │ -44.28 %           │ -63.97355526        │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ RT BUY             │ RT SELL          │  Last buy        │  Last sell     │ BAG VALUE USDT     │ INITIAL BAG VALUE   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ NaN                │ NaN              │ 20688.45         │ 20722          │  0.00000000        │    0.00000000       │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ BUYBACK            │ Original Price   │   -3.4%          │   -3.5%        │    NaN%            │ Available Funds     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│                   │ 0.00000000         │ 37189.93063915   │                  │                │                    │ 31.76729244         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼────────────────┼────────────────────┼─────────────────────┤
│ 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
We reached max allowed RESERVE for this coin: please wait for some sell orders or change FUNDS_RESERVE


It says my USDT balance is 31.76739244 there, that's enough to trade with!

Why does it say exit point is 49537.85952771?

Guys please tell me what to do.

Should I just create a new API key and try that?

Everything I can think of in the config, is set the right way.

Strategy:
            "BUY_ENABLED": true,
            "BUY_LEVEL": 0.1,
            "BUY_METHOD": "gain",
            "DOUBLE_CHECK_GAIN": true,
            "FUNDS_RESERVE": 0.0001,
            "GAIN": 0.1,
            "KEEP_QUOTE": 0,
            "MARKET_BUY": true,
            "MARKET_SELL": true,
            "MIN_VOLUME_TO_BUY": 11,
            "MIN_VOLUME_TO_SELL": 11,
            "PERIOD": 15,
            "SELL_ENABLED": true,
            "SELL_METHOD": "gain",
            "STOP_LIMIT": 4,
            "TL_ALLIN": true,
            "TRADING_LIMIT": 10000,

Exchanges:
            "TRADING_FEES": 0.075,

Bot:
        "BOT_DELAY": 5,
        "BOT_CCLEAN": 200,
        "VERBOSE": true,
        "WATCH_MODE": false,

EDIT: I just manually bought so I could see if the bot sold at a 0.1% gain, it did sell the BTC.

It's not able to buy for some reason. Every time it's the same: "We reached max allowed RESERVE for this coin".

If it can't buy (due to low funds) then it shouldn't be able to sell either, right?

Manual buys and sells work on the exchange (currently with 31 USDT) and bot sells work... but bot buys don't work.

I have missed probably 5 buys in the last few days because of it. Please, anyone?

4
I'm getting this message in the latest Gunbot v24.3.2 command window...

l51000
We reached max allowed RESERVE for this coin: please wait for some sell orders or change FUNDS_RESERVE


Everything else like API key and so on is all setup, the bot is cycling as it should.

I have a USDT-BTC pair setup and have more than $20 in Binance (and the amount matches what's in the bot command window) and although that's more than double the minimum funds needed to trade on Binance, it's still showing the above message.

I have tried setting FUNDS_RESERVE to -1000 (that fixes it for some people) but I still get the same message.

FUNDS_RESERVE = 0.0001
MIN_VOLUME_TO_BUY = 11
MIN_VOLUME_TO_SELL = 11

(11 USDT)

I have tried min volume to buy/sell at 12, 15 and 18.
I have tried FUNDS_RESERVE at -1000, 10, 12, 15, 18.

I did a manual trade on the exchange to see if it helped kick-start the bot, nope.

5
I bought Gunbot Starter in Nov 2020 and used it for a while, then stopped. For most of 2021 and up to now in 2022 I didn't use the bot, it just sat dormant. Now I am planning on trading with it again, everything is setup including my API key and so on.

I'm just having one problem, if I run Gunbot, the command window vanishes in a flash.
If I run it over and over again, I can get it to launch and then it stays running.

I thought maybe my firewall or some other thing is clashing with it, or using port 5000... so I copied the Gunbot folder to a VM where there is nothing installed except Windows 10 x64 - it exhibited the same behavior in the VM - instantly vanishing when launched. I also tried it in a clean VM of Windows 7 x64 and it's the same deal there too.

I'm also making sure it's not already in Task Manager when trying to launch it.

If I reboot Windows (my real system) Gunbot seems to start up first time every time.

I eventually made a looping batch file that tries to launch Gunbot every 10 seconds and I just leave that looping until it starts, or I reboot to get it to launch, but it can be looping for a while before it finally decides to start.

If it just never launched I could understand it but it does after many many attempts.

I am sure last time trading in late 2020 and early 2021, I was using Windows 7.
I have tried setting the Gunbot exe to Windows 7 compatibility mode but it did nothing to help.

This Starter version is from March 2021 and it looks like there will never be an update to it?

Is there any patch, or anything I could apply to it?

It's not even the config file, it still vanishes as soon as it's launched, with the config.js that's included with the download.

I don't know if flushing the DNS cache might help, but I did also try that.

It's just crashing as soon as I click it, probably 29 out of 30 times trying to launch it. If I leave it alone for a minute, sometimes it launches right away, after trying over and over, a minute ago.

Everything is setup from last time because like I said, it's not my first time using the bot. My pairs, strategy, API and the right password for Gunbot is all how it should be and I have had the bot cycling perfectly fine and connecting to Binance.

Just so you know which bot version this is, the MD5 is:
e3f25c2de60f1951dc3978cca2600044

From the usual Github page.

Cheers folks.

6
Technical Support & Development / Re: For Gunbot sake!
« on: April 07, 2021, 02:37:21 PM »
I've tried setting FUNDS_RESERVE to -1000 and tried it at the default 0.0001 but always get this:

"We reached max allowed RESERVE for this coin: please wait for some sell orders or change FUNDS_RESERVE"

I have seen this about 5 times over the last few days, missing the buy every time.

BTC is priced at under 56800 and I have $58.46, so I have more than 0.001 BTC - the minimum trade on the exchange.

I am just about ready to give up and go back to manual trading. I'll try to add another $20 to it to see if it ends up fixing it because of how close I am to the trade minimum, but I'm barely able to at the moment.

7
Technical Support & Development / Re: For Gunbot sake!
« on: April 03, 2021, 08:33:18 PM »
I'm also seeing this now when buying conditions are met.

We reached max allowed RESERVE for this coin: please wait for some sell orders or change FUNDS_RESERVE

After updating from Starter v20.4.6 to v21.6.3

I have FUNDS_RESERVE set to 10000 USD (way more than I am trading with).

I can manually buy/sell on the exchange.

8
Lets say I have the BBTA strategy running and the bot running. The price starts pumping - in that case BBTA won't buy, because the price is not going under Low BB - but what if I manually buy on the exchange and keep the bot cycling - will the bot sell when the price drops under High BB, even though the buy was not done by the bot?

Thanks in advance and I hope you have been enjoying these last few days  ;D

9
General Discussion / Re: Feature Request: Use Closed Candles (Buying)
« on: December 09, 2020, 12:46:55 PM »
OK sorry about that Aitor, PM sent.

EDIT: I have added the request here:
https://github.com/GuntharDeNiro/GunbotAMA/issues/93

10
General Discussion / Feature Request: Use Closed Candles (Buying)
« on: December 08, 2020, 11:40:22 AM »
EDIT: I have edited this to match what's on the Github AMA.

I had an idea for a new feature on the BBTA strategy, when buying.

It could be called something like:
Use Closed Candles
(With on/off toggle).

At the moment, BBTA trades in real-time, in other words it will buy on an open candle if there's a price reversal.

One thing I realised about that is, the price can drop under the low BB, then rise again during that same
open candle, which triggers a buy - but then the price could drop again after you bought - which can lead
to ending up in a losing trade and hitting your stop limit.

The "Use Closed Candles" BBTA feature would behave like this, the rules are logical and simple:

Buy cycle starts when:
The previous candle closed under Low BB.

Buy actually happens when:
The price reverses and goes above Low BB, which could be on the current open candle, or any future candle (usual BBTA behavior).

It could also work that same way (in reverse) for selling too, with it only starting a sell cycle after the previous candle
closes above High BB and then actually selling when the price drops under High BB.

Using a feature like this when buying would certainly be useful. I have looked back on the BTC chart and seen the
proof of that. This feature would prevent getting stuck in bad trades, many many times. Examples of this are shown
in the 2nd and 3rd image links below.

If this feature could be enabled, the faster the price drops, the safer you would be in terms of avoiding a bad buy.

I have used 15m charts in all images below, but the principle is the same on all time frames.

The important thing about this feature would be that it ignores a price reversal on the current open candle.
This would stop a buy being triggered when the price might rise above Low BB, then drop below Low BB on the same
open candle - which is the standard way BBTA behaves when buying.


Here's an image to explain how this "Use Closed Candles" feature would work:
https://i.imgur.com/V33PlJn.png

Here's a real world example showing where BBTA bought before a price drop.
This buy would have been prevented if "Use Closed Candles" was in use:
https://i.imgur.com/xY0uU6Y.png

Here is another example:
https://i.imgur.com/lLepYXQ.png


In the last few days I hit my (5%) stop limit twice, causing a loss of 10%, but if this Closed Candles feature were
available in the BBTA strategy settings, one of those buys would have been avoided.

Imagine the difference this could make to profits if, half the time, it could keep you out of a losing trade :)

Of course it's impossible to avoid a bad trade every time - but it would be avoided on many occasions.

Cheers.

11
Beginners & Help / When does BBTA sell?
« on: December 07, 2020, 05:39:50 AM »
Guys, this post can be ignored, I got it to sell, but I'll leave the post here in case anyone else makes the same mistake I made.

I think it wasn't selling because I had my gain set at "0" (I have since put it to "0.1")

I set gain on 0 because I thought if I'm using BBTA then it would just sell if hitting the upper BB, but it seems that it does need to be set to a positive figure to sell. I think setting it to zero must have confused it.

-------------------------------------------------------------------------------------------------

The original post...

I am using Gunbot Starter Edition v20.4.6

Trading with USDT-BTC. On Binance.

The bot bought on the first "Buy" label on the chart (slightly higher than the Low BB line because I have it set to Market Buy), but it should have sold on the first "S" label and didn't. Then it should have bought on the first "B" label and sold on the next "S" label. These would have only been small/safe gains, but that's all I am aiming for.

The bot is still holding the coin now. The price has gone up, so it's been handy that it didn't sell on this occasion - but it's not always going to work that way and I am worried about it not selling, even though the price did reverse under the upper Bollinger band, with it at a level making a gain.

I have Low BB set at "0" and High BB also set at "0".

The lower and upper Bollinger bands are in the image as a green (buy) line and red (sell) line. They are so narrow because I am using a low STDV.

I'm using a 15m period, this is how it looks on a 15m chart:




This is the same thing but in more detail on a 1m chart:




Here's my config, I am using BBTA for buying and selling.

Trading limit is 100 because I am trading with USDT as the base currency.

I did have gain set to "0" before posting this and have since changed it to "0.1".

The price has not yet reached the upper Bollinger band to see if it sells due to changing the gain to "0.1".

I put anything I have changed in blue text, all other settings don't apply to this strategy (or were not changed).

I can't see anything wrong with it:

Quote
        "BBTA": {
            "BUY_ENABLED": true,
            "BUY_METHOD": "BBTA",
            "ADX_ENABLED": false,
            "ADX_LEVEL": 25,
            "ATR_PERIOD": 14,
            "ATRX": 0.5,
            "BTC_MONEY_FLOW": 35,
            "BTC_PND_PERIOD": 14,
            "BTC_PND_PROTECTION": false,
            "BUY_LEVEL": 1,
            "BUY_RANGE": 0.5,
            "BUYLVL": 1,
            "BUYLVL1": 0.6,
            "BUYLVL2": 2,
            "BUYLVL3": 70,
            "CANDLES_LENGTH": "200",
            "COUNT_SELL": 9999,
            "DI_PERIOD": 14,
            "DISPLACEMENT": 26,
            "DOUBLE_CHECK_GAIN": true,
            "DOUBLE_UP": false,
            "DOUBLE_UP_CAP": 1,
            "DU_BUYDOWN": 2,
            "DU_CAP_COUNT": 0,
            "DU_METHOD": "HIGHBB",
            "EMA_LENGTH": 50,
            "EMA1": 16,
            "EMA2": 8,
            "EMASPREAD": false,
            "EMAx": 0.5,
            "FAST_SMA": 1,
            "FUNDS_RESERVE": 0.0001,
            "GAIN": "0.1",
            "HIGH_BB": 0,
            "ICHIMOKU_PROTECTION": true,
            "IGNORE_TRADES_BEFORE": 0,
            "IS_MARGIN_STRAT": false,
            "KEEP_QUOTE": 0,
            "KIJUN_BUY": false,
            "KIJUN_CLOSE": false,
            "KIJUN_PERIOD": 26,
            "KIJUN_SELL": false,
            "KIJUN_STOP": false,
            "KUMO_BUY": false,
            "KUMO_CLOSE": false,
            "KUMO_SELL": false,
            "KUMO_SENTIMENTS": true,
            "KUMO_STOP": true,
            "LEVERAGE": 0,
            "LIQUIDITY": false,
            "LIQUIDITY_GAIN": true,
            "LIQUIDITY_TAKER": false,
            "LONG_LEVEL": 1,
            "LOW_BB": "0",
            "MACD_LONG": 20,
            "MACD_SHORT": 5,
            "MACD_SIGNAL": 10,
            "MAKER_FEES": false,
            "MARKET_BUY": true,
            "MARKET_BUYBACK": false,
            "MARKET_CLOSE": false,
            "MARKET_DU": false,
            "MARKET_FOK": false,
            "MARKET_RTBUY": false,
            "MARKET_RTSELL": false,
            "MARKET_SELL": true,
            "MARKET_STOP": false,
            "MAX_INVESTMENT": 1,
            "MEAN_REVERSION": false,
            "MFI_BUY_LEVEL": 30,
            "MFI_ENABLED": false,
            "MFI_LENGTH": 14,
            "MFI_SELL_LEVEL": 70,
            "MIN_VOLUME_TO_BUY": "100",
            "MIN_VOLUME_TO_SELL": "100",
            "NBA": 0,
            "PANIC_SELL": false,
            "PERIOD": 15,
            "PND": false,
            "PND_PROTECTION": 1.5,
            "PP_BUY": 0,
            "PP_SELL": 99999,
            "PRE_ORDER": false,
            "PRE_ORDER_GAP": 0,
            "RENKO_ATR": false,
            "RENKO_BRICK_SIZE": 0.0001,
            "RENKO_PERIOD": 15,
            "ROE": 1,
            "ROE_CLOSE": false,
            "ROE_LIMIT": 1,
            "ROE_SCALPER": false,
            "ROE_SPREAD": 0,
            "ROE_TRAILING": false,
            "RSI_BUY_ENABLED": false,
            "RSI_BUY_LEVEL": 30,
            "RSI_DU_BUY": 30,
            "RSI_LENGTH": 14,
            "RSI_METHOD": "oscillator",
            "RSI_SELL_ENABLED": false,
            "RSI_SELL_LEVEL": 70,
            "RT_BUY_LEVEL": 2,
            "RT_BUY_UP_LEVEL": 0,
            "RT_ENABLED": false,
            "RT_GAIN": 1.5,
            "RT_MAXBAG_PROTECTION": 10,
            "RT_ONCE": false,
            "RT_ONCE_AND_CONTINUE": false,
            "RT_SELL_UP": 0.3,
            "RT_TREND_ENABLED": false,
            "SELL_ENABLED": true,
            "SELL_METHOD": "BBTA",
            "SELL_RANGE": 0.5,
            "SELLLVL": 1,
            "SELLLVL1": 0.6,
            "SELLLVL2": 2,
            "SELLLVL3": 70,
            "SENKOUSPAN_PERIOD": 52,
            "SHORT_LEVEL": 1,
            "SINGLE_BUY": false,
            "SL_DISABLE_BUY": false,
            "SLOW_SMA": 2,
            "SLOW_STOCH_K": 3,
            "SMAPERIOD": "200",
            "STDV": "0.4",
            "STOCH_BUY_LEVEL": 20,
            "STOCH_D": 3,
            "STOCH_ENABLED": false,
            "STOCH_K": 14,
            "STOCH_METHOD": "oscillator",
            "STOCH_SELL_LEVEL": 80,
            "STOCHRSI_BUY_LEVEL": 0.2,
            "STOCHRSI_ENABLED": false,
            "STOCHRSI_LENGTH": 14,
            "STOCHRSI_METHOD": "oscillator",
            "STOCHRSI_SELL_LEVEL": 0.8,
            "STOP_BUY": 0,
            "STOP_LIMIT": "5",
            "STOP_SELL": 0,
            "SupportResistance": false,
            "SupRes_ALLOW_DCA": true,
            "SupRes_LVL_SPREAD": 1,
            "SupRes_MAX": 0,
            "SupRes_SPREAD": 0.1,
            "SupRes_TIMER": 300,
            "SupResMinROE": 20
            "TAKE_BUY": false,
            "TAKE_PROFIT": false,
            "TBUY_RANGE": 0.5,
            "TENKAN_BUY": true,
            "TENKAN_CLOSE": true,
            "TENKAN_PERIOD": 9,
            "TENKAN_SELL": true,
            "TENKAN_STOP": false,
            "TL_ALLIN": true,
            "TL_PERC": 0,
            "TM_RT_SELL": false,
            "TP_PROFIT_ONLY": true,
            "TP_RANGE": 0.5,
            "TRADES_TIMEOUT": 0,
            "TRADING_LIMIT": "100",
            "TRAIL_ME_BUY": false,
            "TRAIL_ME_BUY_RANGE": 0.5,
            "TRAIL_ME_DU": false,
            "TRAIL_ME_RT": false,
            "TRAIL_ME_RT_SELL_RANGE": 0.5,
            "TRAIL_ME_SELL": false,
            "TRAIL_ME_SELL_RANGE": 0.5,
            "TSSL_TARGET_ONLY": true,
            "USE_RENKO": false,
            "XTREND_ENABLED": true,








12
Beginners & Help / Limit orders cancelled
« on: December 06, 2020, 01:51:39 AM »
Hello, I noticed two cancelled limit orders on the exchange at the time the bot tried to enter a long.

The bot wanted to enter a trade using BBTA and although the price went under the lower Bollinger band and crossed back up again with the log file saying "BOUGHT" - after looking on the exchange, there were two limit orders at that time that were both canceled - the trade didn't happen.

Was this because the bot was placing a limit order at a slightly lower amount than the ask price reached?

Can I prevent this by switching the bot to "Market buy" in the Misc settings?

Are there any disadvantages to using market buy?

I guess with long periods between cycling pairs it might be better using limit buy, but my bot is cycling just one pair every 4 seconds, so I know the ask price can't change by much in that time, therefore running it by using market orders would be safe in that regard.

Cheers folks.




Pages: [1]