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



Search Forums

(Advanced Search)

Forum Statistics
» Members: 2,429
» Latest member: bitbot
» Forum threads: 461
» Forum posts: 2,591

Full Statistics

Online Users
There are currently 59 online users.
» 1 Member(s) | 58 Guest(s)

Latest Threads
Help with Trailing SL
Forum: Strategy Development
Last Post: crypto49er
3 hours ago
» Replies: 10
» Views: 182
[SHARE] Simple RSI BULL/B...
Forum: Strategy Development
Last Post: bitbot
4 hours ago
» Replies: 325
» Views: 109,496
[SHARE] GAB - Gekko Autom...
Forum: Third Party Software
Last Post: martyc
Today, 08:25 AM
» Replies: 120
» Views: 12,427
Error: cb(); is not a fun...
Forum: Technical Discussion
Last Post: faldor
Today, 06:57 AM
» Replies: 3
» Views: 37
Need help installing
Forum: Technical Discussion
Last Post: MickMack
Today, 01:12 AM
» Replies: 2
» Views: 26
Gekko 0.6 released
Forum: Announcements
Last Post: wewantmoore
Today, 12:25 AM
» Replies: 68
» Views: 2,858
Import From CommandLine N...
Forum: General Discussion
Last Post: faldor
Yesterday, 03:08 AM
» Replies: 2
» Views: 48
Gekko development status ...
Forum: Announcements
Last Post: ManuManu
07-20-2018, 11:26 PM
» Replies: 13
» Views: 2,080
A little code help please...
Forum: Strategy Development
Last Post: Kris191
07-20-2018, 12:54 PM
» Replies: 0
» Views: 41
Gekko Node.JS and Python/...
Forum: General Discussion
Last Post: aspiringtrader
07-20-2018, 01:54 AM
» Replies: 0
» Views: 41

  Error: cb(); is not a function
Posted by: faldor - Yesterday, 09:35 PM - Forum: Technical Discussion - Replies (3)

When importing a coin pair from Binance, and then running a live Gekko for paper trading I get the error:

TypeError: cb is not a function
  at afterWrite (_stream_writable.js:464:3)

I tried swapping out the line:

return _.map(_.cloneDeep(batch), function(trade) {

in tradeBatcher.js so that it used .clone instead of .cloneDeep per this bug report on lodash https://github.com/nodejs/node/issues/10985 but results didn't change.

Weird thing is when I remove the coin pair data so that I get all the data from the exchange, I don't have the error. This happens with other coin pairs as well.

The error was coming from:
line 464: var state = stream._writableState;

in gekko-stable\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_writable.js.

I updated the line to just be = true and I no longer get the error. Can someone tell me why this is happening? My normal language is C# and this doesn't make sense to me. Also, anyone know the correct fix to make for it?

  Need help installing
Posted by: MickMack - Yesterday, 09:01 PM - Forum: Technical Discussion - Replies (2)

Here is the CMD

Your environment has been set up for using Node.js 8.11.3 (x64) and npm.

C:\Users\xxx>cd downloads

C:\Users\xxx\Downloads>cd gekko-develop

C:\Users\xxxx\Downloads\gekko-develop>cd gekko-develop

C:\Users\xxxx\Downloads\gekko-develop\gekko-develop>npm install
npm ERR! request to https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz failed, reason: self signed certificate in certificate chain

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxxx\AppData\Roaming\npm-cache\_logs\2018-07-21T20_54_24_613Z-debug.log


No UI pops up when I hit enter.
Any help is appreciated

  A little code help please.
Posted by: Kris191 - 07-20-2018, 12:54 PM - Forum: Strategy Development - No Replies


I'm looking for some advice on how to get this strat to log in CLI the current indicator values & current price on every candle tick. I have included the strat code below, if someone could help me i would appreciate it massively...

var method = {};

method.init = function() {
 this.name = 'Triple Moving Average';
 this.requiredHistory = this.settings.long;

 this.addIndicator('short', 'SMA', this.settings.short)
 this.addIndicator('medium', 'SMA', this.settings.medium)
 this.addIndicator('long', 'SMA', this.settings.long)

method.update = function(candle) {

method.check = function() {
 const short = this.indicators.short.result;
 const medium = this.indicators.medium.result;
 const long = this.indicators.long.result;

 if((short > medium) && (medium > long)) {
 } else if((short < medium) && (medium > long)) {
 } else if(((short > medium) && (medium < long))) {
 } else {

module.exports = method;

Thank you

  Import From CommandLine Not Storing Anywhere
Posted by: faldor - 07-20-2018, 02:38 AM - Forum: General Discussion - Replies (2)

When running imports from the Web UI I was getting data stored in the \history folder. When running imports using commandline via node gekko --config config.js --import, it doesn't appear that data is being saved anywhere. Am I doing something wrong? The data is showing trades being processed and eventually gets to "Done importing!".

  Gekko Node.JS and Python/C++
Posted by: aspiringtrader - 07-20-2018, 01:54 AM - Forum: General Discussion - No Replies

So, I have been doing a lot of research regarding setting up trading bots and algorithmic trading. 

I have seen a few times, mentioned mostly in random forum posts, that javascript should be avoided for financial applications, due to floating point numbers. The responses would rather suggest the use of Python, or C++ for trading bot. 

My question is, has javascript evolved to now be able to handle floating point numbers? (which i think are decimals?)

If not, how does Gekko work around this? 

Thanks in advance, this topic has got me interested more than anything else has in my 23 years of life.

  Windows x64 Install Error
Posted by: tarkan - 07-19-2018, 11:50 PM - Forum: Technical Discussion - No Replies

Hi, during the installation i got the errors below. 

C:\Users\tarka\Downloads\gekko-develop\gekko-develop\exchange>npm install --only=production
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\tarka\AppData\Roaming\npm-cache\_logs\2018-07-19T23_45_14_920Z-debug.log

I done exactly the same what on the install page was written.

Thank you for your help,

  Live Gekko Not Using Imported Data
Posted by: faldor - 07-19-2018, 11:09 PM - Forum: General Discussion - Replies (2)

When running a Market watcher/Strat runner, it seems to get the data from fresh when I have already imported data for the same trading pair and exchange up till now. I would expect the Live Gekkos to piece together the imported data with the fresh data to make up the "Warmup Period" that my Live Gekko needs. When running a live gekko on 12 hour candles and a warmup period of 90 (using EMA(90)) in my strat, it would take over a month of fresh data if it doesn't utilize the imported data I have already got. Is this how Gekko is supposed to work? If so, could I easily get it to use imported data and piece together any data inbetween to get my live gekkos making calls instantly?


Posted by: alove - 07-19-2018, 08:06 AM - Forum: General Discussion - No Replies

style. They are not free reviews. Before starting with the theory, you have to record these figures on

Posted by: Arrep1977 - 07-19-2018, 07:33 AM - Forum: General Discussion - No Replies

in the In a holding true trim forskolin pattern-in-aid of a merit-based grinding Mercenary, politic fats, unquestionably grains and both herbs and flavors for flavor. far into consideration is divest to guarantee insincere the synod winds there uncultivated tight and inflexible. The true trim forskolin program is wide-ranging of "The

  Profit calcs - gui - 0.6.2 develop
Posted by: martyc - 07-18-2018, 08:07 PM - Forum: Technical Discussion - Replies (3)

Is it the intention of the roundtrip profit calcs to be cumulative or should each round trip have it's own profit calc?

Attached Files
.png   profit-roundtrip.png (Size: 43.66 KB / Downloads: 6)