Bitcoin trading bot

Bitcoin trading bot

Cancelled

Job Description

https://bitbucket.org/joemart/btcbot

Real operation in BTC-E market https://btc-e.com/ with back end I can check profit of each transaction

After done BTC-E, this project include the BTCBot to cover Mercado Bitcoin http://www.mercadobitcoin.com.br/ in real operation with same logic described down, plus the first option to buy or sale, due the big gap exist in Mercado, this simple option will make BTCBot very profitable

About BTCBot
Automated bitcoin trading bot that implements what I call as "trading-on-curves" strategy. Basically, the bot buys when price is low and sells when it's high. It monitors the stocks of all the bought bitcoins so that sell trades are only performed when they're profitable.
The Trading Strategy
The bot continually monitors the BTC-USD bid and ask rates at a fixed interval (now set as per minute). To evaluate the action to be performed, it is primarily considering three factors: (1) the change in the rate, (2) the predicted next rate, (3) quantity of trade.
The change in rate is simply current rate minus the previous rate. The predicted next rate is an extrapolation from the trendline of the last four points (each point representing a rate read at an interval). The trade quantity is computed from the last eight points based on the angle formed of the trendlines of earliest four and the latest four of these eight points.
A sell trade is initiated if the following conditions are met: (1) the change in bid rate is positive, which means the current bid rate is bigger than the previous one, (2) the predicted next bid rate is lower than the current one, (3) the quantity of the sell trade is such that the sell is profitable and above the minimum trade of the exchange.
A buy trade is initiated if the following conditions are met: (1) the change in ask rate is negative, which means that current ask rate is smaller than the previous one, (2) the predicted next ask rate is higher than the current one, (3) the quantity of the buy trade is such that it is above the minimum trade set by the exchange.