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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 28,432
» Latest member: RamaRehab
» Forum threads: 1,541
» Forum posts: 8,062

Full Statistics

Online Users
There are currently 280 online users.
» 2 Member(s) | 278 Guest(s)
Chronicleexhibitsllc, new88comso

Latest Threads
Gekko development status ...
Forum: Announcements
Last Post: BeardDemon
27 minutes ago
» Replies: 1,005
» Views: 930,187
Gekko 0.6 released
Forum: Announcements
Last Post: Pharagon
11-23-2024, 10:13 AM
» Replies: 122
» Views: 268,871
An official Gekko service...
Forum: Announcements
Last Post: drivemad2
11-22-2024, 07:24 AM
» Replies: 103
» Views: 189,685
New Gekko UI in the works
Forum: Announcements
Last Post: clduplicateremover
11-18-2024, 08:21 PM
» Replies: 174
» Views: 227,476
Gekko with malware spotte...
Forum: Announcements
Last Post: thesyrise
11-16-2024, 10:12 PM
» Replies: 188
» Views: 169,693
How to Soft Reset or Hard...
Forum: General Discussion
Last Post: lucifar
10-07-2021, 07:18 PM
» Replies: 22
» Views: 52,980
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 108,325
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 19,101
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 45,794
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 58,560

 
  Error at installing on Raspberry Pi
Posted by: phoenix-blue - 01-04-2018, 07:46 PM - Forum: Technical Support - Replies (8)

Hello,

I'm trying to install Gekko on an clean raspberry pi jessi, but get some errors.
The Rapi is up-to-date and i have install extr nodejs but when in use the command:

Code:
pi@raspberrypi:~/gekko $ npm install --only=production

I get net next error log:
Code:
> websocket@1.0.24 install /home/pi/gekko/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/home/pi/gekko/node_modules/websocket/build'
 CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
 SOLINK_MODULE(target) Release/obj.target/bufferutil.node
 COPY Release/bufferutil.node
 CXX(target) Release/obj.target/validation/src/validation.o
 SOLINK_MODULE(target) Release/obj.target/validation.node
 COPY Release/validation.node
make: Leaving directory '/home/pi/gekko/node_modules/websocket/build'

