Username: Password:

Author Topic: Gunbot wont buy based on MACD  (Read 2542 times)

Offline Maxxx

  • Rookie
  • *
  • Posts: 1
    • View Profile
Gunbot wont buy based on MACD
« on: April 27, 2021, 07:18:38 AM »
Hello guys,
I made a strategy in Tradingview with the MACD. It worked great so I wanted to test it and let Gunbot trade with the same strategy.
I know that sometimes trades won't be executed the same, but I set there and saw that the MACD crossed, I saw that on Tradingview the script would have bought. but Gunbot diden't.
Can anyone help me why that happened?

I thought it would be better to use Gunbot for the entry because it's more reactive than Tradingview and would buy earlier. But in this case, Tradingviews alert was set at 350 and not 353. Maybe any suggestions for that?

I only have these kinds of locks where the cross-over of the MACD is already over.
┌───────────────────┬────────────────────┬──────────────────┬──────────────────┬─────────────┬──────────────────────────┬─────────────────────┐
│ ɢƱƝ฿ѺŁ RT Edition │ Version            │ Round            │ Exchange         │ Pair        │ Strategy                 │ Timestamp           │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ GB 21.1.0          │ 5224             │ binance          │ BTC-VET     │ macd/gain                │ 2021/04/27 08:14:56 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│ Core checks       │ Stop limit hit     │ Can we buy       │ Can we sell      │ Panic sell  │ Can average              │ REVERSAL TRADE      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │       NO           │     NO           │      NO          │     NO      │      NO                  │       NO            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│ Indicators        │ EMA1               │ EMA2             │ HIGHBB           │ LOWBB       │ RSI                      │ MFI BTC/USD         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 0.00000359         │ 0.00000356       │ 0.00000461       │ 0.00000323  │ 49.09524022              │ 69.26462831         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ macd               │ MACD_SIGNAL      │ MACD_H           │ STOCH_K     │ STOCH_D                  │ PAIR MFI            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ -7.83636259        │ -9.62594649      │ 1.7895839        │ 57.63888888 │ 47.49338624              │ 48.43502177         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ EMA spread         │ DI -             │ DI +             │ adx         │ FORECAST                 │ FORECAST TREND      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 3.11073803 ⇌       │ 16.04383261      │ 22.00697364      │ 15.89760701 │ 0.0000036362275636890123 │ ⇧ ⇧ ⇧ ⇧             │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ ATR TRAILING STOP  │ ATR SHORT        │ ATR LONG         │ STOCH RSI   │ DEPTH PRESSURE           │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 2.16836184         │ 0.00000352       │ 0.00000374       │ 1           │      52%                 │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│ Trading Checks    │      Ask           │      Bid         │ BTC Balance      │ VET Balance │ VET On Orders            │ BreakEven point     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 0.00000364 ⇌       │ 0.00000363 ⇌     │ 0.01852929       │ 0           │ 0                        │ 0                   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ ENTRY POINT        │ EXIT POINT       │ STOP LIMIT       │    XTREND   │ LAST TRADE P/L           │ BTC LAST SALE P/L   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 0.00000353         │ 0.00000000       │ 0.00000000       │    UP!!!    │ 0.000 %                  │ 0                   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ RT BUY             │ RT SELL          │  Last buy        │  Last sell  │ BAG VALUE BTC            │ INITIAL BAG VALUE   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ NaN                │ NaN              │ 0                │ 0           │  0.00000000              │    0.00000000       │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ BUYBACK            │ Original Price   │   Infinity%      │   Infinity% │    NaN%                  │ Available Funds     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 0.00000000         │ 0.00000000       │                  │             │                          │ 0.01851929          │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│ 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          │
└───────────────────┴────────────────────┴──────────────────┴──────────────────┴─────────────┴──────────────────────────┴─────────────────────┘

┌───────────────────┬────────────────┬────────────────┬─────────────────────┬───────────────────────┬─────────┐
│ ɢՍΠƁ๏ͳ RT Edition │ MACD crossup   │ MACD crossdown │ MACD-H ZeroCross Up │ MACD-H ZeroCross Down │ Pair    │
├───────────────────┼────────────────┼────────────────┼─────────────────────┼───────────────────────┼─────────┤
│ Signals           │       NO       │       NO       │         NO          │         NO            │ BTC-VET │
├───────────────────┼────────────────┼────────────────┼─────────────────────┼───────────────────────┴─────────┤
│                   │ macd           │ MACD Signal    │ MACD Histogram      │                                 │
├───────────────────┼────────────────┼────────────────┼─────────────────────┤                                 │
│ Values            │ -0.00078363626 │ -0.00096259465 │ 1.7895839           │                                 │
└───────────────────┴────────────────┴────────────────┴─────────────────────┴─────────────────────────────────┘

