Username: Password:

Author Topic: [solved] TSSL not trailing  (Read 11623 times)

Offline flamst

  • Rookie
  • *
  • Posts: 5
    • View Profile
[solved] TSSL not trailing
« on: March 03, 2018, 11:36:08 AM »
Solved - looks like it's caused by the custom strategy, when I run built-in TSSL it seems to work.
*******

Hi, I'm having a lot of trouble getting TSSL strategy to work as described. Whatever settings I try, GB just sells once the GAIN target is hit. I tried it with both TSSL_TARGET_ONLY true and false and there is no difference.

I make a manual buy and then I want GB to manage it - close it if the price goes down to SL (that works fine) and trail it when it goes up.

Any advice what I'm doing wrong would be much appreciated.

Config: 
 
Code: [Select]
"BTC-ARK": {
                "strategy": "tsslv1",
                "override": {
                    "STOP_LIMIT": 3.2,
                    "BUY_RANGE": 0.6,
                    "SELL_RANGE": 0.6,
                    "GAIN": 1

  "tsslv1": {
            "NAME": "tssl sell only",
            "BUY_LEVEL": 0.1,
            "GAIN": 0.01,
            "TRADING_LIMIT": 0.001,
            "FUNDS_RESERVE": 0.001,
            "PERIOD": 15,
            "BUY_RANGE": 2,
            "SELL_RANGE": 3,
            "EMA1": 16,
            "EMA2": 8,
            "HIGH_BB": 45,
            "LOW_BB": 45,
            "STDV": 2,
            "SMAPERIOD": 50,
            "PANIC_SELL": false,
            "DOUBLE_UP": false,
            "DOUBLE_UP_CAP": 1,
            "DU_CAP_COUNT": 3,
            "DU_METHOD": "HIGHBB",
            "RSI_DU_BUY": 30,
            "DU_BUYDOWN": 2,
            "RSI_BUY_ENABLED": false,
            "RSI_SELL_ENABLED": false,
            "RSI_BUY_LEVEL": 30,
            "RSI_SELL_LEVEL": 70,
            "TSSL_TARGET_ONLY": false,
            "STOP_LIMIT": 60,
            "BUY_ENABLED": false,
            "SELL_ENABLED": true,
            "OKKIES_MODE": true,
            "BTC_MONEY_FLOW": 35,
            "TA_ALWAYS_ON": false,
            "MIN_VOLUME_TO_BUY": 0.001,
            "MIN_VOLUME_TO_SELL": 0.001,
            "TRADES_TIMEOUT": 600


Also,  I don't see any indication of trailing in the logs (as seen in other forum user's posts)
Code: [Select]
$ grep TrailingStop out.log
$
$ grep TSSL  out.log
$
$ grep "Target to sell" out.log
$
« Last Edit: March 03, 2018, 12:02:11 PM by flamst »

Offline jimbogbt

  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: [solved] TSSL not trailing
« Reply #1 on: March 06, 2018, 11:10:22 PM »
It's because of the name:

 "tsslv1": {
            "NAME": "tssl sell only",

You can duplicate a strategy and name it whatever you like at the top level (where you have tsslv1) but in the NAME subsection it HAS to stay as tssl or bbtssl or any of the other build in strategies.
If you name it to anything else, the bot wont know what the hell to do.