Bitcoin Forum
June 17, 2024, 06:52:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 5 »  All
  Print  
Author Topic: Bitcoin Barometer  (Read 14087 times)
hahahafr
Hero Member
*****
Offline Offline

Activity: 938
Merit: 501



View Profile
May 18, 2013, 08:19:40 PM
 #21

I'm also quite new to this trading thing. What i think is this:

Somebody places an ask order, someone else fills it -> coins got sold.

Vice versa:
Someone places a bid order, someone else fills it -> coins got bought.

Thats how i understand this, to experts, am i right? Cheesy

Other way around please.

I place a bid order, someone fills it -> coins got sold.
I place a sell order, someone fills it -> coins got bought.

I wanna "buy" coins -> I fill a sell order -> coins got bought.
I wanna "sell" coins -> I fill a bid order -> coins got sold.

Don't confuse the two.




                                           ◢◣                      ◢◣
                                     ◢████◣           ◢████◣
                               ◢████████◣◢████████◣
                               █████████████████
                               █████████████████
                               █████████████████
                               █████████████◤██████
                               ███████████◤████████
                               █████████◤██████████
                               ███████◤████████████
                               █████◤██████████████
                               █████◣                       ◢█████
                               ███████◣            ◢███████
                               █████████◣◢█████████
                               ◥████████◤◥████████◤
                                    ◥████◤            ◥████◤
                                          ◥◤                      



HYDAX
       Secure  
   Efficient
   Simple  
   Medium 
    Twitter  
    Telegram 
[/center
hahahafr
Hero Member
*****
Offline Offline

Activity: 938
Merit: 501



View Profile
May 18, 2013, 08:33:42 PM
 #22

Hey apparently you inverse the two in the code:

Code:
			if (trade.trade_type == "bid") {
bid_Sum += parseFloat(trade.amount);
} else if (trade.trade_type == "ask") {
ask_Sum += parseFloat(trade.amount);
}

Code:
$("#bought_Sum").text(bid_Sum.toFixed(2));
$("#sold_Sum").text(ask_Sum.toFixed(2));

From MtGow API:

Code:
trade_type : Did this trade result from the execution of a bid or a ask? 

So

Code:
{"date" : 1368876871, "amount": 0.410579, "trade_type": "bid"}

means that someone fulfilled a bid order = someone sold coins.




                                           ◢◣                      ◢◣
                                     ◢████◣           ◢████◣
                               ◢████████◣◢████████◣
                               █████████████████
                               █████████████████
                               █████████████████
                               █████████████◤██████
                               ███████████◤████████
                               █████████◤██████████
                               ███████◤████████████
                               █████◤██████████████
                               █████◣                       ◢█████
                               ███████◣            ◢███████
                               █████████◣◢█████████
                               ◥████████◤◥████████◤
                                    ◥████◤            ◥████◤
                                          ◥◤                      



HYDAX
       Secure  
   Efficient
   Simple  
   Medium 
    Twitter  
    Telegram 
[/center
sohd (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 18, 2013, 08:52:04 PM
 #23

I'm getting a bit confused now  Roll Eyes

I think this way: person A places a bid order (wants to buy)
The order is open until person B comes and says "that price is okay for me to sell my coins".

The bid order gets filled and it makes person A buy the coins from person B. This tool renders this as "coin bought".

When you compare the price 4 hours ago to the price now, it went up.
So does this tools arrow in the 4h timeframe, so i think this direction is correct.

Or am i thinking wrong?  Huh
hahahafr
Hero Member
*****
Offline Offline

Activity: 938
Merit: 501



View Profile
May 18, 2013, 09:06:47 PM
 #24

Selling <=> Price going down <=> Lots of fulfilled bid order
Buying <=> Price going up <=> Lots of fulfilled ask order

That's how it is.

Edit: Isn't it?
Edit2: Yes it is.

When placing a bid order or an ask order you don't sell or buy anything, you just show that you *want* to sell or *want* to buy.
Or maybe we are just circling in round.




                                           ◢◣                      ◢◣
                                     ◢████◣           ◢████◣
                               ◢████████◣◢████████◣
                               █████████████████
                               █████████████████
                               █████████████████
                               █████████████◤██████
                               ███████████◤████████
                               █████████◤██████████
                               ███████◤████████████
                               █████◤██████████████
                               █████◣                       ◢█████
                               ███████◣            ◢███████
                               █████████◣◢█████████
                               ◥████████◤◥████████◤
                                    ◥████◤            ◥████◤
                                          ◥◤                      



HYDAX
       Secure  
   Efficient
   Simple  
   Medium 
    Twitter  
    Telegram 
[/center
UltimateReaper
Newbie
*
Offline Offline

Activity: 56
Merit: 0



View Profile
May 18, 2013, 09:46:23 PM
 #25

I was just thinking the BTC speculation world needed something like this.

Friggen awesome if you ask me.

Assuming it's at least 75% reliable.
sohd (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 18, 2013, 09:48:50 PM
 #26

@hahahafr:
I'm getting it :>

It's different perspectives: i'm viewing this from the side where the people are that placed their orders.
The other (correct) side is where the people are that fulfilled orders.

I'm about to fixing this.

Order placement isnt used for calculation, just trades that really happened. But i think you saw that in my code Cheesy
Franktank
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
May 18, 2013, 09:51:40 PM
 #27

Very useful! Thanks!
sohd (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 18, 2013, 09:57:35 PM
 #28

http://mogsta.com/btc/ - fixed the confusion in the code + relabled "BUYING" and SELLING" to "PRICE UP" and "PRICE DOWN"
willphase
Hero Member
*****
Offline Offline

Activity: 767
Merit: 500


View Profile
May 18, 2013, 10:59:09 PM
 #29

quite cool - but I think that it's the wrong way round.

if people are buying bitcoins - i.e. bitcoins are being sold - then that is good i.e. the barometer should be indicating UP - but it seems that the barometer indicates down in this case...?

caveat: this based on a few minutes watching transactions on bitcoin.clarkmoody.com and comparing, not from looking at the source.

Will

sohd (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 18, 2013, 11:14:43 PM
Last edit: May 18, 2013, 11:28:10 PM by sohd
 #30

so you think this (http://mogsta.com/btc/beta/) has the correct arrow movement? that's what i also thought, but got confused by hahahafr, so i made it like it's now..
keewee
Legendary
*
Offline Offline

Activity: 1025
Merit: 1000



View Profile
May 18, 2013, 11:19:56 PM
 #31

More bids filled (red) = price dropping, more asks filled (green) = price rising. I think the beta page is correct   Smiley

edit: damn, now I'm not sure it is correct. Have to watch Clark Moody for a bit  Cheesy

1keewee2vRp63UWvPBynT55ZYw6SUCKDB
hahahafr
Hero Member
*****
Offline Offline

Activity: 938
Merit: 501



View Profile
May 18, 2013, 11:22:58 PM
 #32

On /beta/ if you replace at the bottom "sold" by "bought", and "bought" by "sold" then the arrow is ok.
Or at least change the color if you are the opposite side.

Suggestion 1 : Add the title "State of the market" on top of the page
Suggestion 2 : Rename "Price up" to "Bullish", "Stable" to "Equilibrium", & "Price down" to "Bearish"
Suggestion 3 : Go from a barometer to a chart over time Smiley




                                           ◢◣                      ◢◣
                                     ◢████◣           ◢████◣
                               ◢████████◣◢████████◣
                               █████████████████
                               █████████████████
                               █████████████████
                               █████████████◤██████
                               ███████████◤████████
                               █████████◤██████████
                               ███████◤████████████
                               █████◤██████████████
                               █████◣                       ◢█████
                               ███████◣            ◢███████
                               █████████◣◢█████████
                               ◥████████◤◥████████◤
                                    ◥████◤            ◥████◤
                                          ◥◤                      



HYDAX
       Secure  
   Efficient
   Simple  
   Medium 
    Twitter  
    Telegram 
[/center
sohd (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 18, 2013, 11:28:47 PM
 #33

/btc/beta/ is now the same as /btc/

i'll stick to the version that's online now. the barometer should indicate what people on the fulfilling side are doing. when they fill ask orders, then they're buying, so bought coins increase, price goes up and so does the arrow. that's the most logical behaviour this barometer can do. or am i confused again?  Roll Eyes
keewee
Legendary
*
Offline Offline

Activity: 1025
Merit: 1000



View Profile
May 18, 2013, 11:29:14 PM
 #34

I think the beta page is ok. As bids are filled (red) the arrow drops and as asks are filled (green) the arrow rises. Looks good!

1keewee2vRp63UWvPBynT55ZYw6SUCKDB
keewee
Legendary
*
Offline Offline

Activity: 1025
Merit: 1000



View Profile
May 18, 2013, 11:32:31 PM
 #35

Out of curiosity, how much change of price does it take to "pin" the needle?

1keewee2vRp63UWvPBynT55ZYw6SUCKDB
sohd (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 18, 2013, 11:34:03 PM
 #36

price isn't processed, only the amount of btc that have been traded.
keewee
Legendary
*
Offline Offline

Activity: 1025
Merit: 1000



View Profile
May 18, 2013, 11:35:52 PM
 #37

So how many btc have to bought or sold to move the needle to either end?

1keewee2vRp63UWvPBynT55ZYw6SUCKDB
hahahafr
Hero Member
*****
Offline Offline

Activity: 938
Merit: 501



View Profile
May 18, 2013, 11:38:11 PM
 #38

So how many btc have to bought or sold to move the needle to either end?

It's the ratio during the period of time.




                                           ◢◣                      ◢◣
                                     ◢████◣           ◢████◣
                               ◢████████◣◢████████◣
                               █████████████████
                               █████████████████
                               █████████████████
                               █████████████◤██████
                               ███████████◤████████
                               █████████◤██████████
                               ███████◤████████████
                               █████◤██████████████
                               █████◣                       ◢█████
                               ███████◣            ◢███████
                               █████████◣◢█████████
                               ◥████████◤◥████████◤
                                    ◥████◤            ◥████◤
                                          ◥◤                      



HYDAX
       Secure  
   Efficient
   Simple  
   Medium 
    Twitter  
    Telegram 
[/center
keewee
Legendary
*
Offline Offline

Activity: 1025
Merit: 1000



View Profile
May 18, 2013, 11:42:31 PM
 #39

So how many btc have to bought or sold to move the needle to either end?

It's the ratio during the period of time.

Ah, got it. Thanks

1keewee2vRp63UWvPBynT55ZYw6SUCKDB
hahahafr
Hero Member
*****
Offline Offline

Activity: 938
Merit: 501



View Profile
May 18, 2013, 11:43:58 PM
 #40

Your barometer is now right  Cool

Maybe change the term "price" to "value" or "worth", best would be "bullish" for "price up" and "bearish" for "price down", since the price is not processed and it's more about the emotional state of the market (which is an information way more valuable than just the price)  Wink




                                           ◢◣                      ◢◣
                                     ◢████◣           ◢████◣
                               ◢████████◣◢████████◣
                               █████████████████
                               █████████████████
                               █████████████████
                               █████████████◤██████
                               ███████████◤████████
                               █████████◤██████████
                               ███████◤████████████
                               █████◤██████████████
                               █████◣                       ◢█████
                               ███████◣            ◢███████
                               █████████◣◢█████████
                               ◥████████◤◥████████◤
                                    ◥████◤            ◥████◤
                                          ◥◤                      



HYDAX
       Secure  
   Efficient
   Simple  
   Medium 
    Twitter  
    Telegram 
[/center
Pages: « 1 [2] 3 4 5 »  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!