┌───────────────────┬──────────────────────────────────────┐
│ ɢՍركُͳ RT Edition │                                      │
├───────────────────┼──────────────────────────────────────┤
│ Callbacks         │ Waiting to buy: price is too high!!! │
└───────────────────┴──────────────────────────────────────┘

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Gunbot wont buy based on MACD
« Reply #1 on: April 29, 2021, 04:10:29 AM »
Hello guys,
I made a strategy in Tradingview with the MACD. It worked great so I wanted to test it and let Gunbot trade with the same strategy.
I know that sometimes trades won't be executed the same, but I set there and saw that the MACD crossed, I saw that on Tradingview the script would have bought. but Gunbot diden't.
Can anyone help me why that happened?

I thought it would be better to use Gunbot for the entry because it's more reactive than Tradingview and would buy earlier. But in this case, Tradingviews alert was set at 350 and not 353. Maybe any suggestions for that?

I only have these kinds of locks where the cross-over of the MACD is already over.
┌───────────────────┬────────────────────┬──────────────────┬──────────────────┬─────────────┬──────────────────────────┬─────────────────────┐
│ ɢƱƝ฿ѺŁ RT Edition │ Version            │ Round            │ Exchange         │ Pair        │ Strategy                 │ Timestamp           │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ GB 21.1.0          │ 5224             │ binance          │ BTC-VET     │ macd/gain                │ 2021/04/27 08:14:56 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│ Core checks       │ Stop limit hit     │ Can we buy       │ Can we sell      │ Panic sell  │ Can average              │ REVERSAL TRADE      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │       NO           │     NO           │      NO          │     NO      │      NO                  │       NO            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│ Indicators        │ EMA1               │ EMA2             │ HIGHBB           │ LOWBB       │ RSI                      │ MFI BTC/USD         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 0.00000359         │ 0.00000356       │ 0.00000461       │ 0.00000323  │ 49.09524022              │ 69.26462831         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ macd               │ MACD_SIGNAL      │ MACD_H           │ STOCH_K     │ STOCH_D                  │ PAIR MFI            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ -7.83636259        │ -9.62594649      │ 1.7895839        │ 57.63888888 │ 47.49338624              │ 48.43502177         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ EMA spread         │ DI -             │ DI +             │ adx         │ FORECAST                 │ FORECAST TREND      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 3.11073803 ⇌       │ 16.04383261      │ 22.00697364      │ 15.89760701 │ 0.0000036362275636890123 │ ⇧ ⇧ ⇧ ⇧             │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ ATR TRAILING STOP  │ ATR SHORT        │ ATR LONG         │ STOCH RSI   │ DEPTH PRESSURE           │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 2.16836184         │ 0.00000352       │ 0.00000374       │ 1           │      52%                 │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│ Trading Checks    │      Ask           │      Bid         │ BTC Balance      │ VET Balance │ VET On Orders            │ BreakEven point     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 0.00000364 ⇌       │ 0.00000363 ⇌     │ 0.01852929       │ 0           │ 0                        │ 0                   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ ENTRY POINT        │ EXIT POINT       │ STOP LIMIT       │    XTREND   │ LAST TRADE P/L           │ BTC LAST SALE P/L   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 0.00000353         │ 0.00000000       │ 0.00000000       │    UP!!!    │ 0.000 %                  │ 0                   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ RT BUY             │ RT SELL          │  Last buy        │  Last sell  │ BAG VALUE BTC            │ INITIAL BAG VALUE   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ NaN                │ NaN              │ 0                │ 0           │  0.00000000              │    0.00000000       │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ BUYBACK            │ Original Price   │   Infinity%      │   Infinity% │    NaN%                  │ Available Funds     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│                   │ 0.00000000         │ 0.00000000       │                  │             │                          │ 0.01851929          │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼──────────────────────────┼─────────────────────┤
│ 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          │
└───────────────────┴────────────────────┴──────────────────┴──────────────────┴─────────────┴──────────────────────────┴─────────────────────┘

┌───────────────────┬────────────────┬────────────────┬─────────────────────┬───────────────────────┬─────────┐
│ ɢՍΠƁ๏ͳ RT Edition │ MACD crossup   │ MACD crossdown │ MACD-H ZeroCross Up │ MACD-H ZeroCross Down │ Pair    │
├───────────────────┼────────────────┼────────────────┼─────────────────────┼───────────────────────┼─────────┤
│ Signals           │       NO       │       NO       │         NO          │         NO            │ BTC-VET │
├───────────────────┼────────────────┼────────────────┼─────────────────────┼───────────────────────┴─────────┤
│                   │ macd           │ MACD Signal    │ MACD Histogram      │                                 │
├───────────────────┼────────────────┼────────────────┼─────────────────────┤                                 │
│ Values            │ -0.00078363626 │ -0.00096259465 │ 1.7895839           │                                 │
└───────────────────┴────────────────┴────────────────┴─────────────────────┴─────────────────────────────────┘

┌───────────────────┬──────────────────────────────────────┐
│ ɢՍركُͳ RT Edition │                                      │
├───────────────────┼──────────────────────────────────────┤
│ Callbacks         │ Waiting to buy: price is too high!!! │
└───────────────────┴──────────────────────────────────────┘


The price is higher than the entry point.

Quote
Waiting to buy: price is too high!!!