Gekko: Issue With TA-LIB indicators

Created on 4 May 2017  路  8Comments  路  Source: askmike/gekko

When I enable the Talib indicators in my strategy they tell me to install them (Error:

The plugin tradingAdvisor expects the module talib to be installed. However it is not, install it by running:

    npm install [email protected])

After I do so this is what i get

C:\Users\xxxx\Desktop\BOTS\gekko-stable>npm install [email protected]
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "[email protected]"
npm ERR! node v7.9.0
npm ERR! npm v4.2.0
npm ERR! code EBADPLATFORM

So can't we use them with windows 10 ?

npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin,linux","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: darwin,linux
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\xxxx\AppData\Roaming\npm-cache_logs\2017-05-04T01_17_35_913Z-debug.log

waiting-for-answer

Most helpful comment

You can run gekko with TA-lib on Bash on Windows 10 (as long as you are running the 64 bit version of Windows 10).
If you don't have Bash on Windows 10 yet, follow the instructions here

Step 1: Open up bash and install node.js: (taken from here)

sudo apt-get update
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

Step 2: Install Git

sudo apt-get install git

Step 3: Download and install gekko: (taken from here):

git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production

Step 4: Edit the handle.js file (taken from here)

Navigate to gekko/plugins/sqlite:

cd ~/gekko/plugins/sqlite

Change line 53 in handle.js from

db.run("PRAGMA journal_mode = WAL");

to

db.run("PRAGMA journal_mode = DEL");

(I use nano for this --> nano handle.js)

Step 5: navigate back to /gekko and make sure you have the correct version of talib (taken from here)

cd ~/gekko
npm remove talib
npm install [email protected]

Step 6: Start gekko:

node gekko --ui

Everything should work then!

All 8 comments

It compiles fine for me on windows 10 using bash

also npm install talib is sufficient you do not need the version number

Okay i'm going to try this and give you results

Still nothing it keeps saying the same error

Unfortunately TAlib is not really supported under windows, see this issue from the library Gekko uses for TAlib integration: https://github.com/oransel/node-talib/issues/8

There is nothing we can do about it at this point. There is a discussion going about using another TA library here: https://github.com/askmike/gekko/issues/708 But that is early stage and will take a while.

I suggest running linux (in a virtualbox or something if you really need talib).

You can run gekko with TA-lib on Bash on Windows 10 (as long as you are running the 64 bit version of Windows 10).
If you don't have Bash on Windows 10 yet, follow the instructions here

Step 1: Open up bash and install node.js: (taken from here)

sudo apt-get update
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

Step 2: Install Git

sudo apt-get install git

Step 3: Download and install gekko: (taken from here):

git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production

Step 4: Edit the handle.js file (taken from here)

Navigate to gekko/plugins/sqlite:

cd ~/gekko/plugins/sqlite

Change line 53 in handle.js from

db.run("PRAGMA journal_mode = WAL");

to

db.run("PRAGMA journal_mode = DEL");

(I use nano for this --> nano handle.js)

Step 5: navigate back to /gekko and make sure you have the correct version of talib (taken from here)

cd ~/gekko
npm remove talib
npm install [email protected]

Step 6: Start gekko:

node gekko --ui

Everything should work then!

Great instructions Deke, I reckon this is worth including in the Gekko documentation.

Bash on windows is great.

@thegamecat @askmike I created a PR to update the docs with this info.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thegamecat picture thegamecat  路  4Comments

GiordanoFlorian picture GiordanoFlorian  路  4Comments

godfrey68 picture godfrey68  路  3Comments

rcoenen picture rcoenen  路  3Comments

prathanbomb picture prathanbomb  路  3Comments