Pages:
Author

Topic: Quick math question. - page 2. (Read 3150 times)

hero member
Activity: 560
Merit: 500
August 11, 2011, 01:17:07 PM
#17
Enjoy!

Perfect! Thanks.


One question though...where is everyone getting .65%?

When I trade on MtGox it shows:
Mt Gox charges a small fee (0.30%) for each trade.

And with .3% would it not be multiplying times .003? Or .006 for two trades.

So a transaction of buying 100 BTC at $10 would be $1000 with a break even point of $1006?
I had the assumption the fee was 0.65% per trade. That's why it's a modifiable field.
I'll make some more modifications I guess.
legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
August 11, 2011, 01:15:16 PM
#16
Enjoy!

Perfect! Thanks.


One question though...where is everyone getting .65%?

When I trade on MtGox it shows:
Mt Gox charges a small fee (0.30%) for each trade.

And with .3% would it not be multiplying times .003? Or .006 for two trades.

So a transaction of buying 100 BTC at $10 would be $1000 with a break even point of $1006?
hero member
Activity: 560
Merit: 500
August 11, 2011, 12:46:58 PM
#15
Well done. It would help to add at the end "Price to sell back at to break even: "   eg. 10.12
I wrote the script at 5am.

Give me a few minutes and I'll add that.

[Edit]:

http://zombietoday.com/trade_calculator.php
Code:
echo "
What's the minimum price I would have to sell back at to break even?
"
;
if(
$_GET['volume']>&& $_GET['ppb']>&& is_numeric($_GET['volume']) && is_numeric($_GET['ppb']) && $_GET['fee']>&& is_numeric($_GET['fee']))
{
$volume $_GET['volume'];
$ppb $_GET['ppb'];
$fee $_GET['fee'];
$fee_c = ($fee 1000); //yea, I know...decided to not use the full percentage
$total_buy $volume $ppb;
$min_sell $total_buy + ($total_buy $fee_c);
$minMarket_low_sell = ($min_sell $volume);

echo "[Volume]: ".$volume."";
echo "[Buy]: ".$total_buy."";
echo "[Sell]: ".$min_sell."";
echo "Minimum sell when Price Per Bitcoin is ".$minMarket_low_sell."USD to break even."
;

} else {
echo "";
echo "Buy  @ .mtGoxAvg()."'>";
echo "Fee 0.% ";
echo "";
}

function 
mtGoxAvg()
{
$opts = array(
  'http'=> array(
'method'=>   "GET",
'user_agent'=>    "MozillaXYZ/1.0"));
$context stream_context_create($opts);
$json file_get_contents('https://mtgox.com/code/data/ticker.php'false$context);
$jdec json_decode($json);
return $jdec->{'ticker'}->{'avg'};
}
?>
Enjoy!
legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
August 11, 2011, 12:34:36 PM
#14
full member
Activity: 182
Merit: 100
August 11, 2011, 12:03:23 PM
#13
hero member
Activity: 560
Merit: 500
August 11, 2011, 05:23:49 AM
#12
I know this question might seem a bit dumb but how much does the price need to go up on mt. gox before I can sell at a profit with their normal fee.

Say I bought one btc at 10, how much would it have to rise.  6 cents?
It takes a buy at $10.00 and a sell at $10.12 to break even.

Commission is (normally) .65%, so:

I buy 10 bitcoins at $10 each, cost is $100 plus $0.65 commission.

I sell 10 bitcoins at $10.12 each, I get $101.20 and pay $.55 commission.

Sell-Buy: $101.20 - $100 = $1.20
Total Commission: $1.20

Result: Breakeven

Hopefully I did this right Tongue
http://zombietoday.com/trade_calculator.php

Code:
echo "
What's the minimum price I would have to sell back at to break even?
"
;
if(
$_GET['volume']>&& $_GET['ppb']>&& is_numeric($_GET['volume']) && is_numeric($_GET['ppb']) && $_GET['fee']>&& is_numeric($_GET['fee']))
{
$volume $_GET['volume'];
$ppb $_GET['ppb'];
$fee $_GET['fee'];
$fee_c = ($fee 1000); //yea, I know...decided to not use the full percentage
$total_buy $volume $ppb;
$min_sell $total_buy + ($total_buy $fee_c);

echo "[Buy]: ".$total_buy."";
echo "[Sell]: ".$min_sell."";
echo "You paid ".$total_buy." USD for ".$volume." BTC; you will need to sell back at ".$min_sell." USD to break even.";

} else {
$mtGoxAVG mtGoxAvg();
echo "";
echo "Buy  @ .$mtGoxAVG."'>";
echo "Fee 0.% ";
echo "";
}
function 
mtGoxAvg()
{
$opts = array(
  'http'=> array(
'method'=>   "GET",
'user_agent'=>    "MozillaXYZ/1.0"));
$context stream_context_create($opts);
$json file_get_contents('https://mtgox.com/code/data/ticker.php'false$context);
$jdec json_decode($json);
return $jdec->{'ticker'}->{'avg'};
}
?>

[edit]: I have no idea what I coded...lol. Modify it math nerds Grin
hero member
Activity: 616
Merit: 500
August 11, 2011, 04:57:05 AM
#11
If the price is $10. What price would you have to sell at to get $10?

