Bitcoin Forum
May 05, 2024, 04:31:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 [All]
  Print  
Author Topic: Predicted Price of BTC  (Read 2267 times)
K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 13, 2014, 01:32:57 AM
 #1

Hey guys,

This is my first post here and I'd like to show you guys a project I've been working on that is pretty relevant. I've been working for a few months on writing software that analyzes the history of bitcoin transactions and finds patterns in the rise and fall of prices. The software then predicts future prices based on these patterns, and it has a surprisingly low average error (~1.35% for prices within 24 hours and ~2.62% for prices within 5 days).

Well anyway if you are interested you can learn a lot more about the project on this website, which displays charts showing the predicted prices:
www.btcpredictions.com

The data is automatically updated every hour on the hour. Let me know what you guys think, I would greatly appreciate any feedback!

1714926717
Hero Member
*
Offline Offline

Posts: 1714926717

View Profile Personal Message (Offline)

Ignore
1714926717
Reply with quote  #2

1714926717
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714926717
Hero Member
*
Offline Offline

Posts: 1714926717

View Profile Personal Message (Offline)

Ignore
1714926717
Reply with quote  #2

1714926717
Report to moderator
1714926717
Hero Member
*
Offline Offline

Posts: 1714926717

View Profile Personal Message (Offline)

Ignore
1714926717
Reply with quote  #2

1714926717
Report to moderator
1714926717
Hero Member
*
Offline Offline

Posts: 1714926717

View Profile Personal Message (Offline)

Ignore
1714926717
Reply with quote  #2

1714926717
Report to moderator
keithers
Legendary
*
Offline Offline

Activity: 1456
Merit: 1001


This is the land of wolves now & you're not a wolf


View Profile
March 13, 2014, 04:49:30 AM
 #2

Good idea, but you are basing your numbers on a timeframe where there has been barely any volatility. Look at how tight of a range there has been for the high and low in the past week or so, there hasn't been much movement. You should test your algorithm when things start rapidly moving.
g27wr
Full Member
***
Offline Offline

Activity: 221
Merit: 100


I like guns.


View Profile
March 13, 2014, 05:09:09 AM
 #3

I wonder what will happen on 3/17 around noon to make the price drop to $318.

I hope it does so I can buy more  Grin

Nice easy setup with the site. As a web designer, I'm looking forward to seeing how this works out. Good luck!

K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 13, 2014, 05:17:21 AM
Last edit: March 13, 2014, 05:31:22 AM by K128kevin
 #4

Good idea, but you are basing your numbers on a timeframe where there has been barely any volatility. Look at how tight of a range there has been for the high and low in the past week or so, there hasn't been much movement. You should test your algorithm when things start rapidly moving.

It is true that the price is pretty stable right now, but the figures for average error are based on predictions during tens of thousands of points throughout the history of the exchange (bitstamp). The software looks at sections of prices in the past and tries to predict what the price became after those sections. It compares its prediction to the actual price data, and averages the errors for all of the predictions at each point in the historic data. That is how I got the figures 1.35% and 2.62% for average errors.

So basically what I'm saying is that the figures for average error are based on predictions made both during stable time periods and volatile time periods. However, you are still right - it is true that this is much more accurate when the price is less volatile. When the price starts changing a lot, it could have larger errors in predictions. This is mostly the case when real-world events affect the price of bitcoin, since obviously there is no way the software can foresee something like mt gox getting hacked or china changing its policy on bitcoins.

Quote from: g27wr
I wonder what will happen on 3/17 around noon to make the price drop to $318.

I hope it does so I can buy more  Grin

Nice easy setup with the site. As a web designer, I'm looking forward to seeing how this works out. Good luck!

Haha crap I think that's an error... gonna have to fix that. Thanks for pointing that out lol

Edit: It's been fixed - thanks again for pointing that out! Gonna have to watch out for problems like that.

softbluelight
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
March 13, 2014, 01:12:51 PM
 #5

So basically what I'm saying is that the figures for average error are based on predictions made both during stable time periods and volatile time periods. However, you are still right - it is true that this is much more accurate when the price is less volatile. When the price starts changing a lot, it could have larger errors in predictions. This is mostly the case when real-world events affect the price of bitcoin, since obviously there is no way the software can foresee something like mt gox getting hacked or china changing its policy on bitcoins.

Some real world events that swing prices are foreseeable to some degree.  It would be awesome if your bot could scan news articles and find patterns, example: find an article that was posted by atleast 5 different sources with a same or very similar title/keywords.  Then the bot would have to determine whether or not the news is good or bad, or the bot could alert you of the news and you'll tell the bot whether or not the news is good or bad. 
softbluelight
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
March 13, 2014, 01:19:50 PM
 #6

I hate to say this because it's going to sound like I'm bashing your project (and trust me, I'm not), but any price prediction that goes mostly or solely off past data is not going to do well.  Investors and small time buyers see things in the news/forums.  If your bot is not parsing news/forums then you're predictions are going to fail.  It's possible, I suppose, that you could make predictions on non-volatile periods(like right now) based on past/historic non-volatile data.  But as soon as a big event happens, I'd scrap that completely and go based on news/events.
K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 13, 2014, 01:38:50 PM
 #7

Yeah, that would be sick if it could scan news articles. That would be extremely complicated though, I wouldn't even know how to begin lol.

And you are right about it being less accurate when prices start to change a lot due to real-world events. However, even during the course of a spike or crash that resulted from something in the news, there are still patterns that the prices follow. Spikes and crashes may tend to play out in similar manners, and if the software detects that a spike/crash is occurring it may be able to predict how it will play out. To be honest though, this is more what I'm hoping rather than what I know. The software learns how to predict based on the entire history of transactions on bitstamp, so it has seen spikes/crashes. I haven't had a huge number of opportunities to see how well this software performs during spikes/crashes, but we'll see how it works as soon as the prices start fluctuating more I guess. Hopefully it will perform reasonably well.

pbj sammich
Sr. Member
****
Offline Offline

Activity: 272
Merit: 250


Fighting Liquid with Liquid


View Profile
March 13, 2014, 01:44:52 PM
 #8

It's possible, I suppose, that you could make predictions on non-volatile periods(like right now) based on past/historic non-volatile data. 

I agree with this, unless you were to try to remove periods of volatility from the equation which I suspect would just make things worse.

It's a pretty interesting idea though!
Stalker1337
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
March 13, 2014, 01:48:57 PM
 #9

I guess around 700$+ in this month, i'm gonna invest some money on bitcoin in couple of days for sure.
K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 13, 2014, 10:14:14 PM
 #10

Some time in the next week ish I'm going to try to write an algorithm that will try to trade optimally based on these predictions, and it will simulate buying/selling 1 bitcoin. I'll display it's progress on the site and we can see if it is profitable Cheesy

verdun2003
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
March 14, 2014, 09:07:47 AM
 #11

How far is the data fetched in bitstamp? Since the creation of the exchange? Do you plan to incorporate other exchanges in the future? Project sounds good

bitcasino
Sr. Member
****
Offline Offline

Activity: 342
Merit: 250



View Profile
March 14, 2014, 10:42:19 AM
 #12

Hey guys,

This is my first post here and I'd like to show you guys a project I've been working on that is pretty relevant. I've been working for a few months on writing software that analyzes the history of bitcoin transactions and finds patterns in the rise and fall of prices. The software then predicts future prices based on these patterns, and it has a surprisingly low average error (~1.35% for prices within 24 hours and ~2.62% for prices within 5 days).

Well anyway if you are interested you can learn a lot more about the project on this website, which displays charts showing the predicted prices:
www.btcpredictions.com

The data is automatically updated every hour on the hour. Let me know what you guys think, I would greatly appreciate any feedback!

Great tool! Can you use your software with Litecoin?
K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 14, 2014, 12:04:24 PM
 #13

The software bases its predictions off of a giant csv file found here: http://api.bitcoincharts.com/v1/csv/

And then the software also updates the contents of the csv file with the lastest transactions every like 2 seconds or something, since those files are only updated every like 12-24 hours ish. So yes, it looks at the entire history of transactions on bitstamp. And yes, it could be used for other exchanges.

As far as predicting litecoin prices, I would need to find or create a similar csv file or data file containing exchange information of a similar format. But yeah, I don't see why it wouldn't be able to predict litecoin prices. Just might require a bit of work as far as how the program gathers data from the file. Should work for stocks too, which I'm thinking of doing at some point.

K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 17, 2014, 05:00:08 PM
 #14

Ugh predictions are so boring right now... I want the price to start fluctuating so I can really test this out

CurbsideProphet
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
March 17, 2014, 06:57:42 PM
 #15

Hey guys,

This is my first post here and I'd like to show you guys a project I've been working on that is pretty relevant. I've been working for a few months on writing software that analyzes the history of bitcoin transactions and finds patterns in the rise and fall of prices. The software then predicts future prices based on these patterns, and it has a surprisingly low average error (~1.35% for prices within 24 hours and ~2.62% for prices within 5 days).

Well anyway if you are interested you can learn a lot more about the project on this website, which displays charts showing the predicted prices:
www.btcpredictions.com

The data is automatically updated every hour on the hour. Let me know what you guys think, I would greatly appreciate any feedback!

This will be interesting to keep track of over a longer period of time.  How long has the model been up?

1ProphetnvP8ju2SxxRvVvyzCtTXDgLPJV
K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 17, 2014, 08:47:12 PM
 #16

Today is the fourth day that it has been up. The problem is that with the price being so flat right now it's difficult to really see how well it does. I mean, it has been predicting for the price to pretty much remain the same, but the real test will be to see how well it does when the price fluctuates.

Also I've been trying to test a program that simulates trading automatically based on these predictions, but the price isn't changing enough for it to make or lose any money. I included a 0.5% transaction fee so it just won't do anything if the price isn't going to change enough, which seems to be the case right now.

odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
March 18, 2014, 05:47:21 AM
 #17

What are the inputs to a prediction? I assume you input prices for a certain number of days leading up to the prediction. How many days?

What kind of neural net are you using?


Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 18, 2014, 02:29:15 PM
 #18

When I was first designing this, my original idea was to do like you said - input prices for a certain number of days leading up to the prediction. However, I found that this did not yield very good results. What works a lot better (and what this does) is using the percent change in price as input/output.

For the short term graph it looks at 60 hours leading up to the current hour and for the long term graph it looks at 80 hours.

The neural network is forward feed, has three layers(input, hidden, output), and uses backpropogation

KimNam
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500



View Profile
March 19, 2014, 06:04:40 PM
 #19

can you make a little longer period time?
maybe two weeks or a month?
K128kevin (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
March 19, 2014, 08:28:03 PM
 #20

Longer predictions are one of the things I would like to work on for expanding this project. I wrote a small blurb about it in the "Coming Soon" page. The challenge with making predictions much longer than 5 days is that they just become less accurate. If I remember correctly, I believe that the last time I tried to do a 10 day prediction it gave me something like a 7 or 8% average error, which makes the predictions not particularly useful. However I do plan on experimenting with ways of structuring and training the neural network to see if I can make some reasonably accurate longer-term predictions.

Revolution
Full Member
***
Offline Offline

Activity: 140
Merit: 101

Trading BTC, looking for amazon cards


View Profile
March 19, 2014, 08:34:23 PM
 #21

Good idea, but you are basing your numbers on a timeframe where there has been barely any volatility. Look at how tight of a range there has been for the high and low in the past week or so, there hasn't been much movement. You should test your algorithm when things start rapidly moving.

Well BTC is pretty constant lately if you ignore a few crashes/bubbles

Pages: 1 2 [All]
  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!