Bitcoin Forum
November 07, 2024, 12:42:31 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 »
  Print  
Author Topic: Gekko - a javascript trading bot and backtesting platform  (Read 147874 times)
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 05, 2013, 07:30:25 PM
 #121

ok no page or anything so it's all done in terminal but why does mine site there and thats all?

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
whydifficult (OP)
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
July 05, 2013, 08:02:22 PM
 #122

Can i use this to trade LTC at BTC-e?

Not at this moment, there are plans as discussed on Github though.

Nope, no web page.

Anyway, using Bitstamp all of a sudden, everything is NaN

Hmm that's a bug for sure, I'll look into this in an hour or so! You are using the latest version, right?

ok no page or anything so it's all done in terminal but why does mine site there and thats all?

The bot looks at the market every [interval] to see wether the EMA strategy suggests to go either long or short (you should either buy or sell bitcoin) by riding the trend. You can change the settings in config.js, take a look at this document which describes what everything means.

[interval] is a setting of the EMA strategy which is the period in minutes per candle. This means Gekko will only recheck what to do every [interval] minutes, default is 60 minutes.

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
jago25_98
Hero Member
*****
Offline Offline

Activity: 900
Merit: 1000


Crypto Geek


View Profile WWW
July 05, 2013, 10:18:16 PM
 #123

That's strange... I get no update after an hour (interval is 60 in config.js)... in fact I left it for a day and no update. It just checks the EMA once and then no more... but continues running.
If I quit and rerun it does the same - gives one advice and then no more

How do you know it's still working? I ran it, it gave one trade advice... and nothing else since...
By default it runs every hour.

Bitcoiner since the early days. Crypto YouTube Channel: Trading Nomads | Analyst | News Reporter | Bitcoin Hodler | Support Freedom of Speech!
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 12:14:18 AM
 #124

That's strange... I get no update after an hour (interval is 60 in config.js)... in fact I left it for a day and no update. It just checks the EMA once and then no more... but continues running.
If I quit and rerun it does the same - gives one advice and then no more

How do you know it's still working? I ran it, it gave one trade advice... and nothing else since...
By default it runs every hour.
I'm having the same problem it's not working for me

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
whydifficult (OP)
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
July 06, 2013, 01:03:45 AM
 #125

I have finally found the bug regarding BTC-e monitoring. Gekko broke over BTC-e monitoring because bitcoinCharts (the API Gekko uses to get trade data from BTC-e) changed the way services can ask for trade data (silently).

Current workaround for BTC-e users:
  • Set debug in the config to true (line 145)
  • Set the candles to something lower than 40 (line 22)
  • Run Gekko
  • Check whether the calulcated EMAs are NaN, if they are lower the 40 number

The reason the 40 number can be different is that now bitcoinCharts will return the last 2000 trades, and how long ago the oldest one happened depends on the market.

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 01:09:41 AM
 #126

I have finally found the bug regarding BTC-e monitoring. Gekko broke over BTC-e monitoring because bitcoinCharts (the API Gekko uses to get trade data from BTC-e) changed the way services can ask for trade data (silently).

Current workaround for BTC-e users:
  • Set debug in the config to true (line 145)
  • Set the candles to something lower than 40 (line 22)
  • Run Gekko
  • Check whether the calulcated EMAs are NaN, if they are lower the 40 number

The reason the 40 number can be different is that now bitcoinCharts will return the last 2000 trades, and how long ago the oldest one happened depends on the market.
Ok I'll try that but how do I set up a trade or anything like that I've read this config 100 times maybe for people like me lol you can show a example than I can go off that.

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
whydifficult (OP)
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
July 06, 2013, 01:13:33 AM
 #127

let me know if it works!

Did you see this document? Anyway here is how you can configure Gekko to auto trade on BTC-e:

Code:
config.normal = {
  enabled: true,
  exchange: 'BTCe', // 'MtGox', 'BTCe' or 'Bitstamp'
  currency: 'USD',
  asset: 'BTC',
  tradingEnabled: true,
  key: 'your API key',
  secret: 'your API secret',
}

The API key and secret can be generated on the profile page on btce. Gekko only need trade rights.

I'm off to bed now.

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 01:17:14 AM
 #128

let me know if it works!

Did you see this document? Anyway here is how you can configure Gekko to auto trade on BTC-e:

Code:
config.normal = {
  enabled: true,
  exchange: 'BTCe', // 'MtGox', 'BTCe' or 'Bitstamp'
  currency: 'USD',
  asset: 'BTC',
  tradingEnabled: true,
  key: 'your API key',
  secret: 'your API secret',
}

The API key and secret can be generated on the profile page on btce. Gekko only need trade rights.

I'm off to bed now.
Wait where do I set the trade I'm trying for a different coin not btc I think I just set it to the coin I want but than where do I put the price I want to buy and sell at

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 01:46:33 AM
 #129

ok i've set this up again now i get this
node gekko

/Users/chiznillen/gekko/config.js:28
 Monitor the live market
         ^^^
SyntaxError: Unexpected identifier
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.util.getConfig (/Users/chiznillen/gekko/util.js:9:12)
    at Object.<anonymous> (/Users/chiznillen/gekko/util.js:66:19)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
jago25_98
Hero Member
*****
Offline Offline

Activity: 900
Merit: 1000


Crypto Geek


View Profile WWW
July 06, 2013, 07:30:31 AM
 #130

There is no set price to buy and sell at - it's does it based on the EMA rate

let me know if it works!

Did you see this document? Anyway here is how you can configure Gekko to auto trade on BTC-e:

Code:
config.normal = {
  enabled: true,
  exchange: 'BTCe', // 'MtGox', 'BTCe' or 'Bitstamp'
  currency: 'USD',
  asset: 'BTC',
  tradingEnabled: true,
  key: 'your API key',
  secret: 'your API secret',
}

The API key and secret can be generated on the profile page on btce. Gekko only need trade rights.

I'm off to bed now.
Wait where do I set the trade I'm trying for a different coin not btc I think I just set it to the coin I want but than where do I put the price I want to buy and sell at

Bitcoiner since the early days. Crypto YouTube Channel: Trading Nomads | Analyst | News Reporter | Bitcoin Hodler | Support Freedom of Speech!
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 08:03:30 AM
 #131

There is no set price to buy and sell at - it's does it based on the EMA rate

let me know if it works!

Did you see this document? Anyway here is how you can configure Gekko to auto trade on BTC-e:

Code:
config.normal = {
  enabled: true,
  exchange: 'BTCe', // 'MtGox', 'BTCe' or 'Bitstamp'
  currency: 'USD',
  asset: 'BTC',
  tradingEnabled: true,
  key: 'your API key',
  secret: 'your API secret',
}

The API key and secret can be generated on the profile page on btce. Gekko only need trade rights.

I'm off to bed now.
Wait where do I set the trade I'm trying for a different coin not btc I think I just set it to the coin I want but than where do I put the price I want to buy and sell at
Ok thanks but did you see above I put my keys in but it won't do anything now looks like it errors out

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
whydifficult (OP)
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
July 06, 2013, 08:34:57 AM
Last edit: July 06, 2013, 08:54:05 AM by whydifficult
 #132

Wait where do I set the trade I'm trying for a different coin not btc I think I just set it to the coin I want but than where do I put the price I want to buy and sell at

On BTC-e Gekko currently only supports BTC. You can read every supported currency pair per exchange here. There is a discussion about using a different data provider so that altcoins are supported on Github. But unfortunatly this is not possible yet.

ok i've set this up again now i get this
node gekko

/Users/chiznillen/gekko/config.js:28
 Monitor the live market
         ^^^
SyntaxError: Unexpected identifier
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.util.getConfig (/Users/chiznillen/gekko/util.js:9:12)
    at Object.<anonymous> (/Users/chiznillen/gekko/util.js:66:19)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

Line 28 is a comment, this is so I can explain what the block below does. Comments always need a double slash in front of them. So you should change:

Code:
 Monitor the live market

 to
 
Code:
// Monitor the live market

Note that Gekko is a very technical tool, if you are having a lot of trouble with editing configuration files and watching the command line instead of a screen with a graph I recommand you to check out these similar projects. They are more focused on a user friendly tool.


EDIT:

The API key and secret can be generated on the profile page on btce. Gekko only need trade rights.

Correction: gekko need trade and info right on BTC-e, so that it knows the size of the orders it needs to create.

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 02:12:04 PM
 #133

Wait where do I set the trade I'm trying for a different coin not btc I think I just set it to the coin I want but than where do I put the price I want to buy and sell at

On BTC-e Gekko currently only supports BTC. You can read every supported currency pair per exchange here. There is a discussion about using a different data provider so that altcoins are supported on Github. But unfortunatly this is not possible yet.

ok i've set this up again now i get this
node gekko

/Users/chiznillen/gekko/config.js:28
 Monitor the live market
         ^^^
SyntaxError: Unexpected identifier
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.util.getConfig (/Users/chiznillen/gekko/util.js:9:12)
    at Object.<anonymous> (/Users/chiznillen/gekko/util.js:66:19)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

Line 28 is a comment, this is so I can explain what the block below does. Comments always need a double slash in front of them. So you should change:

Code:
 Monitor the live market

 to
 
Code:
// Monitor the live market

Note that Gekko is a very technical tool, if you are having a lot of trouble with editing configuration files and watching the command line instead of a screen with a graph I recommand you to check out these similar projects. They are more focused on a user friendly tool.


EDIT:

The API key and secret can be generated on the profile page on btce. Gekko only need trade rights.

Correction: gekko need trade and info right on BTC-e, so that it knows the size of the orders it needs to create.
Thanks do you plan on adding any alt-coins at all kinda want this for ltc and the other you pointed out to me only does gox

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
pulsecat
Full Member
***
Offline Offline

Activity: 220
Merit: 100



View Profile WWW
July 06, 2013, 05:44:48 PM
 #134


Note that Gekko is a very technical tool, if you are having a lot of trouble with editing configuration files and watching the command line instead of a screen with a graph I recommand you to check out these similar projects. They are more focused on a user friendly tool.


Those who are experiencing problems with installing tools mentioned above, may also try http://CryptoTrader.org - web-based scripting platform that allows to run your own trading algorithms on historical mtgox data very easily. For details, check out this comment https://bitcointalk.org/index.php?topic=222696.msg2668832#msg2668832

CryptoTrader.org - Cloud-based Automated Trading on Bitstamp/BTC-E/CEX.IO/Bitfinex/Kraken | Discussion topic at Bitcointalk.org | Automated Trading Contest (Prize 2 BTC)
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 06:16:35 PM
 #135

anything out that will do LTC or alt-coins at all ??

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
daybyter
Legendary
*
Offline Offline

Activity: 965
Merit: 1000


View Profile
July 06, 2013, 06:27:17 PM
 #136

Maybe Aido...

My stuff can do various coin pairs.

I already released some API implementations:

https://github.com/ReAzem/cryptocoin-tradelib

Maybe you can use it...

MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 06:33:55 PM
 #137

Maybe Aido...

My stuff can do various coin pairs.

I already released some API implementations:

https://github.com/ReAzem/cryptocoin-tradelib

Maybe you can use it...
Can this be compiled on a mac ?

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
daybyter
Legendary
*
Offline Offline

Activity: 965
Merit: 1000


View Profile
July 06, 2013, 06:37:13 PM
 #138

Java should work everywhere...

But it's not the actual app...just the API implementations...

MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
July 06, 2013, 07:14:33 PM
 #139

Java should work everywhere...

But it's not the actual app...just the API implementations...
Oh ok but I'm not sure how to add that info in or anything like that would you care to help?

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
jago25_98
Hero Member
*****
Offline Offline

Activity: 900
Merit: 1000


Crypto Geek


View Profile WWW
July 06, 2013, 08:58:14 PM
 #140

With backtesting on this I found 0.80/0.80 was better... thus perhaps best to change the gekko config file to:
"
  sellTreshold: -0.80,
  buyTreshold: 0.80
"
?


Note that Gekko is a very technical tool, if you are having a lot of trouble with editing configuration files and watching the command line instead of a screen with a graph I recommand you to check out these similar projects. They are more focused on a user friendly tool.


Those who are experiencing problems with installing tools mentioned above, may also try http://CryptoTrader.org - web-based scripting platform that allows to run your own trading algorithms on historical mtgox data very easily. For details, check out this comment https://bitcointalk.org/index.php?topic=222696.msg2668832#msg2668832

Bitcoiner since the early days. Crypto YouTube Channel: Trading Nomads | Analyst | News Reporter | Bitcoin Hodler | Support Freedom of Speech!
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!