x= what price?
fee= .65%
how many fees? 2 since you are trading in and trading out.
Remember, even if 1btc = $10 you only have .9935 after the trade.
If you cash out right now, you'll have to pay another fee .9935 x ($10) = $9.935 minus .65% = $9.8704225
So you lose twice the fee for trading in and trading out.

Shortcut:
x = price you need to sell at.
y = price you want to start.
Plug in y, solve for x.

x - (.65%*2*x) = y
x - (.65%*2*x) = 10
x - .0130x = 10
.987x = 10
x ~= 10.131712259371833839918946301925

A variance of 13 cents.

If we were trading at $20
x - (.65%*2*x) = y
x - (.65%*2*x) = 20
x - .0130x = 20
.987x = 20
x ~= 20.26342451874366767983789260385

A variance of 26 cents.



Longcut:
 X = current price, Y = Price you want to sell at to break even.
If X=10
($X - $X*.0065)/$X * ($Y - $Y*.0065)  = $X
($10 - $10*.0065)/$10 * ($Y - $Y*.0065)  = $10
.9935 * ($Y - $Y*.0065) = $10
($Y - $Y*.0065) = 10/.9935
.9935Y = 10/.9935
Y = 10/.9935/.9935
Y = 10/.9935^2
Y = 10.131278574954618204033312657082
legendary
Activity: 1176
Merit: 1010
Borsche
August 11, 2011, 01:20:36 AM
#10
anything below 50 cents of volatility and you should not worry Smiley best up-and-down is after any big move, sell or buy does not matter. when the panic stops price goes up-down 1-2$ several times while seeking an average, that's the time to play.
hero member
Activity: 518
Merit: 500
August 11, 2011, 12:24:46 AM
#9
Gox charges 0.65% on each side, so very roughly on your $10 coin, 13 cents.  (More precisely, 13.08 cents.)

Have one BTC
Sell 1 at $10.1308, pay 0.06585 commission, have 10.065.  then
Buy 1 at 10.0000, pay 0.06500 commission, have one BTC and no $$
hero member
Activity: 616
Merit: 500
Firstbits.com/1fg4i :)
August 10, 2011, 11:39:19 PM
#8
Depending on the route the money takes, the comissions, taxes etc could be bigger for your roundtrip operation
hero member
Activity: 518
Merit: 500
August 10, 2011, 11:37:07 PM
#7
you could use your brain
full member
Activity: 182
Merit: 100
August 10, 2011, 10:17:23 PM
#6
Not sure what you're asking.....just do BTC(USD)(99.35%) and that's your total profit

Guess I"m not totally sure what I'm asking either.  I was just thinking a chart where If I bought a bitcoin at 14 dollars it would just tell me the exact price i would need to sell at to break even (with fees included).  I'm sure it would take 2 seconds to program.  Is this a stupid idea? Am I too lazy? lol
full member
Activity: 168
Merit: 100
August 10, 2011, 10:08:15 PM
#5
Not sure what you're asking.....just do BTC(USD)(99.35%) and that's your total profit
full member
Activity: 182
Merit: 100
August 10, 2011, 09:53:55 PM
#4
I know this question might seem a bit dumb but how much does the price need to go up on mt. gox before I can sell at a profit with their normal fee.

Say I bought one btc at 10, how much would it have to rise.  6 cents?
It takes a buy at $10.00 and a sell at $10.12 to break even.

Commission is (normally) .65%, so:

I buy 10 bitcoins at $10 each, cost is $100 plus $0.65 commission.

I sell 10 bitcoins at $10.12 each, I get $101.20 and pay $.55 commission.

Sell-Buy: $101.20 - $100 = $1.20
Total Commission: $1.20

Result: Breakeven


One more question.  Has anyone made a calculator or chart online for quick reference when trading? instead of getting the ole windows (or linux) calculator out?)
full member
Activity: 182
Merit: 100
August 10, 2011, 09:48:44 PM
#3
I know this question might seem a bit dumb but how much does the price need to go up on mt. gox before I can sell at a profit with their normal fee.

Say I bought one btc at 10, how much would it have to rise.  6 cents?
It takes a buy at $10.00 and a sell at $10.12 to break even.

Commission is (normally) .65%, so:

I buy 10 bitcoins at $10 each, cost is $100 plus $0.65 commission.

I sell 10 bitcoins at $10.12 each, I get $101.20 and pay $.55 commission.

Sell-Buy: $101.20 - $100 = $1.20
Total Commission: $1.20

Result: Breakeven


Thanks Joel I was still figuring the .3 percent commission so i was getting screwed up. 
Thanks alot.
Mike
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
August 10, 2011, 09:44:01 PM
#2
I know this question might seem a bit dumb but how much does the price need to go up on mt. gox before I can sell at a profit with their normal fee.

Say I bought one btc at 10, how much would it have to rise.  6 cents?
It takes a buy at $10.00 and a sell at $10.12 to break even.

Commission is (normally) .65%, so:

I buy 10 bitcoins at $10 each, cost is $100 plus $0.65 commission.

I sell 10 bitcoins at $10.12 each, I get $101.20 and pay $.55 commission.

Sell-Buy: $101.20 - $100 = $1.20
Total Commission: $1.20

Result: Breakeven
full member
Activity: 182
Merit: 100
August 10, 2011, 09:39:53 PM
#1
I know this question might seem a bit dumb but how much does the price need to go up on mt. gox before I can sell at a profit with their normal fee.

Say I bought one btc at 10, how much would it have to rise.  6 cents?
Pages:
Jump to: