Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Talib-macd not working in UI #525

Closed
edward81 opened this issue Dec 21, 2016 · 22 comments
Closed

Talib-macd not working in UI #525

edward81 opened this issue Dec 21, 2016 · 22 comments

Comments

@edward81
Copy link

xxx POST /api/backtest 500 103ms -
Error: non-error thrown: Child process has died.
at Object.onerror (/gekko-develop-old/node_modules/koa/lib/context.js:107:40)
at process._tickCallback (internal/process/next_tick.js:103:7)

@askmike
Copy link
Owner

askmike commented Dec 21, 2016

ah darn, I am working hard on getting a stable web UI going but I am not there yet. Is there anything else in your console?

@edward81
Copy link
Author

edward81 commented Dec 21, 2016

Nope sorry :/
I wanted to to take a look myself, but nodejs and everything is new to me and i can't debug child process because i get a duplicated address error with node-debug.

@askmike
Copy link
Owner

askmike commented Dec 21, 2016

duplicated address

Are you trying to run gekko --ui more than once? Because it can only bind to a port once.


Could you then tell me what dataset you selected for your backtest (and where you got that data from)?

@edward81
Copy link
Author

edward81 commented Dec 21, 2016

No, i just run "node-debug gekko.js --ui" everything is working fine. But, in the gui when i try the "scan available data" the "server" try to spawn another process with the same debug port.

Could you then tell me what dataset you selected for your backtest (and where you got that data from)?

Wrong browser tab? Btw i have 1 month of btc-e (not bitchina) data.

@askmike
Copy link
Owner

askmike commented Dec 21, 2016

No, i just run "node-debug gekko.js --ui" everything is working fine. But, in the gui when i try the "scan available data" the "server" try to spawn another process with the same debug port.

Why are you running it with node-debug? Does it work correctly with node gekko --ui?

@edward81
Copy link
Author

Wait wait. Two trouble here. First talib-macd not working with "node gekko.js --ui" and the second one is me unable to launch the ui with node-debug.

@askmike
Copy link
Owner

askmike commented Mar 11, 2017

A workaround is setting to this problem is setting this property to true:

https://github.com/askmike/gekko/blob/develop/web/routes/baseConfig.js#L16

I will reimplement talib integration, a config flag works great for the commandline version of gekko, but not so much for an UI like this.

@askmike
Copy link
Owner

askmike commented Mar 26, 2017

This has been fixed, if you have talib installed (npm install talib) Gekko will detect this and correctly use it :)

@askmike askmike closed this as completed Mar 26, 2017
@arulzzazmi
Copy link

that talib not suport in windows 7?

@askmike
Copy link
Owner

askmike commented Apr 30, 2017

I don't think so no, see here for details: oransel/node-talib#8

If you want to run talib right now you probably need to run linux in a VM or so I think.

There is another library that supports similar indicators and is supported on Windows, but it's not integrated into Gekko yet (see #708) - that would work the best.

@arulzzazmi
Copy link

thanks for the answer..
my ram is to low for open VM... or do you have strategy configuration that no need talib ?

@askmike
Copy link
Owner

askmike commented Apr 30, 2017

Gekko comes with 7 example strategies, 6 of those do not need talib (which is more meant for users creating their own strategies).

Here is a list, you can use any except for the bottom one (talib-macd).

https://gekko.wizb.it/docs/strategies/example_strategies.html


If you have more questions please open a new issue instead of commenting here please!

@shanehull
Copy link

shanehull commented Jun 14, 2017

Is this currently working on stable? I installed Gekko and TAlib, but gekko --ui doesn't seem to use it (says: "TAlib is disabled" when i start gekko --ui).

Output from gekko when trying to run backtest with talib-macd:
Error: non-error thrown: Child process has died. at Object.onerror (/root/gekko/node_modules/koa/lib/context.js:105:40) at <anonymous> at process._tickCallback (internal/process/next_tick.js:169:7)

Everything else works amazingly well, great project! Very excited for the UI live trader.

@askmike
Copy link
Owner

askmike commented Jun 14, 2017 via email

@shanehull
Copy link

shanehull commented Jun 14, 2017

You were right, it was the installation. It works fine after a trying again.

Edit: For anyone reading this who may be an npm/linux noob like me, my issue was that the DigitalOcean instance of ubuntu 16 needs a few packages in build-essential (eg. make) for npm to install talib. Install using apt-get install build-essential.

@shanehull
Copy link

Hmm, still getting an error when I try to run a backtest on talib-macd.

Here's what I get:

screen shot 2017-06-22 at 12 04 33 pm

@askmike
Copy link
Owner

askmike commented Jun 22, 2017

strange, I'll try to reproduce asap. @shanehull can you provide more information on your OS? And can you tell me what version of talib is installed (you can find that out by running npm list)?

@shanehull
Copy link

I'm running talib 1.0.3 installed on Ubuntu 16.04.

@askmike
Copy link
Owner

askmike commented Jun 22, 2017 via email

@t3ch9
Copy link

t3ch9 commented Jun 22, 2017

I had the same error with talib 1.0.3 on Ubuntu 16.04.

As per @askmike I removed and installed [email protected] and issue resolved.

@askmike
Copy link
Owner

askmike commented Jun 22, 2017

Great! I will work on integrating the latest version of talib asap.

@shanehull
Copy link

Great! I'll give that a try. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants