Username: Password:

Author Topic: Question about new V5 config file  (Read 12583 times)

Offline jim

  • Rookie
  • *
  • Posts: 36
    • View Profile
Question about new V5 config file
« on: October 05, 2017, 09:27:58 PM »
I have been looking at the new v505 config file and in short I want to be able to set different strategy settings for different coin pairs

So if I do this

   "pairs": {
      "poloniex": {
         "BTC_GAME": {
            "strategy": "gain"
         "TRADING_LIMIT": 0.002,
         "BUY_LEVEL": 2,
         "GAIN": 2,
         },
         "BTC_MAID": {
            "strategy": "gain"
         "TRADING_LIMIT": 0.04,
         "BUY_LEVEL": 1,
         "GAIN": 1,
         }
      }
   },

Will it work and will my settings override the default settings here further down the config file ?

      "gain": {
         "TRADING_LIMIT": 0.001,
         "PERIOD": 5,
         "BUY_LEVEL": 0.1,
         "GAIN": 0.6,
         "EMA1": 24,
         "EMA1": 12,
         "HIGH_BB": 40,
         "LOW_BB": 40,
         "STDV": 2,
         "SMAPERIOD": 20,
         "BUYLVL1": 0.6,
         "BUYLVL2": 2,
         "BUYLVL3": 70,
         "SELLLVL1": 0.6,
         "SELLLVL2": 2,
         "SELLLVL3": 70,
         "BUYLVL": 2,
         "SELLLVL": 2,
         "LASTPOINTS": 5,
         "AVGPOINTS": 250,
         "AVGMINIMUM": 0.00000001,
         "GUNTHY_API": false,
         "PP_BUY": 0.00000001,
         "PP_SELL": 0.12345678,
         "PANIC_SELL": false,
         "DOUBLE_UP": false,
         "STOP_LIMIT": 60,
         "BUY_ENABLED": true,
         "MIN_VOLUME_TO_BUY": 0.0001,
         "MIN_VOLUME_TO_SELL": 0.0001

Cheers

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Re: Question about new V5 config file
« Reply #1 on: October 05, 2017, 11:01:40 PM »
Sure, the override is made for this.

Pay attention to the commas... those ones should be removed (just before a "}" no comma):
        "GAIN": 2,

Offline jim

  • Rookie
  • *
  • Posts: 36
    • View Profile
Re: Question about new V5 config file
« Reply #2 on: October 06, 2017, 12:04:25 AM »
Thats great thank's ,,,

do I need to tell GB to override or will it just do it when i add to the "coin pairs config"  ?

Whilst here

How does    "bbgain" ect   work ,,,, bb overrides gain ?
« Last Edit: October 06, 2017, 12:18:37 AM by jim »

Offline sloaleks

  • Contributor
  • **
  • Posts: 610
    • View Profile
Re: Question about new V5 config file
« Reply #3 on: October 06, 2017, 07:38:52 AM »
in combined strategies the first in the combination is used to buy, the second to sell. in the stated case of "bbgain": bb is used to buy, gain to sell.
it's always in this manner, for example "stepgainbb": stepgain strategy buys, bb strategy sells.

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Re: Question about new V5 config file
« Reply #4 on: October 06, 2017, 12:01:52 PM »
>do I need to tell GB to override or will it just do it when i add to the "coin pairs config"  ?

Everything you put in a pair config will automatically override the corresponding default setting.

Examples:
* you can have "bb" for all pairs, except "stepgain" for one.
* one pair which works well, you can increase "TRADING_LIMIT"
* if it's too stable you can decrease "BUY_LEVEL", or the opposite for an unstable pair...
Custom settings are infinite.

But with caution, it's money  ;)