Bitcoin Forum
December 08, 2016, 02:16:47 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
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 »
  Print  
Author Topic: Chrome Browser extension: MtGox trading bot  (Read 67282 times)
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
March 06, 2012, 03:57:34 PM
 #1

There is a topic Goomboo's Journal, in the Speculation board - I learned a lot there.

Let me present you a Chrome extension that is able to automatically follow the trading strategy explained by Goomboo in that topic (so people could get some sleep).

How it works
  • This is not a high frequency trading bot. It is making decisions to trade, based on H1 historical prices (at most 1 trade every 2 hours, but in practice rather ~1 trade per day)
  • The bot executes trades automatically, without a warning, according to the current trend. It does not wait for the EMA lines to cross first! Read also here
  • Any SELL executed by the bot will sell all the bitcoins available at the account. Any BUY will spend all the USD you have there, turning them into bitcoins - all at the current market price

Installation
  • You can install the extension here: https://chrome.google.com/webstore/detail/iejmifigokhpcgpmoacllcdiceicmejb
  • After installing, wait for it to fetch the historical prices and then (after the "progress bar" turns into a number) go the Options to configure your MtGox API Key (also some other options if you want)
  • After you configure the API access, just leave your browser running 24/7 and it will be trading for you, according to the trend

Security
I don't care about any feedback like 'I don't trust you', so don't bother letting me know. In fact if I were you I wouldn't trust myself either. Smiley
But here is what you should know to protect yourself from a potential fraud:
  • The bot uses the MtGox API and it does not require you to be logged into your MtGox account at any time. So better don't be
  • Setup the API key (in your MtGox account settings), to only allow get_info and trade access right - this way the bot cannot do you much harm, even if I wanted to

Warning!
This is an early version.
Until more people test it and the code gets well reviewed, I strongly advise you to try it only with a testing account and a small amount in.


I'm looking forward for any feedback or questions. Otherwise, have fun with it! Smiley

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
1481163407
Hero Member
*
Offline Offline

Posts: 1481163407

View Profile Personal Message (Offline)

Ignore
1481163407
Reply with quote  #2

1481163407
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Otoh
Donator
Legendary
*
Offline Offline

Activity: 1918



View Profile
March 06, 2012, 04:05:31 PM
 #2

I look forward to testing it on a mini me Mt.Gox account

Node40.com is a leader in DASH hosting, dedicated exclusively to fully managed masternode hosting. Professional, organized, and responsive. I have many dozens of nodes with them.    
BTC = $c²     BTC = 1otohotohMoQoxHuxLBveQiZcV3Pji3Tc      DASH, Digital Cash = www.dash.org   
   CHARITY | MY REP | DICE
Timbo925
Sr. Member
****
Offline Offline

Activity: 352



View Profile
March 06, 2012, 04:32:26 PM
 #3

I look forward to testing it on a mini me Mt.Gox account

subscribing to this.  Grin

Graphic Designer for hire (Ads/Logos/Banners...)   0.25 BTC  --> https://bitcointalk.org/index.php?topic=78924.msg878727#msg878727
BTC address: 1TimbojaydbZs1x5ptPVovsb9rATH3JSU
CrownCloud
Sr. Member
****
Offline Offline

Activity: 467


View Profile
March 06, 2012, 04:46:14 PM
 #4

Trying this now Smiley Hope it works out well Smiley Looks neat Cheesy

CrownCloud - Internet Services
Dedicated servers, OpenVZ and KVM based VPSes and  in 4 locations. (We accept Bitcoin !)
http://crowncloud.net/
muyuu
Donator
Legendary
*
Offline Offline

Activity: 924



View Profile
March 06, 2012, 04:56:31 PM
 #5

Interesting concept.

GPG ID: 7294199D - OTC ID: muyuu (470F97EB7294199D)
forum tea fund BTC 1Epv7KHbNjYzqYVhTCgXWYhGSkv7BuKGEU DOGE DF1eTJ2vsxjHpmmbKu9jpqsrg5uyQLWksM CAP F1MzvmmHwP2UhFq82NQT7qDU9NQ8oQbtkQ
Crypt_Current
Hero Member
*****
Offline Offline

Activity: 686


Shame on everything; regret nothing.


View Profile
March 06, 2012, 06:16:01 PM
 #6

