Pages:
Author

Topic: Quick math question. (Read 3150 times)

legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
August 25, 2011, 07:18:59 AM
#37
Bump for a useful tool.

Thank you!
hero member
Activity: 616
Merit: 500
August 19, 2011, 08:47:08 AM
#36
Mine says Mt Gox charges a small fee (0.43 %) for each trade.


I'm so confused lol
legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
August 18, 2011, 01:07:39 PM
#35
doesnt work to good. i just use mtgox calculator. but good job anyways
How does it not work too well?
What's wrong with it?
you cant change the price

You can change the price. Just turn off the options to the right of price.

Also, I finally saw on MtGox that they are saying .65% per trade on the trade page.
full member
Activity: 182
Merit: 100
August 14, 2011, 10:44:02 PM
#34
doesnt work to good. i just use mtgox calculator. but good job anyways
How does it not work too well?
What's wrong with it?
you cant change the price
hero member
Activity: 560
Merit: 500
August 14, 2011, 10:42:45 PM
#33
doesnt work to good. i just use mtgox calculator. but good job anyways
How does it not work too well?
What's wrong with it?
full member
Activity: 182
Merit: 100
August 14, 2011, 10:36:12 PM
#32
doesnt work to good. i just use mtgox calculator. but good job anyways
hero member
Activity: 560
Merit: 500
August 14, 2011, 10:19:09 PM
#31
Thanks alot man, you should put your donate address on the page.

I will donate when I mine a few more.

Glad other people think this was a good idea too!

Mike
Thanks, added to the page.

If anyone has something I should add, let me know.

other way around. like how much money equals bitcoins minus fee.
I don't understand.
member
Activity: 84
Merit: 10
August 14, 2011, 10:17:33 PM
#30
Thanks alot man, you should put your donate address on the page.

I will donate when I mine a few more.

Glad other people think this was a good idea too!

Mike
Thanks, added to the page.

If anyone has something I should add, let me know.

other way around. like how much money equals bitcoins minus fee.
hero member
Activity: 560
Merit: 500
August 12, 2011, 12:10:15 AM
#29
Thanks alot man, you should put your donate address on the page.

I will donate when I mine a few more.

Glad other people think this was a good idea too!

Mike
Thanks, added to the page.

If anyone has something I should add, let me know.
full member
Activity: 182
Merit: 100
August 12, 2011, 12:02:58 AM
#28
Thanks alot man, you should put your donate address on the page.

I will donate when I mine a few more.

Glad other people think this was a good idea too!

Mike
hero member
Activity: 560
Merit: 500
August 11, 2011, 08:56:02 PM
#27
What's funny is I have been using the dang Windows calculator do this for weeks and I have been wondering: "I wonder if someone has made an online app for this?"  Prayer answered!  Thank you sir
No problem.
I added JSON Grin
http://zombietoday.com/trade_calculator.php?volume=1&liveppb=on&json=on&bfee=0.3&sfee=0.3

Simple usage for JSON in PHP?
Code:
echo minSell();

function 
minSell($volume=1,$ppb="live",$bfee=0.3,$sfee=0.3)
{
$url "http://zombietoday.com/trade_calculator.php?";
$url .= "volume=".$volume;
if($ppb=="live")
$url .= "&liveppb=on";
else
$url .= "&ppb=".$ppb;
$url .= "&bfee=".$bfee;
$url .= "&sfee=".$sfee;
$json file_get_contents($url."json=on");
$obj json_decode($json);
return $obj->{'mmsppb'};
}
?>

Like it?
1vfMrL8FWtKtUyUkarzotS3Q8Q9SQCopL
hero member
Activity: 630
Merit: 500
August 11, 2011, 08:08:54 PM
#26
What's funny is I have been using the dang Windows calculator do this for weeks and I have been wondering: "I wonder if someone has made an online app for this?"  Prayer answered!  Thank you sir
member
Activity: 85
Merit: 10
August 11, 2011, 04:37:44 PM
#25
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.
It is not reasonable that for a larger transaction the commission is lower, it should be the other way around so there is a mistake here?
---

If f is the fee, B is the buying price and S is the selling price then break even is found when S/B = (1+f)/(1-f) since:
Our income = -B*(1+f) + S*(1-f) > 0 => S/B > (1+f)/(1-f)

In the case 0.003 and 0.0065 we get 1.00601805 and 1.01308505.

In other words, if you buy at $10, you sell at $10*1.01308505 or roughly $10.13.
legendary
Activity: 1036
Merit: 1002
August 11, 2011, 04:23:11 PM
#24
Profit criterion:

Buy price * (1 - commission fraction)^2 > sell price

Just use Wolfram Alpha when you have a browser around. For simple calculations, it responds quickly in JavaScript.
hero member
Activity: 560
Merit: 500
August 11, 2011, 02:30:41 PM
#23
Looks fine. You just do a $fee / 1000

Which is screwy since you have the decimal specified before the input.

So someone putting in: .60 and someone putting in .6 would end up with
60 / 1000
and
6 / 1000

Two very different numbers.

I am not sure how to add a decimal before a number in php.
I forgot I could divide with decimals.
[/fail]
http://zombietoday.com/trade_calculator.php?volume=1&ppb=9.905165356&liveppb=on&bfee=0.3&sfee=0.3
http://zombietoday.com/trade_calculator.php
xD
legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
August 11, 2011, 02:08:35 PM
#22
Looks fine. You just do a $fee / 1000

Which is screwy since you have the decimal specified before the input.

So someone putting in: .60 and someone putting in .6 would end up with
60 / 1000
and
6 / 1000

Two very different numbers.

I am not sure how to add a decimal before a number in php.
hero member
Activity: 560
Merit: 500
August 11, 2011, 01:59:24 PM
#21
If you want me to change the math around, give me a formula to work with.
So far everyone keeps saying my math is wrong.
legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
August 11, 2011, 01:52:46 PM
#20
Works perfectly if you just use a single digit.

Or 6.5
newbie
Activity: 33
Merit: 0
August 11, 2011, 01:48:09 PM
#19
legendary
Activity: 3598
Merit: 2386
Viva Ut Vivas
August 11, 2011, 01:47:50 PM
#18
Ahh, I see what is wrong.

You have: Fee: 0.[65]%  which uses 65 as a multiple. If you have a fee of just 0.[6] it uses 6 as a multiple.

So you have:

100 * 10 = 1000 with a selloff of 1065 for .65

and

100 * 10 = 1000 with a selloff of 1006 for .6
Pages:
Jump to: