hahahafr
|
|
May 18, 2013, 08:19:40 PM |
|
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? 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.
|
|
|
|
hahahafr
|
|
May 18, 2013, 08:33:42 PM |
|
Hey apparently you inverse the two in the code: if (trade.trade_type == "bid") { bid_Sum += parseFloat(trade.amount); } else if (trade.trade_type == "ask") { ask_Sum += parseFloat(trade.amount); } $("#bought_Sum").text(bid_Sum.toFixed(2)); $("#sold_Sum").text(ask_Sum.toFixed(2)); From MtGow API: trade_type : Did this trade result from the execution of a bid or a ask?
So {"date" : 1368876871, "amount": 0.410579, "trade_type": "bid"} means that someone fulfilled a bid order = someone sold coins.
|
|
|
|
sohd (OP)
Newbie
Offline
Activity: 42
Merit: 0
|
|
May 18, 2013, 08:52:04 PM |
|
I'm getting a bit confused now 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?
|
|
|
|
hahahafr
|
|
May 18, 2013, 09:06:47 PM |
|
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.
|
|
|
|
UltimateReaper
Newbie
Offline
Activity: 56
Merit: 0
|
|
May 18, 2013, 09:46:23 PM |
|
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
Activity: 42
Merit: 0
|
|
May 18, 2013, 09:48:50 PM |
|
@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
|
|
|
|
Franktank
|
|
May 18, 2013, 09:51:40 PM |
|
Very useful! Thanks!
|
|
|
|
sohd (OP)
Newbie
Offline
Activity: 42
Merit: 0
|
|
May 18, 2013, 09:57:35 PM |
|
http://mogsta.com/btc/ - fixed the confusion in the code + relabled "BUYING" and SELLING" to "PRICE UP" and "PRICE DOWN"
|
|
|
|
willphase
|
|
May 18, 2013, 10:59:09 PM |
|
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
Activity: 42
Merit: 0
|
|
May 18, 2013, 11:14:43 PM Last edit: May 18, 2013, 11:28:10 PM by sohd |
|
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
Activity: 1025
Merit: 1000
|
|
May 18, 2013, 11:19:56 PM |
|
More bids filled (red) = price dropping, more asks filled (green) = price rising. I think the beta page is correct edit: damn, now I'm not sure it is correct. Have to watch Clark Moody for a bit
|
1keewee2vRp63UWvPBynT55ZYw6SUCKDB
|
|
|
hahahafr
|
|
May 18, 2013, 11:22:58 PM |
|
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
|
|
|
|
sohd (OP)
Newbie
Offline
Activity: 42
Merit: 0
|
|
May 18, 2013, 11:28:47 PM |
|
/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?
|
|
|
|
keewee
Legendary
Offline
Activity: 1025
Merit: 1000
|
|
May 18, 2013, 11:29:14 PM |
|
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
Activity: 1025
Merit: 1000
|
|
May 18, 2013, 11:32:31 PM |
|
Out of curiosity, how much change of price does it take to "pin" the needle?
|
1keewee2vRp63UWvPBynT55ZYw6SUCKDB
|
|
|
sohd (OP)
Newbie
Offline
Activity: 42
Merit: 0
|
|
May 18, 2013, 11:34:03 PM |
|
price isn't processed, only the amount of btc that have been traded.
|
|
|
|
keewee
Legendary
Offline
Activity: 1025
Merit: 1000
|
|
May 18, 2013, 11:35:52 PM |
|
So how many btc have to bought or sold to move the needle to either end?
|
1keewee2vRp63UWvPBynT55ZYw6SUCKDB
|
|
|
hahahafr
|
|
May 18, 2013, 11:38:11 PM |
|
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.
|
|
|
|
keewee
Legendary
Offline
Activity: 1025
Merit: 1000
|
|
May 18, 2013, 11:42:31 PM |
|
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
|
|
May 18, 2013, 11:43:58 PM |
|
Your barometer is now right 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)
|
|
|
|
|