Can you make the source code available?

10% off at CampBX for LIFE:  https://campbx.com/main.php?r=C9a5izBQ5vq  ----  Authorized BitVoucher MEGA reseller (& BTC donations appreciated):  https://bitvoucher.co/affl/1HkvK8o8WWDpCTSQGnek7DH9gT1LWeV5s3/
LTC:  LRL6vb6XBRrEEifB73DiEiYZ9vbRy99H41  NMC:  NGb2spdTGpWj8THCPyCainaXenwDhAW1ZT
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
March 06, 2012, 06:22:49 PM
 #7

Can you make the source code available?
The extension is the source code itself - you can download it from google apps, even without installing.
But if you don't know how, this is the current version: http://speedy.sh/z2eTZ/mtbot.zip

This may also come handy: http://www.google.com/support/forum/p/Chrome/thread?tid=76ac2782e7f28bd4
the crx file is in fact a zip file - just rename it and there will be the source code inside.

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Crypt_Current
Hero Member
*****
Offline Offline

Activity: 686


Shame on everything; regret nothing.


View Profile
March 06, 2012, 06:24:40 PM
 #8

Also, I got the API key, but what do I put for the "secret"?

10% off at CampBX for LIFE:  https://campbx.com/main.php?r=C9a5izBQ5vq  ----  Authorized BitVoucher MEGA reseller (& BTC donations appreciated):  https://bitvoucher.co/affl/1HkvK8o8WWDpCTSQGnek7DH9gT1LWeV5s3/
LTC:  LRL6vb6XBRrEEifB73DiEiYZ9vbRy99H41  NMC:  NGb2spdTGpWj8THCPyCainaXenwDhAW1ZT
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
March 06, 2012, 06:29:39 PM
 #9

Also, I got the API key, but what do I put for the "secret"?
Both the values are at the same MtGox page:


Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
moocow1452
Sr. Member
****
Offline Offline

Activity: 240

Don't mind me.


View Profile
March 06, 2012, 06:33:22 PM
 #10

Coolio. How would a bunch of these effect the econ at any given time? Granted we have people with way too much time on their hands already, but if the bit market starts to slump, this could seriously mess with the network at large, right?
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
March 06, 2012, 06:35:21 PM
 #11

Coolio. How would a bunch of these effect the econ at any given time? Granted we have people with way too much time on their hands already, but if the bit market starts to slump, this could seriously mess with the network at large, right?
No, I don't think so. But you never know... Smiley

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Crypt_Current
Hero Member
*****
Offline Offline

Activity: 686


Shame on everything; regret nothing.


View Profile
March 06, 2012, 06:35:45 PM
 #12

Also, I got the API key, but what do I put for the "secret"?
Both the values are at the same MtGox page:



Hmm, my gox settings page does not look like this...

10% off at CampBX for LIFE:  https://campbx.com/main.php?r=C9a5izBQ5vq  ----  Authorized BitVoucher MEGA reseller (& BTC donations appreciated):  https://bitvoucher.co/affl/1HkvK8o8WWDpCTSQGnek7DH9gT1LWeV5s3/
LTC:  LRL6vb6XBRrEEifB73DiEiYZ9vbRy99H41  NMC:  NGb2spdTGpWj8THCPyCainaXenwDhAW1ZT
Crypt_Current
Hero Member
*****
Offline Offline

Activity: 686


Shame on everything; regret nothing.


View Profile
March 06, 2012, 06:37:15 PM
 #13

Also, I got the API key, but what do I put for the "secret"?
Both the values are at the same MtGox page:



Hmm, my gox settings page does not look like this...

Nevermind; I got it now

10% off at CampBX for LIFE:  https://campbx.com/main.php?r=C9a5izBQ5vq  ----  Authorized BitVoucher MEGA reseller (& BTC donations appreciated):  https://bitvoucher.co/affl/1HkvK8o8WWDpCTSQGnek7DH9gT1LWeV5s3/
LTC:  LRL6vb6XBRrEEifB73DiEiYZ9vbRy99H41  NMC:  NGb2spdTGpWj8THCPyCainaXenwDhAW1ZT
moocow1452
Sr. Member
****
Offline Offline

Activity: 240

Don't mind me.


View Profile
March 06, 2012, 06:42:44 PM
 #14

Bad that I can't make heads or tails of economic theory outside of "buy low, sell high," but I immediately figure that I should have used affect instead of effect in my post. Why am I trading again? Roll Eyes
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
March 06, 2012, 06:47:53 PM
 #15

Why am I trading again? Roll Eyes
I don't know why you are trading... I am trading to multiply my bitcoins, but to be honest: with no real success so far... maybe if it was May 2011...?

I found it actually much more efficient to go to work, from time to time, and then "multiply" my bitcoins using the money I earned there Roll Eyes

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
2weiX
Legendary
*
Offline Offline

Activity: 1638


View Profile
March 06, 2012, 06:54:52 PM
 #16

so in
BTC-engineer
Sr. Member
****
Offline Offline

Activity: 338



View Profile
March 06, 2012, 07:04:23 PM
 #17

Thanks piotr_n for this nice tool. Just installed and playing around with it.

I've two questions.

1. I'm a little bit confused about your statement regarding the EMA line crossing ("The bot executes trades automatically, without a warning, according to the current trend. It does not wait for the EMA lines to cross first!").  
Isn't it always a crossing of the lines when the treshold value under option is >0% ?

2. I'm also interesting in looking into the sourcecode and modify it. I haven't any experience with chrome extentions, so maybe my question is very stupid. I've found the code under chrome->Extentions->...
If I would like to make some code modifications, do I first have to stop chrome and start it after the modification or is there any kind of reloading procedure?

  
carafleur
Member
**
Offline Offline

Activity: 94


lost@bitcoinica.com


View Profile
March 06, 2012, 07:15:54 PM
 #18

Thanks for your work piotr_n !
I'm new at trading, but isn't the default 0.25% treshold a little low ?
considering mtgox fees are 0.6% , aren't we losing money when price doesn't move enough ?

Anyway, I put 2.36 btc in there, let's see where it goes Wink
I will consider donating 5% of gains every week if it works !

“We build but to tear down. Most of our work and resource is squandered. Our onward march is marked by devastation. Everywhere there is an appalling loss of time, effort and life. A cheerless view, but true"
“Most certainly, some planets are not inhabited, but others are, and among these there must exist life under all conditions and phases of development.”

Tesla N
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
March 06, 2012, 07:18:30 PM
 #19

Thanks piotr_n for this nice tool. Just installed and playing around with it.

I've two questions.
Sure, you're welcome - finally some normal questions Smiley

Quote
1. I'm a little bit confused about your statement regarding the EMA line crossing ("The bot executes trades automatically, without a warning, according to the current trend. It does not wait for the EMA lines to cross first!").  
Isn't it always a crossing of the lines when the treshold value under option is >0% ?
The treshold defines how much the two lines need to be apart to trigger a trade.
It has nothing to do with crossing.
For instance, if you have a nice continuous uptrend lasting for a week - there will be no cross for a week - the last cross was a week ago.
But you are still able to figure out from the EMA(short)-EMA(long) difference that the trend is up. So if the lines are far enough from each other, the bot will spend all your USD seeing that.
And the treshold is there to protect you from unnecessary buy/sell swaps every few hours, when the two lines are not as much crossing, as they are rather aligned.

Quote
2. I'm also interesting in looking into the sourcecode and modify it. I haven't any experience with chrome extentions, so maybe my question is very stupid. I've found the code under chrome->Extentions->...
If I would like to make some code modifications, do I first have to stop chrome and start it after the modification or is there any kind of reloading procedure?
Sure - you can modify it easily. First of all you want to uninstall the extension installed via google apps.
Then extract all the source files to a separate folder,
Then (if you used the crx file), remove the "update_url" line from the .json file.
And then go to "chrome->Extentions->", enable the "developer mode", press "Load unpacked extension..." and point it to the directory with the extracted/modified files - it should load.
And no - you don't need to restart Chrome ever - just expand the extension's properties and click on "Reload" any time you need it.

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
March 06, 2012, 07:21:05 PM
 #20

I'm new at trading, but isn't the default 0.25% treshold a little low ?
I'm only giving you the tool - the defaults are what they are, but you should tune them up to get the most of it.
I personally think that 0.25% is quite reasonable. What matters more IMO is rather the two EMA parameters - but nobody knows the future; which values would be best.

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
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 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!