Username: Password:

Author Topic: Understanding the different Buy and Sell Config options in 3.3.2 BB,  (Read 20107 times)

Offline kin0

  • Rookie
  • *
  • Posts: 19
    • View Profile
So i've been looking into the latest config which is helpfully labelled in the 3.3.2  version.   You can read Gunthy's post here - https://github.com/GuntharDeNiro/BTCT/releases/tag/Core3.2

What's not clear is exactly how the different buy or sell strategies actually work.  These are


BB (Bolinger Band)
STEPGAIN
GAIN
PINGPONG

You can then set these methods for both Buy or Sell.  Meaning in total you have 4x4 possibilities or 16.  The most common and recommended in BB and BB.  And this is what I have been using.

So from my understanding this is what I know

BB = Bolinger Band.  You set a % which is the size of the % underneath the top or bottom of the bollinger band.  The algorithm will buy at your chosen size if on an downtick it swings past the BUY BB % and then it will sell on an uptick that swings past the SELL BB%.  This makes sense, buy on the down swing, sell on the upswing.

Now I really don't understand how the other 3 work, could someone help explain with a little more clarity or example how the algorithms work based on Gunthys Description below.

Quote
Pure STEPGAIN: BUY_STRATEGY: 'STEPGAIN' and SELL_STRATEGY: 'STEPGAIN' in your config files, will give you the power to explore up and down until the bot finds the best price to buy and the highest price to sell (supergun trend watchdog applies with improved algo). All of this on all 3 markets: Bittrex, Kraken, Poloniex. We have now 2 levels of BUY and 2 levels of SELL only in config files, since the third has not been really useful. Set BUYLVL and SELLLVL to the right level you want to use. Example: if you have BUYLVL1 to 3 and BUYLVL2 to 5, set BUYLVL to 2 if you want to explore from to 5%to infinite, or set BUYLVL to 1 if you want to explore from 3% to infinite.

Pure GAIN: BUY_STRATEGY: 'GAIN' and SELL_STRATEGY: 'GAIN' in yoru config files will give you the power to explore from BUY_LEVEL % to infinite and from GAIN % to infinite. For example: if you set BUY_LEVEL to 3 and GAIN to 5, it will buy at 3% or more (supergun trend watchdog applies) and it will sell at 5% or more (again supergun trend watchdog applies). All of this in all markets: Bittrex, Kraken, Poloniex.

Pure PINGPONG: set a price to buy and a price to sell in PINGPONG_BUY and PINGPONG_SELL config values and your bot will continuosly buy at PINGPONG_BUY price or lower and sell at PINGPONG_SELL or higher. Supergun trend watchdog applies and this strategy is available in all markets: Bittrex, Kraken, Poloniex

This is the current code for the config for reference and so you can see where and what option you might set for each idea.

