Username: Password:

Author Topic: trailing stoploss not selling,  (Read 3447 times)

Offline Charunks

  • Rookie
  • *
  • Posts: 35
    • View Profile
trailing stoploss not selling,
« on: November 15, 2019, 07:21:09 PM »
Good afternoon,

I was hoping someone could shed light on an event today. I have recently fired up gunbot again and I am trying to understand the inner workings of the bot. Today a nice opportunity to sell occured on the XLM-EUR pair, in which I expected the bot to sell.

I am using the BBA-TSSL strategy, and on sell, the bot should trail the price @ 0.5%. The initial exit was set at (e) 0.06777244 by the bot. With a price peaking at 0.068, I expected the bot to sell. After checking with the bot, I found that it sold the pair with a loss of 99.6% due to triggering the stoploss (I set the initial at 3%).

The log shows things I dont understand. 

[Edit Charunks: forgot to mention that I set gain @ 1%]

What happenend?

thanks in advance for your insights.

Charunks.



************************************************************************************************
GBRT_14.9.2-RC EUR-XLM@gdax Round #52 2019/11/15 15:06:07
------------------------------------------------------------------------------------------------
2019/11/15 15:06:07: TrailingBuy limit 0.0649928823337034
------------------------------------------------------------------------------------------------
2019/11/15 15:06:07: Stop limit     0.065646077
2019/11/15 15:06:07: Last price         0.06813   |  Target to buy:   0.06531947973236522
------------------------------------------------------------------------------------------------
┌───────────────────┬────────────────────┬──────────────────┬──────────────────┬─────────────┬─────────────────────┬─────────────────────┐
│ ɢƱŋɮѺͳ RT Edition │ Version            │ Round            │ Exchange         │ Pair        │ Strategy            │ Timestamp           │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ GBRT 14.9.2-RC     │ 52               │ gdax             │ EUR-XLM     │ bbta/tssl           │ 2019/11/15 15:06:07 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│ Core checks       │ Stop limit hit     │ Can we buy       │ Can we sell      │ Panic sell  │ Can average         │ REVERSAL TRADE      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │       NO           │     NO           │     YES          │     NO      │      NO             │       NO            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│ Indicators        │ EMA1               │ EMA2             │ HIGHBB           │ LOWBB       │ RSI                 │ MFI BTC/USD         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.06714075         │ 0.06752366       │ 0.06758495       │ 0.06520024  │ 67.82219028         │ 55.24146782         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ macd               │ MACD_SIGNAL      │ MACD_H           │ STOCH_K     │ STOCH_D             │ PAIR MFI            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.00073481         │ 0.00043845       │ 0.00029636       │ 94.50454776 │ 95.93004195         │ 90.048889           │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ EMA spread         │ DI -             │ DI +             │ adx         │ FORECAST            │ FORECAST TREND      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.0003829 ⇌        │ 4.28551763       │ 44.10869947      │ 61.93182625 │ 0.06799103997908613 │ ⇧ ⇧ ⇧ ⇧             │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ ATR TRAILING STOP  │ ATR SHORT        │ ATR LONG         │ STOCH RSI   │ DEPTH PRESSURE      │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.00040824         │ 0.06772087       │ 0.06833412       │ 0.71        │      47%            │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│ Trading Checks    │     Ask          │      Bid         │ EUR Balance      │ XLM Balance │ XLM On Orders       │ BreakEven point     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.06813 ⇧         │ 0.067925 ⇧       │ xxxxxxx     │ 89          │ 0                   │ 0.06707052          │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ ENTRY POINT        │ EXIT POINT       │ STOP LIMIT       │    XTREND   │ LAST TRADE P/L      │ EUR LAST SALE P/L   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.06531948         │ 0.06777244       │ 0.06505840       │    UP!!!    │ 0.000 %             │ -0.18757090         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ RT BUY             │ RT SELL          │  Last buy        │  Last sell  │ BAG VALUE EUR       │ INITIAL BAG VALUE   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ NaN                │ NaN              │ 0.066736         │ 0.065999    │  5.93950400         │    0.00000000       │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ BUYBACK            │ Original Price   │   1.8%           │   2.9%      │    Infinity%        │ Available Funds     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.06707052         │ 0.06673600       │                  │             │                     │ 198.67152516        │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│ Profit/Loss       │      Pair P/L      │  Normal Trading  │ Reversal Trading │ Last 24h    │ Last week           │ Last month          │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ -0.18757090        │ 0.00000000       │ 0.00000000       │ 0.00000000  │ -0.18757090         │ -0.18757090         │
└───────────────────┴────────────────────┴──────────────────┴──────────────────┴─────────────┴─────────────────────┴─────────────────────┘
************************************************************************************************
GUNBOT RT says: Trailing Profit limits are still good...waiting to sell...
------------------------------------------------------------------------------------------------
************************************************************************************************
Price to buy is not in TSSL range
2019/11/15 15:06:07: Entering sell cycle
************************************************************************************************
------------------------------------------------------------------------------------------------
************************************************************************************************
BEGIN TSSL PROCESS FOR SELL STRATEGY
2019/11/15 15:06:58: Last price         0.067913   |  Target to sell:   0.06774122
------------------------------------------------------------------------------------------------
2019/11/15 15:06:58: TrailingStop limit 0.068264625 [Note charunks: TSL -> Why is this higher than bid if its trailing?]
------------------------------------------------------------------------------------------------
2019/11/15 15:06:58: StopLoss limit     0.067772435 [Note Charunks: SLL ->What is the difference between TSL and SLL?
2019/11/15 15:06:58: Price of           EUR-XLM is going  DOWN
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
2019/11/15 15:06:58: StopLoss limit is   0.067772435
------------------------------------------------------------------------------------------------
2019/11/15 15:06:58: Moving TrailingStop limit to 0.068252565
------------------------------------------------------------------------------------------------



------------------------------------------------------------------------------------------------
GBRT_14.9.2-RC EUR-XLM@gdax Round #58 2019/11/15 15:11:14
************************************************************************************************
------------------------------------------------------------------------------------------------
2019/11/15 15:11:14: TrailingBuy limit 0.06499703297222925
2019/11/15 15:11:14: Last price         0.067847   |  Target to buy:   0.06532365122837111
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
2019/11/15 15:11:14: Stop limit     0.065650269
┌───────────────────┬────────────────────┬──────────────────┬──────────────────┬─────────────┬─────────────────────┬─────────────────────┐
│ ɢƱÑ฿ѺŁ RT Edition │ Version            │ Round            │ Exchange         │ Pair        │ Strategy            │ Timestamp           │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ GBRT 14.9.2-RC     │ 58               │ gdax             │ EUR-XLM     │ bbta/tssl           │ 2019/11/15 15:11:14 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│ 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.06713416         │ 0.06751122       │ 0.06757795       │ 0.065205    │ 66.69909807         │ 52.49533607         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ macd               │ MACD_SIGNAL      │ MACD_H           │ STOCH_K     │ STOCH_D             │ PAIR MFI            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.00072147         │ 0.00043602       │ 0.00028545       │ 93.63390099 │ 95.63982637         │ 89.93857522         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ EMA spread         │ DI -             │ DI +             │ adx         │ FORECAST            │ FORECAST TREND      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.00037705 ⇌       │ 4.22572784       │ 43.49331287      │ 61.93182625 │ 0.06794028694143292 │ ⇧ ⇧ ⇧ ⇧ ⇧ ⇧         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ ATR TRAILING STOP  │ ATR SHORT        │ ATR LONG         │ STOCH RSI   │ DEPTH PRESSURE      │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.00041146         │ 0.06747426       │ 0.06805273       │ 0.68        │      22%            │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│ Trading Checks    │      Ask           │      Bid         │ EUR Balance      │ XLM Balance │ XLM On Orders       │ BreakEven point     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.067847 ⇩         │ 0.06768 ⇧        │ XXXXXXXXXXX   │ 89          │ 0                   │ 0.06707052          │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ ENTRY POINT        │ EXIT POINT       │ STOP LIMIT       │    XTREND   │ LAST TRADE P/L      │ EUR LAST SALE P/L   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.06532365         │ 0.06774122       │ 0.06505840       │    UP!!!    │ 0.000 %             │ -0.18757090         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ RT BUY             │ RT SELL          │  Last buy        │  Last sell  │ BAG VALUE EUR       │ INITIAL BAG VALUE   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ NaN                │ NaN              │ 0.066736         │ 0.065999    │  5.93950400         │    0.00000000       │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ BUYBACK            │ Original Price   │   1.4%           │   2.5%      │    Infinity%        │ Available Funds     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ 0.06707052         │ 0.06673600       │                  │             │                     │ 198.67152516        │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│ Profit/Loss       │      Pair P/L      │  Normal Trading  │ Reversal Trading │ Last 24h    │ Last week           │ Last month          │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼─────────────┼─────────────────────┼─────────────────────┤
│                   │ -0.18757090        │ 0.00000000       │ 0.00000000       │ 0.00000000  │ -0.18757090         │ -0.18757090         │
└───────────────────┴────────────────────┴──────────────────┴──────────────────┴─────────────┴─────────────────────┴─────────────────────┘
Price to buy is not in TSSL range
┌───────────────────┬────────────────────────────┐
│ ɢՍŋ฿Øͳ
« Last Edit: November 15, 2019, 07:31:19 PM by Charunks »

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: trailing stoploss not selling,
« Reply #1 on: November 19, 2019, 12:41:30 AM »
Hi, you need to understand some things about how TSSL works. Maybe this can bring you some answers:

https://gunbot.shop/one-of-the-most-powerful-gunbot-strategies-tssl/

Offline Charunks

  • Rookie
  • *
  • Posts: 35
    • View Profile
Re: trailing stoploss not selling,
« Reply #2 on: November 19, 2019, 08:36:16 AM »
Aitor,

thank you! will do.