Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 28,473
» Latest member: siewkukurydzy
» Forum threads: 1,541
» Forum posts: 8,062

Full Statistics

Online Users
There are currently 282 online users.
» 0 Member(s) | 282 Guest(s)

Latest Threads
Gekko development status ...
Forum: Announcements
Last Post: BeardDemon
Today, 07:22 AM
» Replies: 1,005
» Views: 930,808
Gekko 0.6 released
Forum: Announcements
Last Post: Pharagon
11-23-2024, 10:13 AM
» Replies: 122
» Views: 268,998
An official Gekko service...
Forum: Announcements
Last Post: drivemad2
11-22-2024, 07:24 AM
» Replies: 103
» Views: 189,787
New Gekko UI in the works
Forum: Announcements
Last Post: clduplicateremover
11-18-2024, 08:21 PM
» Replies: 174
» Views: 227,581
Gekko with malware spotte...
Forum: Announcements
Last Post: thesyrise
11-16-2024, 10:12 PM
» Replies: 188
» Views: 170,035
How to Soft Reset or Hard...
Forum: General Discussion
Last Post: lucifar
10-07-2021, 07:18 PM
» Replies: 22
» Views: 53,000
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 108,350
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 19,107
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 45,818
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 58,574

 
Sad never trading
Posted by: henry - 02-17-2018, 11:05 AM - Forum: Technical Support - Replies (5)

hi all please help me i cant make any trade with gekko i do all thing and have BTC in bitfinex that gekko show my account but never make a trade its my config help please its make me crazy.....

// Everything is explained here:
// @link https://gekko.wizb.it/docs/commandline/plugins.html

var config = {};

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//                          GENERAL SETTINGS
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

config.debug = true; // for additional logging / debugging

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//                         WATCHING A MARKET
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

