Bitcoin Forum
December 11, 2016, 06:26:52 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: Quick math question.  (Read 2736 times)
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
August 11, 2011, 06: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.

1481437612
Hero Member
*
Offline Offline

Posts: 1481437612

View Profile Personal Message (Offline)

Ignore
1481437612
Reply with quote  #2

1481437612
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481437612
Hero Member
*
Offline Offline

Posts: 1481437612

View Profile Personal Message (Offline)

Ignore
1481437612
Reply with quote  #2

1481437612
Report to moderator
1481437612
Hero Member
*
Offline Offline

Posts: 1481437612

View Profile Personal Message (Offline)

Ignore
1481437612
Reply with quote  #2

1481437612
Report to moderator
Elwar
Legendary
*
Offline Offline

Activity: 1946


www.bitpools.com


View Profile WWW
August 11, 2011, 07: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.

http://www.bitpools.com
Pool your bitcoins with others. Vote on solutions using the Bitcoin blockchain. Keep your bitcoins in your cold storage until you find a solution you like.
Links and Reviews of useful every day places to spend bitcoins: https://bitcointalk.org/index.php?topic=943143.0
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
August 11, 2011, 07: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

Vandroiy
Legendary
*
Offline Offline

Activity: 1036


View Profile
August 11, 2011, 09: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.
Ellen Alemany
Jr. Member
*
Offline Offline

Activity: 30



View Profile
August 11, 2011, 09: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.

"There must be more to life than having everything."
phorensic
Hero Member
*****
Offline Offline

Activity: 630



View Profile
August 12, 2011, 01:08:54 AM
 #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
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
August 12, 2011, 01:56:02 AM
 #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:
<?php
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

Bitcoin Swami
Full Member
***
Offline Offline

Activity: 168


View Profile
August 12, 2011, 05: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
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
August 12, 2011, 05: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.

Tasty Champa
Member
**
Offline Offline

Activity: 84


View Profile
August 15, 2011, 03:17:33 AM
 #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.
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
August 15, 2011, 03:19:09 AM
 #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.

dub0matic
Full Member
***
Offline Offline

Activity: 182



View Profile
August 15, 2011, 03:36:12 AM
 #32

doesnt work to good. i just use mtgox calculator. but good job anyways

make it rain haha
btc 176MrZ3CCXGb1GqFiGaoqQpaynzYqZsW6n
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
August 15, 2011, 03:42:45 AM
 #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?

dub0matic
Full Member
***
Offline Offline

Activity: 182



View Profile
August 15, 2011, 03:44:02 AM
 #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

make it rain haha
btc 176MrZ3CCXGb1GqFiGaoqQpaynzYqZsW6n
Elwar
Legendary
*
Offline Offline

Activity: 1946


www.bitpools.com


View Profile WWW
August 18, 2011, 06: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.

http://www.bitpools.com
Pool your bitcoins with others. Vote on solutions using the Bitcoin blockchain. Keep your bitcoins in your cold storage until you find a solution you like.
Links and Reviews of useful every day places to spend bitcoins: https://bitcointalk.org/index.php?topic=943143.0
GeniuSxBoY
Hero Member
*****
Offline Offline

Activity: 546



View Profile
August 19, 2011, 01:47:08 PM
 #36

Mine says Mt Gox charges a small fee (0.43 %) for each trade.


I'm so confused lol
Elwar
Legendary
*
Offline Offline

Activity: 1946


www.bitpools.com


View Profile WWW
August 25, 2011, 12:18:59 PM
 #37

Bump for a useful tool.

Thank you!

http://www.bitpools.com
Pool your bitcoins with others. Vote on solutions using the Bitcoin blockchain. Keep your bitcoins in your cold storage until you find a solution you like.
Links and Reviews of useful every day places to spend bitcoins: https://bitcointalk.org/index.php?topic=943143.0
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!