Bitcoin Forum
April 24, 2018, 01:03:52 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: Quick math question.  (Read 2976 times)
NothinG
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



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.

1524531832
Hero Member
*
Offline Offline

Posts: 1524531832

View Profile Personal Message (Offline)

Ignore
1524531832
Reply with quote  #2

1524531832
Report to moderator
1524531832
Hero Member
*
Offline Offline

Posts: 1524531832

View Profile Personal Message (Offline)

Ignore
1524531832
Reply with quote  #2

1524531832
Report to moderator
1524531832
Hero Member
*
Offline Offline

Posts: 1524531832

View Profile Personal Message (Offline)

Ignore
1524531832
Reply with quote  #2

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

Posts: 1524531832

View Profile Personal Message (Offline)

Ignore
1524531832
Reply with quote  #2

1524531832
Report to moderator
1524531832
Hero Member
*
Offline Offline

Posts: 1524531832

View Profile Personal Message (Offline)

Ignore
1524531832
Reply with quote  #2

1524531832
Report to moderator
1524531832
Hero Member
*
Offline Offline

Posts: 1524531832

View Profile Personal Message (Offline)

Ignore
1524531832
Reply with quote  #2

1524531832
Report to moderator
Elwar
Legendary
*
Online Online

Activity: 2436
Merit: 1102


www.varyon.io


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.

Get involved in the world's first seastead: http://www.varyon.io
NothinG
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



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
Merit: 1000


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
Member
**
Offline Offline

Activity: 85
Merit: 10



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
Merit: 500



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
Merit: 500



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: 182
Merit: 100


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
Merit: 500



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
Merit: 10


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
Merit: 500



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
Merit: 100



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
Merit: 500



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
Merit: 100



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
*
Online Online

Activity: 2436
Merit: 1102


www.varyon.io


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.

Get involved in the world's first seastead: http://www.varyon.io
GeniuSxBoY
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


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

Be humble!
Elwar
Legendary
*
Online Online

Activity: 2436
Merit: 1102


www.varyon.io


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

Bump for a useful tool.

Thank you!

Get involved in the world's first seastead: http://www.varyon.io
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!