Code: [Select]
var config = {
//  DEBUG
DEBUG_LOG:true,
I_REALLY_WANT_IT:false,
BUY_SMALL_PORTION:1,
INSUFFICIENT_FUNDS_ON_SELL_FIX: 0.0005,
INSUFFICIENT_FUNDS_ON_BUY_FIX: 0.0005,


//-----------------------------------------------
//   STARTUP OPTIONS
//-----------------------------------------------

SELL_ON_START:false,
CANCEL_SELL_ORDERS_ON_START:false,
CANCEL_BUY_ORDERS_ON_START:false,
CANCEL_OPEN_ORDERS_ON_START:false,



MAX_LATEST_PRICES: 200,// limit of latest prices to analyze to determine if price is growing or falling
MAX_LATEST_DIRECTIONS:30,// limit of latest  price directions ,used in supergun detection
MAX_LAST_ORDERS:5,  // keeping last orders bought
PERIOD: 15,   // candlestick period

SAVEFILE_SUFFIX: '-save.json',
//-----------------------------------------------
//  PRIMARY SETTINGS
//-----------------------------------------------
DEFAULT_MARKET_NAME:"poloniex",
DEFAULT_CURRENCY_PAIR:"BTC_ETH",   //  single pair format for all markets !
BUYLVL1: 3, //buy when the price drops by this percentual or lower if BUYLVL is 1
BUYLVL2: 12, //buy when the price drops by this percentual or lower if BUYLVL is 2
SELLLVL1: 2, //sell when the price drops by this percentual or higher is SELLLVL is 1
SELLLVL2: 70, //sell when the price drops by this percentual or higher is SELLLVL is 2
BUYLVL: 2, //possible values 1 and 2 (if you want to buy at level 1 or level 2)
SELLLVL: 2, //possible values 1 and 2 (if you want to sell at level 1 or level 2)
BUY_STRATEGY: "BB", // accepted values BB or STEPGAIN or GAIN or PINGPONG
SELL_STRATEGY: "GAIN", // accepted values BB or STEPGAIN or GAIN or PINGPONG
LOW_BB: 5, //buy when the price is higher than low BB by this percentual
HIGH_BB: 5, //sell when the price is lower than high BB by this percentual
PINGPONG_BUY: 0.001, //price to buy (or lower) in the ping pong strategy
PINGPONG_SELL: 0.002, //price to sell (or higher) in the ping pong strategy
BUY_LEVEL: 0.1, // If GAIN buy strategy is used, buy at this percentual below lower ema value
GAIN: 0.1, // If GAIN sell strategy is used, sell at this percentual above bought price
BTC_TRADING_LIMIT: 0.01,// max amount of BTC balance to use for each pair
SECURITY_MARGIN: 60, // sell all balance if currency decreases x% after you bought it
MIN_VOLUME_TO_BUY: 0.0005,  // bitrex min volume

//---BITTREX
BITTREX_KEY:'',
BITTREX_SECRET:'',

BITTREX_PRICE_METHOD:'ohlc',// ohlc OR vwa  "price to buy" definition method
BITTREX_VWA_1_INTERVAL: 10,// weighted average interval in minutes
BITTREX_VWA_2_INTERVAL: 120,// weighted average interval in minutes


//---KRAKEN
KRAKEN_ASSET_PAIR:'XETHXXBT',

KRAKEN_KEY: '',
KRAKEN_SECRET: '',


KRAKEN_PRICE_METHOD:'vwa',// ohlc OR vwa  "price to buy" definition method
KRAKEN_VWA_1_INTERVAL: 1,// weighted average interval in minutes
KRAKEN_VWA_2_INTERVAL: 15,// weighted average interval in minutes

//---POLONIEX
POLONIEX_KEY: '',
POLONIEX_SECRET: '',


POLONIEX_PRICE_METHOD:'vwa',// ohlc OR vwa  "price to buy" definition method
POLONIEX_VWA_1_INTERVAL: 0.02,// weighted average interval in hours
POLONIEX_VWA_2_INTERVAL: 0.04,// weighted average interval in hours


 
 
//-----------------------------------------------
//   BOT TIMINGS
//-----------------------------------------------
API_CALLS_DELAY:777,
BOT_SLEEP_DELAY:(1000)*10,// bot cycle delay (koef*sec)
BOT_MAX_LIFETIME:999999999,// overall bot lifetime(koef*min),
BOT_ON_FAIL_DELAY:(1000)*5, // bot repeat cycle delay if previous cycle failed  (koef*sec)
//-----------------------------------------------
// EMAIL
//-----------------------------------------------
ALERT_ON_NO_FUNDS:false,  // email on insufficcient funds
SMTP_EMAIL: '%40@gmail.com',
ALERT_EMAIL:'********',
SMTP_PASSWORD: '**********',
SMTP: true,
SMTP_PROTOCOL: 'SMTPS',
SMTP_HOST: 'smtp.gmail.com',

//-----------------------------------------------
//  OUTPUT
//-----------------------------------------------
MAX_LATEST_PRICES_SHOWN: 0, // limit of latest prices to show in console.log
SHOW_LASTEST_DIRECTIONS:false,  // show chart in console
MAX_LATEST_DIRECTIONS_SHOWN:0, // chart height
LASTEST_DIRECTIONS_LIST_WIDTH:0, // chart width

//-----------------------------------------------
//   OTHER (might be deprecated/not in use)
//-----------------------------------------------
BTC_BALANCE: 2// btc balance for test purposes,
};
 
module.exports = config;