> sqlite3@3.1.11 install /home/pi/gekko/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.11/node-v59-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.11 and node@9.3.0 (node-v59 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/gekko/node_modules/sqlite3/build'
 ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
 TOUCH Release/obj.target/deps/action_before_build.stamp
 CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o
 AR(target) Release/obj.target/deps/sqlite3.a
 COPY Release/sqlite3.a
 CXX(target) Release/obj.target/node_sqlite3/src/database.o
In file included from ../../nan/nan.h:192:0,
                from ../src/database.h:10,
                from ../src/database.cc:4:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:73: warning: ‘v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated: Use CreateDataProperty / DefineOwnProperty [-Wdeprecated-declarations]
  return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
                                                                        ^
In file included from /home/pi/.node-gyp/9.3.0/include/node/v8.h:26:0,
                from /home/pi/.node-gyp/9.3.0/include/node/node.h:63,
                from ../../nan/nan.h:49,
                from ../src/database.h:10,
                from ../src/database.cc:4:
/home/pi/.node-gyp/9.3.0/include/node/v8.h:3115:29: note: declared here
                Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                            ^
/home/pi/.node-gyp/9.3.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
  declarator __attribute__((deprecated(message)))
  ^~~~~~~~~~
../src/database.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE node_sqlite3::Database::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/database.cc:133:96: error: no matching function for call to ‘v8::Object::ForceSet(v8::Local<v8::String>, v8::Local<v8::String>, v8::PropertyAttribute)’
    info.This()->ForceSet(Nan::New("filename").ToLocalChecked(), info[0].As<String>(), ReadOnly);
                                                                                               ^
In file included from /home/pi/.node-gyp/9.3.0/include/node/v8.h:26:0,
                from /home/pi/.node-gyp/9.3.0/include/node/node.h:63,
                from ../../nan/nan.h:49,
                from ../src/database.h:10,
                from ../src/database.cc:4:
/home/pi/.node-gyp/9.3.0/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                            ^
/home/pi/.node-gyp/9.3.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
  declarator __attribute__((deprecated(message)))
  ^~~~~~~~~~
/home/pi/.node-gyp/9.3.0/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from ‘v8::PropertyAttribute’ to ‘v8::Local<v8::Value>’
                Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                            ^
/home/pi/.node-gyp/9.3.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
  declarator __attribute__((deprecated(message)))
  ^~~~~~~~~~
../src/database.cc:134:86: error: no matching function for call to ‘v8::Object::ForceSet(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t, v8::PropertyAttribute)’
    info.This()->ForceSet(Nan::New("mode").ToLocalChecked(), Nan::New(mode), ReadOnly);
                                                                                     ^
In file included from /home/pi/.node-gyp/9.3.0/include/node/v8.h:26:0,
                from /home/pi/.node-gyp/9.3.0/include/node/node.h:63,
                from ../../nan/nan.h:49,
                from ../src/database.h:10,
                from ../src/database.cc:4:
/home/pi/.node-gyp/9.3.0/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                            ^
/home/pi/.node-gyp/9.3.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
  declarator __attribute__((deprecated(message)))
  ^~~~~~~~~~
/home/pi/.node-gyp/9.3.0/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from ‘v8::PropertyAttribute’ to ‘v8::Local<v8::Value>’
                Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                            ^
/home/pi/.node-gyp/9.3.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
  declarator __attribute__((deprecated(message)))
  ^~~~~~~~~~
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginOpen(node_sqlite3::Database::Baton*)’:
../src/database.cc:144:9: warning: unused variable ‘status’ [-Wunused-variable]
    int status = uv_queue_work(uv_default_loop(),
        ^~~~~~
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginClose(node_sqlite3::Database::Baton*)’:
../src/database.cc:230:9: warning: unused variable ‘status’ [-Wunused-variable]
    int status = uv_queue_work(uv_default_loop(),
        ^~~~~~
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginExec(node_sqlite3::Database::Baton*)’:
../src/database.cc:525:9: warning: unused variable ‘status’ [-Wunused-variable]
    int status = uv_queue_work(uv_default_loop(),
        ^~~~~~
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginLoadExtension(node_sqlite3::Database::Baton*)’:
../src/database.cc:625:9: warning: unused variable ‘status’ [-Wunused-variable]
    int status = uv_queue_work(uv_default_loop(),
        ^~~~~~
node_sqlite3.target.mk:113: recipe for target 'Release/obj.target/node_sqlite3/src/database.o' failed
make: *** [Release/obj.target/node_sqlite3/src/database.o] Error 1
make: Leaving directory '/home/pi/gekko/node_modules/sqlite3/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:159:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.59-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v59-linux-arm/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v59-linux-arm"
gyp ERR! cwd /home/pi/gekko/node_modules/sqlite3
gyp ERR! node -v v9.3.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v59-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v59-linux-arm' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/pi/gekko/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:159:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:943:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Linux 4.9.59-v7+
node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/gekko/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/gekko/node_modules/sqlite3
node-pre-gyp ERR! node -v v9.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.37
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v59-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v59-linux-arm' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@3.1.11 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.11 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2018-01-04T19_38_06_383Z-debug.log

Is there something i have forgot to install?


  Creating New Strategy Tutorial?
Posted by: jholley1 - 01-04-2018, 05:16 PM - Forum: Automated Trading - Replies (4)

Greetings, 

Could someone create a tutorial on how to create and implement a new strategy from scratch? I am a complete noob and need all of the help I can get. I think this project is awesome and the potential for something great is definitely here, I just need some step by step help getting this bot started. 

Thanks in advance for your reply, anything that could even point me in the right direction would be great. 

NOTE: I have read the documentation throughly and I am learning javascript but a Gekko specific tutorial would be awesome!


  advice indicator graph
Posted by: Joris tsja - 01-04-2018, 12:27 PM - Forum: General Discussion - Replies (1)

Hi, Is it possible to give sell advice multiple times in a row. 
So lets say you have amount in BTC and you want to sell 20% when you think you detected a peak and than again at the next peak?


Bug Requesting New Exchange: huobi.pro
Posted by: jaguar666 - 01-04-2018, 11:58 AM - Forum: Other exchanges - No Replies

Requesting New Exchange Platform: https://www.huobi.pro


  How long to import data ?!
Posted by: Blade - 01-04-2018, 09:58 AM - Forum: Kraken - Replies (5)

Hello,
do you have problem while importing data from kraken ? I try to import 1 month and I can't, it's hang on 1.84% and no error in the shell.
Thank you !

Edit1: Maybe this error is the problem:
(node:22427) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'date' of undefined
(node:22427) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


  Stop Limit on Exchanges Supporting it
Posted by: cubanhacker - 01-04-2018, 09:42 AM - Forum: Feature Requests - Replies (1)

We need stop limit capabilities, many exchanges implement this feature via API , I am a developer myself and can probably help ? However, need a basic understanding on where the code is to get involved...

https://www.investopedia.com/terms/s/sto...torder.asp

I would like to see it implemented on the exchange side rather than telling on Gekko to place the stop limit at market price using strategies. Proper portfolio risk management requires this feature in order to limit potential loses making them instead calculated risks. If you enter the market at a position regardless of the uptrend or downtrend, you should be able to set "set in stone" from the moment you take the position how much are you willing to lose on that bet.


  Requested New Exchange: Cryptopia
Posted by: md3inaustin - 01-04-2018, 03:12 AM - Forum: Other exchanges - Replies (7)

Requested New Exchange: https://www.cryptopia.co.nz


  Advanced Portfilio and Trade Management
Posted by: werkkrew - 01-03-2018, 10:34 PM - Forum: Feature Requests - Replies (3)

Just wanted to collect some Github feature requests and put them in one place as well as add some of my thoughts on the subject.  I encourage others to add to my lists of potential features.

I will likely attempt to work on this myself and submit a pull request when I can, unless someone else volunteers.

Corresponding Github Issues:

https://github.com/askmike/gekko/issues/1619
https://github.com/askmike/gekko/issues/1608
https://github.com/askmike/gekko/issues/1116
https://github.com/askmike/gekko/issues/937
https://github.com/askmike/gekko/issues/484

Summary: Allow for Advanced Portfolio Management - Either through the primary configuration of an instance of the bot, in a strategy itself, or both.

Details:

Portfolio Management - Should probably be configured on a per strategy runner/trader/strategy basis

  • Allow configuration of a percentage of the balance as is seen when the bot is started.  For example, you have 1 BTC and want the bot to use 20%.  When the bot starts it will take 20% of the 1 BTC and trade with a starting balance of 0.2 BTC.  Any profits or losses will belong to that instance of the bot.  If it makes money, it will have the new higher balance to work with.  Optionally, allow the calculation to be dynamic or static, meaning it will only ever use 20% of the starting balance even if it makes profit or allow it to use its own profits.
  • Similar to the above, give the bot a fixed amount of your balance to work with, example you have 1 BTC and want an instance of the bot to use 0.3 BTC, you can define that.
  • Similar to the above, give the bot a maximum it can work with.  For example, my entire portfolio except 0.1 BTC.
Trade Management - Should probably be configured per strategy
  • Limit amount per trade - example, only submit trades for 0.01 BTC each and limit it to X trades per time period or only submit new trades once price has moved by X
  • Proportional trade amount - example, trade with a minimum of X and a maximum of Y depending on trend strength
  • Match pings or don't - example, ensure pongs (round trip completions) from a specific ping match the traded amount of the ping or allow pongs to be calculated in the same way as pings based on trend strength
Example Use Cases:
  • Multiple Instances of the bot running against same asset or currency each given a proportion of the balance to work with
  • Not going all in on trends which are no strong
  • Stash profits away from bot so they are safe
  • Prevent too much directional trading
  • Allow for multiple round trips to be open at once
  • Allow for trading on both sides of the market
  • etc.


  Problems with coding my strategy
Posted by: lasseb - 01-03-2018, 06:49 PM - Forum: Automated Trading - Replies (1)

Hi

Congratz on new forum!

I have been trying for days \ weeks now to "program" the standard DEMA strategy like i want it. But cant seem to get it right and i have deleted all and trying to start all over again. Would be soooo gratefull if you could help me. 

So i have a clean standard DEMA strategy from you when i download right now. 

Im using Gdax for my exchange. I would like to use ema 12 \ ema 26 like its shown on gdax. 

My meaning about uptrend is when ema 12 is greather then ema 26, same with downtrend when ema 12 is less then ema 26


My problem and what i want the bot to do is: 
When ema 12 crosses ema 26 in a downtrend and ema 12 is 50 less then the crosspoint SELL,
So its not about the marketprice but about the crosspoint of the emas. . forexample if ema 12 crosses ema 26 at 12.000 i would like to sell at 11 950. But if  it dosent hit 11950 i dont want it to sell.

Same when buy: When ema 12 crosses ema 26 in a uptrend and ema 12 is greather then the crosspoint BUY. 
So if ema 12 crosses ema 26 in a uptrend at 12000 and ema 12 goes up to 12050 it BUYS. 


And when this is corrent, i would like the bot to buy and sell with limits.  Hope you can help


Do you have any soloution for me? cause im going crazy :p Huh



Attached Files
.png   my toughts.png (Size: 107.08 KB / Downloads: 38)

  Gekko Forum is now live!
Posted by: askmike - 01-03-2018, 04:18 PM - Forum: Announcements - No Replies

Long overdue is a place where people can discuss anything related to Gekko or automated trading, but it's finally here!

This forum will be a place for: discussions and support (in installing and creating algorithmic trading systems).