Skip to content

zipiju/mtgox-php-tradebot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtgox-php-tradebot

Tradebot daemon for MtGox Written in PHP

Version 3.0

Another complete refactor of the code. This version now uses a different method for making trades. Now instead of trying to manage each order, which was a hassle btw, I have opted to use a EMA/SMA convergence divergence methodology. This is not gauranteed to make profit on every trade but it attempts to predict the price change based on the EMA of the percent change for the last 25 trades. This appears to be working with limited success and would appreciate if some more experienced programmers would contribute to this project. :)

What to expect from the new version.

  • Cleaner code.
  • A more standard trading algorithm
  • Not much else :\

Sorry for changing the code so drastically every version. I don't have very much experience with writing trading alogrithms.

Disclaimer

This software does not come with any gaurantees at all, use at your own risk.

I have not made any money using this script due to the constant fine tuning done but it should work in theory. If you have any complaints or criticism about the bot please contribute them in a positive manner by actually contributing to this project. If you would like to show your appreciation just send me a donation (remember I've lost money during the fine tuning of this bot).

Getting Started

Dependencies

  • PEAR Package System_Daemon
  • PHP5 CLI
  • MtGox Account

As of version 2.0 the bot no longer pays attention to BTC balances you will need to have a USD balance when starting the bot

To get started simply get your API access key and secret from the mtgox website and enter them in the config.json file where it says key and secret under the mtgox object.

once you've configured your bot go to your terminal and drop into the bot directory and run the follwing command

$ php daemon.php

This will spawn the daemon install a service and start writing to a log file. After running this for the first time you will now be able to stop and start the service as any other system daemon by using the following commands.

$ service mtgox start to start and $ service mtgox stop to stop

WARNING: you may get a ton of PEAR warnings just disregard these.

Donations

Gimme your monies!

bitcoin address: 1J4muBrfJrkr7tjeDuPTwBGgaG5wASWtYn

Thank you.

About

Tradebot daemon for MtGox Written in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published