intrd / bitcoin-hal10k

DEPRECATED, moved to: intrd/bitcoin-tofybot
https://github.com/intrd/bitcoin-tofybot
51 stars 37 forks source link

HAL 10K - Bitcoin PHP Trading bot

This project are DEPRECATED

..and moved to a closed source project.. https://github.com/intrd/bitcoin-tofybot

After losing some money on Bitcoin exchanges, I decided to develop my own Trading bot/helper. This bot acts with pre-defined parameters based on statistics/strategies and not with the emotion of the moment, so it's much easier to perform trading operations.

HAL10K is a Bitcoin trading/helper bot written in PHP (open source). It was developed to be used on the API MtGox, but can be easily adapted to other exchanges. Their decisions are based on customizable parameters and trading techniques for market analysis. It also works in semi-automatic mode, in which each loss(stop-loss) asks via Twitter for remote confirmation of a bot operator. Besides the "Live Trading" so it also runs simulations "Backtesting/Paper trading" using "Fake Balance" and historical raw data from Bitcoincharts.com. All bot actions(buying/selling) and alerts(high volume detected) are notified via Twitter. Log results is accompanied by HTTP Control panel where the bot displays its own performance chart panel.

HAL10K was developed "from scratch", without taking basis of existing algorithms/trading techniques. This project is a learning exercise on Trading/Economics for me, when started this project my experience was limited in programming and Bitcoin. Yes, I'm already getting real profits with this trading bot, and the idea of ​​Open Source assumed that sharing experiences, together we can greatly improve the algorithm and achieve even greater profits.

Please, do not go to the Live trading before mastering the paper trading. The author of this project and its contributors are not responsible for any losses.

Package details

WEB Control panel & console

Daemon

Live statistics, "Sudden" and "Death mode" remote control.

Backtesting sample

Period: 21/12/2013 até 27/12/2013      
Starting w/ 1.03161308 BTC @ 700    
$ask [btc0/usd:699.43] @ $678 (lucro) #transaction  
$bid [btc1.07/usd:0] @ $649.43505 (lucro) #transaction  
$ask [btc0/usd:721.03] @ $672.513 (lucro) #transaction  
$bid [btc1.08/usd:0] @ $665.41 (lucro) #transaction     
$ask [btc0/usd:775.37] @ $718.795 (lucro) #transaction  
$bid [btc1.14/usd:0] @ $679.995 (lucro) #transaction    
$ask [btc0/usd:795.73] @ $701 (lucro) #transaction  
$bid [btc1.14/usd:0] @ $701 (nulo) #transaction     
Ending w/ 1.14 BTC @ 701

Trading bot EMA Short/Long Crossover based

Perfect for high frequency trading, better than simple trading method

Twitter notifications sample

Bot notifying your operator a large volume that just happened; Bot requesting help on Stop-Loss decision; Bot informing a purchase(loss) made ​​starting from a Sudden Mode remote command, Buying 1.03BTC when the value of btc/usd was at 830USD.

Main features & configs

The bot needs at least one bid and ask to generate the graphic chart correctly. MtGox need at least 0.02BTC to process a transaction.

Installing: 1click-to-run (easy)

Installing: manual (advanced)

GitHUB stable Source code: https://github.com/intrd/bitcoin/tree/master/hal10k

Must be configured in configs.php and started on hal10k.bat (remember to edit hal10k.bat to correct default path: C:\webserver\www\hal10k)

This project was developed in the environment described below, so please try to use a similar configuration:

TodoList

Changelog