config.watch = {

  // see https://gekko.wizb.it/docs/introduction/...anges.html
  exchange: 'bitfinex',
  currency: 'BTC',
  asset: 'SAN',

  // You can set your own tickrate (refresh rate).
  // If you don't set it, the defaults are 2 sec for
  // okcoin and 20 sec for all other exchanges.
  // tickrate: 20
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//                       CONFIGURING TRADING ADVICE
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

config.tradingAdvisor = {
  enabled: true,
  method: 'CCI',
  candleSize: 5,
  historySize: 5,
}

// Exponential Moving Averages settings:
config.DEMA = {
  // EMA weight (α)
  // the higher the weight, the more smooth (and delayed) the line
  weight: 21,
  // amount of candles to remember and base initial EMAs on
  // the difference between the EMAs (to act as triggers)
  thresholds: {
    down: -0.025,
    up: 0.025
  }
};

// MACD settings:
config.MACD = {
  // EMA weight (α)
  // the higher the weight, the more smooth (and delayed) the line
  short: 10,
  long: 21,
  signal: 9,
  // the difference between the EMAs (to act as triggers)
  thresholds: {
    down: -0.025,
    up: 0.025,
    // How many candle intervals should a trend persist
    // before we consider it real?
    persistence: 1
  }
};

// PPO settings:
config.PPO = {
  // EMA weight (α)
  // the higher the weight, the more smooth (and delayed) the line
  short: 12,
  long: 26,
  signal: 9,
  // the difference between the EMAs (to act as triggers)
  thresholds: {
    down: -0.025,
    up: 0.025,
    // How many candle intervals should a trend persist
    // before we consider it real?
    persistence: 2
  }
};

// Uses one of the momentum indicators but adjusts the thresholds when PPO is bullish or bearish
// Uses settings from the ppo and momentum indicator config block
config.varPPO = {
  momentum: 'TSI', // RSI, TSI or UO
  thresholds: {
    // new threshold is default threshold + PPOhist * PPOweight
    weightLow: 120,
    weightHigh: -120,
    // How many candle intervals should a trend persist
    // before we consider it real?
    persistence: 0
  }
};

// RSI settings:
config.RSI = {
  interval: 14,
  thresholds: {
    low: 30,
    high: 70,
    // How many candle intervals should a trend persist
    // before we consider it real?
    persistence: 1
  }
};

// TSI settings:
config.TSI = {
  short: 13,
  long: 25,
  thresholds: {
    low: -25,
    high: 25,
    // How many candle intervals should a trend persist
    // before we consider it real?
    persistence: 1
  }
};

// Ultimate Oscillator Settings
config.UO = {
  first: {weight: 4, period: 7},
  second: {weight: 2, period: 14},
  third: {weight: 1, period: 28},
  thresholds: {
    low: 30,
    high: 70,
    // How many candle intervals should a trend persist
    // before we consider it real?
    persistence: 1
  }
};

// CCI Settings
config.CCI = {
    constant: 0.015, // constant multiplier. 0.015 gets to around 70% fit
    history: 5, // history size, make same or smaller than history
    thresholds: {
        up: 100, // fixed values for overbuy upward trajectory
        down: -100, // fixed value for downward trajectory
        persistence: 0 // filter spikes by adding extra filters candles
    }
};

// StochRSI settings
config.StochRSI = {
  interval: 3,
  thresholds: {
    low: 20,
    high: 80,
    // How many candle intervals should a trend persist
    // before we consider it real?
    persistence: 3
  }
};


// custom settings:
config.custom = {
  my_custom_setting: 10,
}

config['talib-macd'] = {
  parameters: {
    optInFastPeriod: 10,
    optInSlowPeriod: 21,
    optInSignalPeriod: 9
  },
  thresholds: {
    down: -0.025,
    up: 0.025,
  }
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//                       CONFIGURING PLUGINS
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

// do you want Gekko to simulate the profit of the strategy's own advice?
config.paperTrader = {
  enabled: false,
  // report the profit in the currency or the asset?
  reportInCurrency: true,
  // start balance, on what the current balance is compared with
  simulationBalance: {
    // these are in the unit types configured in the watcher.
    asset: 1,
    currency: 100,
  },
  // how much fee in % does each trade cost?
  feeMaker: 0.15,
  feeTaker: 0.25,
  feeUsing: 'maker',
  // how much slippage/spread should Gekko assume per trade?
  slippage: 0.05,
}

config.performanceAnalyzer = {
  enabled: true,
  riskFreeReturn: 5
}

// Want Gekko to perform real trades on buy or sell advice?
// Enabling this will activate trades for the market being
// watched by `config.watch`.
config.trader = {
  enabled: true,
  key: 'xxxxxxx',
  secret: 'xxxxx',
  username: '', // your username, only required for specific exchanges.
  passphrase: '', // GDAX, requires a passphrase.
  orderUpdateDelay: 1, // Number of minutes to adjust unfilled order prices
}

config.adviceLogger = {
  enabled: false,
  muteSoft: true // disable advice printout if it's soft
}

config.pushover = {
  enabled: false,
  sendPushoverOnStart: false,
  muteSoft: true, // disable advice printout if it's soft
  tag: '[GEKKO]',
  key: '',
  user: ''
}

// want Gekko to send a mail on buy or sell advice?
config.mailer = {
  enabled: false,       // Send Emails if true, false to turn off
  sendMailOnStart: true,    // Send 'Gekko starting' message if true, not if false

  email: '',    // Your Gmail address
  muteSoft: true, // disable advice printout if it's soft

  // You don't have to set your password here, if you leave it blank we will ask it
  // when Gekko's starts.
  //
  // NOTE: Gekko is an open source project < https://github.com/askmike/gekko >,
  // make sure you looked at the code or trust the maintainer of this bot when you
  // fill in your email and password.
  //
  // WARNING: If you have NOT downloaded Gekko from the github page above we CANNOT
  // guarantuee that your email address & password are safe!

  password: '',       // Your Gmail Password - if not supplied Gekko will prompt on startup.

  tag: '[GEKKO] ',      // Prefix all email subject lines with this

            //       ADVANCED MAIL SETTINGS
            // you can leave those as is if you
            // just want to use Gmail

  server: 'smtp.gmail.com',   // The name of YOUR outbound (SMTP) mail server.
  smtpauth: true,     // Does SMTP server require authentication (true for Gmail)
          // The following 3 values default to the Email (above) if left blank
  user: '',       // Your Email server user name - usually your full Email address 'me@mydomain.com'
  from: '',       // 'me@mydomain.com'
  to: '',       // 'me@somedomain.com, me@someotherdomain.com'
  ssl: true,        // Use SSL (true for Gmail)
  port: '',       // Set if you don't want to use the default port
}

config.pushbullet = {
    // sends pushbullets if true
  enabled: false,
    // Send 'Gekko starting' message if true
  sendMessageOnStart: true,
    // disable advice printout if it's soft
  muteSoft: true,
    // your pushbullet API key
  key: 'xxx',
    // your email, change it unless you are Azor Ahai
  email: 'jon_snow@westeros.org',
    // will make Gekko messages start mit [GEKKO]
  tag: '[GEKKO]'
};

config.kodi = {
  // if you have a username & pass, add it like below
  // http://user:pass@ip-or-hostname:8080/jsonrpc
  host: 'http://ip-or-hostname:8080/jsonrpc',
  enabled: false,
  sendMessageOnStart: true,
}

config.ircbot = {
  enabled: false,
  emitUpdates: false,
  muteSoft: true,
  channel: '#your-channel',
  server: 'irc.freenode.net',
  botName: 'gekkobot'
}

config.telegrambot = {
  enabled: false,
  emitUpdates: false,
  token: 'YOUR_TELEGRAM_BOT_TOKEN',
  botName: 'gekkobot'
}

config.twitter = {
    // sends pushbullets if true
  enabled: false,
    // Send 'Gekko starting' message if true
  sendMessageOnStart: false,
    // disable advice printout if it's soft
  muteSoft: false,
  tag: '[GEKKO]',
    // twitter consumer key
  consumer_key: '',
    // twitter consumer secret
  consumer_secret: '',
    // twitter access token key
  access_token_key: '',
    // twitter access token secret
  access_token_secret: ''
};

config.xmppbot = {
  enabled: false,
  emitUpdates: false,
  client_id: 'jabber_id',
  client_pwd: 'jabber_pw',
  client_host: 'jabber_server',
  client_port: 5222,
  status_msg: 'I\'m online',
  receiver: 'jabber_id_for_updates'
}

config.campfire = {
  enabled: false,
  emitUpdates: false,
  nickname: 'Gordon',
  roomId: null,
  apiKey: '',
  account: ''
}

config.redisBeacon = {
  enabled: false,
  port: 6379, // redis default
  host: '127.0.0.1', // localhost
    // On default Gekko broadcasts
    // events in the channel with
    // the name of the event, set
    // an optional prefix to the
    // channel name.
  channelPrefix: '',
  broadcast: [
    'candle'
  ]
}

config.slack = {
  enabled: false,
  token: '',
  sendMessageOnStart: true,
  muteSoft: true,
  channel: '' // #tradebot
}

config.ifttt = {
  enabled: false,
  eventName: 'gekko',
  makerKey: '',
  muteSoft: true,
  sendMessageOnStart: true
}

config.candleWriter = {
  enabled: false
}

config.adviceWriter = {
  enabled: false,
  muteSoft: true,
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//                       CONFIGURING ADAPTER
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

config.adapter = 'sqlite';

config.sqlite = {
  path: 'plugins/sqlite',

  dataDirectory: 'history',
  version: 0.1,

  journalMode: require('./web/isWindows.js') ? 'DELETE' : 'WAL',

  dependencies: []
}

  // Postgres adapter example config (please note: requires postgres >= 9.5):
config.postgresql = {
  path: 'plugins/postgresql',
  version: 0.1,
  connectionString: 'postgres://user:pass@localhost:5432', // if default port
  database: null, // if set, we'll put all tables into a single database.
  schema: 'public',
  dependencies: [{
    module: 'pg',
    version: '6.1.0'
  }]
}

// Mongodb adapter, requires mongodb >= 3.3 (no version earlier tested)
config.mongodb = {
  path: 'plugins/mongodb',
  version: 0.1,
  connectionString: 'mongodb://mongodb/gekko', // connection to mongodb server
  dependencies: [{
    module: 'mongojs',
    version: '2.4.0'
  }]
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//                       CONFIGURING BACKTESTING
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

// Note that these settings are only used in backtesting mode, see here:
// @link: https://gekko.wizb.it/docs/commandline/backtesting.html

config.backtest = {
  daterange: 'scan',
  batchSize: 50
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//                       CONFIGURING IMPORTING
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

config.importer = {
  daterange: {
    // NOTE: these dates are in UTC
    from: "2018-02-01 00:00:00"
  }
}

// set this to true if you understand that Gekko will
// invest according to how you configured the indicators.
// None of the advice in the output is Gekko telling you
// to take a certain position. Instead it is the result
// of running the indicators you configured automatically.
//
// In other words: Gekko automates your trading strategies,
// it doesn't advice on itself, only set to true if you truly
// understand this.
//
// Not sure? Read this first: https://github.com/askmike/gekko/issues/201
config['I understand that Gekko only automates MY OWN trading strategies'] = true;

module.exports = config;

the result:


.jpg   11.jpg (Size: 198.69 KB / Downloads: 16)

and after long time:


.jpg   12.jpg (Size: 283.73 KB / Downloads: 16)


  [SOLVED] ERROR database locked Binance
Posted by: RemcoCoin - 02-16-2018, 12:37 PM - Forum: Binance - Replies (6)

Who knows what this means ?

When i starting the strat runnen i get the error popup:
ERROR: Error: SQLITE_BUSY: database is locked 

What must i do ?


  Proportional Balance
Posted by: chbinder - 02-16-2018, 12:27 PM - Forum: Strategy Development - Replies (1)

Hi all,

I know that there are a few discussions about this topic but I didn't find out if this is possible or not - and if yes, how this can be achieved...

Right now I'm working on a strategy that works great in FOREX trading and I want to verify if this would work in crypto markets, as well.

The (FOREX) strategy gets open and close signals for long and short positions; i. e. the first signal opens a long/short position, the second one closes it. The sequence of trades is always long - short - long - short ... (as it only opens one position per up/down trend).

As gekko creates - more or less - "market" orders this requires a trade sequence (long) buy - sell - (short) sell - buy - (next long) buy - sell ... But, gekko always uses the whole balance for every trade and therefore it's not possible to create two similar trades back-to-back!

Befor I spend too much time I kindly ask the gekko professionals if there is a way (sure, in changing the functionality by programming (?)) to tell gekko that only e. g. 50% of the current balance should be used for every trade! If yes, where can I change this behaviour?

Many thanks for your support.

Best regards,
Christian


  [TUT] RaspberryPi3++Headless++VNC-Desktop
Posted by: susitronix - 02-16-2018, 04:36 AM - Forum: Guides - Replies (4)

RaspberryPi3 Desktop Headless VNC-Viewer Tutorial by philipp wyler
(i recomend buying a highspeed SDHC SDcard that makes raspi boot much faster)


    >>>Download Raspbian (faster install than noobs):
    //Raspbian Stretch with Desktop ZIP/torrent
    https://www.raspberrypi.org/downloads/raspbian/


    >>>Unzip using 7zip (recomended):
    //Download freeware
    http://download.cnet.com/7-Zip/3000-2250...45185.html
>>>Unzip your .img file using 7zip    //goto /user/downloads/
    

    >>>Prepare your SDHC card with SdCardFormatter:
    //Download freeware
    https://www.sdcard.org/downloads/formatter_4/
>>>Lounch SdCardFormatter and format SDHC-card   //(((((WARNING))))) SELECT APPROPRIATE DRIVE!!!


    >>>burn the Image onto your SDHC using Win32DiskImager:
    //Download freeware Win32DiskImager
    https://sourceforge.net/projects/win32di...t/download
>>>Lounch Win32DiskImager
>>>>>>>(((((WARNING))))) under device tab your SDHC location MUST BE SELECTED (drive ESmile
>>>>>>>click the small folder icon on top and SELECT YOUR RASPBIAN IMAGEFILE.
>>>>>>>click [WRITE]   //wait until finished. Installation of Raspbian is done.

    >>>Now we initiate the pi for lan/Wlan ssh connection:
>>>Open NOTEPAD (windows click start, write notepad and press enter to start notepad)
>>>SAVE AS: //click tab [file] [save as]   (no text needed)

>>>>>>>Location: //select your RaspberryPi Folder ON THE SDHC
>>>>>>>File name: "ssh"   //type: "ssh" WITH quotation mark!
>>>>>>>Save as type: All files >>> click SAVE


(((((WARNING))))) ALWAYS USE "SAVELY REMOVE HARDWARE" from your windows taskbar right side.


>>>Insert SDHC into your RaspberryPi WHILE POWER OFF.


>>>PowerON your RaspberryPi and dont touch for aprox. 2 minutes.


    >>>First we search our Network for find out the IP-adress, wich the DNS-server has choosen for for the Pi.
    >>>i am using: ios netAnalyzer (neat tool)
    //Download freeware
    http://download.cnet.com/Network-Scanner...59296.html
>>>Search for the IP address with name raspberry
    

    >>>for the configuration we use PUTTY CLI-cmd  (CLI=comand line interface)
    //Download freeware
    https://putty.org/
>>>Lounch PUTTY
>>>Enter your IP in the Field: Host Name (or IP address) //(192,133,1,75=FALSE) (192.133.1.75=TRUE)
>>>Click open enters the CLI-cmd
>>>login as:pi       //default user name
>>>password:raspberry     //default password

// CLI should look like this    

Code:
pi@raspberrypi:~ $


    >>>time for configuration: type
Code:
sudo raspi-config


//with the cursors select:    //initiate SDHC size
[7 Advanced Options]       //now cursor-right/left UNTIL <Select> is selected-->press enter
>>>choose: [Expand Filesystem]   //now cursor-right/left UNTIL <Select> is selected-->press enter

//with the cursors select:    //boot into desktop OS
[3 Boot Options]    //now cursor-right/left UNTIL <Select> is selected-->press enter
[B1 Desktop / CLI]    //now cursor-right/left UNTIL <Select> is selected-->press enter
[B4 Desktop Autologin]    //now cursor-right/left UNTIL <Select> is selected-->press enter

//with the cursors select:    //Enable VNC
[5 Interfacing Options]    //now cursor-right/left UNTIL <Select> is selected-->press enter
[P3 VNC]    //now cursor-right/left UNTIL <Select> is selected-->press enter

//close the config:
cursor-right/left UNTIL <Finish> is selected-->press enter
Like to REBOOT? select [YES]
>>>close PUTTY CLI-cmd


>>>after reboot open PUTTY CLI-cmd
    >>>configure the display options for VNC: //by editing the nano config text file

Code:
sudo nano /boot/config.txt


//use cursor up/down to navigate BELOW #hdmi_mode=1

Code:
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
hdmi_ignore_edid=5000080  //INSERT LINE AND ADD THIS TEXT
hdmi_group=2          //INSERT LINE AND ADD THIS TEXT
hdmi_mode=85          //INSERT LINE AND ADD THIS TEXT  //this will set the display Resolution @60Hz
                               //85=1280x720; 16=1024x768; 77=2560x1600
#uncomment to force a hdmi mode rather than........

    >>>finish Config press:
[ctrl] + [X]    //exit
[Y] = Yes    //do you want to save the file
[enter]        //File Name to write? //dont rename just hit enter!


//Reboot again
Code:
sudo reboot

>>>close PUTTY CLI-cmd


    >>>Download VNCviewer for Windows:
https://www.realvnc.com/en/connect/downl...r/windows/
>>>unzip to your desktop or C-drive   //no installation needed
>>>run VNCviewer
>>>enter your IP and press enter
>>>Username:pi       //default user name
>>>Password:raspberry     //default password
>>>OK



    Now Your inside RaspberryPi Desktop
    First we will FULLY update the Raspberry:
>>>Open Terminal=CLI-cmd and type:
Code:
sudo apt-get update    //Raspbian will fetch the Updates
sudo apt-get upgrade    //Raspbian will apply the Updates //wait patient!

The Raspberry installation is finnish.
Next we install Gekko:
 
*/This is from User: rick_rolled thanks again ;-)
https://forum.gekko.wizb.it/thread-10.html
/*

>>>open VNC=raspi desktop
>>>open Terminal (CLI-cmd)   //From nnow on we have a CLI in the raspi Desktop. PUTTY CLI not needed enymore.

Code:
    //Install nodejs and npm (https://www.raspberrypi.org/forums/viewt...p?t=141770)

curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
           // 6.x is latest verstion, but should be replaced by current version if available
sudo apt-get install nodejs -y

   //Install git
sudo apt-get install git

   //Install gekko
git clone git://github.com/askmike/gekko.git
cd gekko

   //Install gekko dependencies    //wait patient>>>dont touch until complete!
npm install --only=production

   //Install Tulip indicators
npm install tulind --only=production       //@rick_rolled just the tulip indicators were missing


   //Start gekko
node gekko --ui  (must be in ~/gekko) OR node /filepath/gekko --ui

This is it.
(((((NOTICE))))) the Password must be changed now because of enybody knows the Default Password:
>>>On Raspi Desktop top left, click on the fruit symbole.
>>>>>>>[Preferences]
>>>>>>>System (Tab)
>>>>>>>[Change Password]

Hope this helps.
Thanks: rick_rolled, Alexander Baran-Harper, AskMike, tommiehansen

I try askMikes Hint for Tip:
BTC 392hHafnMmHS8JWT6yDjdsX6mtEhQvTAq8
ETH 0x01d1897cE56347D936B9d8aceb422D8D2C958401


  Gekko works great but I have some questions
Posted by: rubinho - 02-15-2018, 07:36 AM - Forum: General Discussion - Replies (4)

What can I say but wow?  This platform is great.  I've got it up and running, written a strat using multiple indicators, backtested it and run it live (with pennies) and it all goes like clockwork.  Impressive!  Smile

A few things I am not sure on which I may have missed in the documentation. 
  1. What's the difference between check and update?  They both seem to do the same thing. 
  2. Do check/update get called at each quote from the exchange or just on a candlestick close?
  3. How do you trade at market rather than just candlestick close?
  4. When trading live, how do you get your exchange account balances and set the order quantity?  The advice long/short only seems to trade a single unit of the base currency. 
  5. When using indicators, is it possible to get them to plot on the backtest graph so you can check your buy/sell triggers are doing the correct thing?
Many thanks!  


  Running more than one Gekko instance on same exchange
Posted by: eugene - 02-15-2018, 06:19 AM - Forum: Technical Discussion - Replies (5)

Hi All,

Many thanks to Mike and contributors for creating and sharing such a great software.  

I'm pretty sure I've seen this issue discussed somewhere but couldn't find it again.

I've started second gekko instance on a same exchange but it looks like there will be a conflict if both trades will run as in below scenario i.e. :

1. BTC->USD
2. ETH->USD
3. USD->BTC
4. now USD balance is 0 and after some time if trade advisor decides to go long on ETH we will have a missed trade or have to refill the balance on the exchange

Is it possible to override the USD amount for order in step 3 so it will not use all available balance?
Can you please point to where to look in the code for this part ?


Thanks !


  [TUT] MERGE SQLite DATABASE FILES
Posted by: susitronix - 02-15-2018, 12:07 AM - Forum: Guides - Replies (4)

Gekko will create one db (database) file for every exchange. 

I had two Binance files from different computers.

The simplest way (thanks to TommieHansen) to MERGE these files is by using a tool:
SQliteStudio or phpLiteAdmin
(This tutorial is ONLY for SQliteStudio)

Download here:
https://sqlitestudio.pl/index.rvt
(click download on top of page, feel free to donate)

Only unpack the zip file and move to C/programs/ or User/Desktop. No Installation necessary
(Use Freeware 7zip)
http://download.cnet.com/7-Zip/3000-2250...45185.html

Double click >>> SQliteStudio.exe

Add the first database:
Menu >>> Database >>> [add Database]
In the popup window >>> click the small folder Icon
Choose /.../.../Gekko_Stable/History/YOUR FIRST .db FILE  // (example: binance_01.db)

Add the second database:
Menu >>> Database >>> [add Database]
In the popup window >>> click the small folder Icon
Choose  /YOUR SECOND .db FILE

On the left, double click your two .db files
Now you see your PAIRS:
candles_BTC/ETH

You can drag and drop [candles_BTC/ETH] like so:
>>> RightClickHold source file and move to the other Database >>>drop.
>>> choose COPY or MOVE
>>> repeat until your finished

Save the file, is not necessary since SQliteStudio establish a direct connection to the Database.
This allows us to edit/modify our .db WHILE it is in use by Gekko or other Clients.
>>> click/select on the .db file (binance_01)

>>>Menu >>> Database >>> [Disconnect from the Database]. (or click Icon)
Now your new .db is saved.
>>> No need to restart Gekko. ONLY click [Scan available data]


thanks to TommieHansen

I try askMikes Hint for Tip:
BTC 392hHafnMmHS8JWT6yDjdsX6mtEhQvTAq8
ETH 0x01d1897cE56347D936B9d8aceb422D8D2C958401


  Get imported history to extend data of market watchers
Posted by: bakardi - 02-14-2018, 07:06 PM - Forum: General Discussion - Replies (3)

Trying to find if there functionality to use imported data to extend marked watcher data to the trading bot. I see label on local data page:

The local data can also be used in a warmup period when running a strategy against a live market.

But I see that when I'm running strategy on UI it still running brand new watcher. Let me know if I'm doing something wrong? It became really painful to wait for the data from watcher if I kill wrong node process Smile
Thanks


Thumbs Up Using buy price of position in custom strategy
Posted by: reynard80 - 02-14-2018, 07:02 PM - Forum: Strategy Development - No Replies

Hello all,

I've been looking to use the buying price for a current position in my custom strategy, but I haven't been able to find an answer whether this is possible or not. I found a Git issue where this was proposed, but it seems this was not implemented.

Is it possible to use the buying price in a custom strategy? If so, how do I do that?

Thanks for all the good work!!


  portfolioManager-pinpong how to operate
Posted by: ankasem - 02-14-2018, 07:00 PM - Forum: Strategy Development - Replies (3)

hi all
gekko / plugins / trader in gekko
portfolioManager

how to operate

Looking for a small daily profit margin strategy
thank you