Not calculate numbers right
-
Hi I made this calculate page for working with crypto currency it is working very well but I can not add more to it and get that working.
I want to take the cost of the coin you want to buy and then – a set amount from another field I had to remove and then times that by the Here is the amount of coins you can buy with your investment money field. Should be very simple
I have set this up and no matter what I do it adds it up wrong. I had to take it down as that part did not work.
Example If the cost of the coin is $1.79 with a buy in of $1000 that gives me 558.659217877095 coins it shows for that $1000.
Now if I want to see how much money I would lose if it sold at a loss ( called a Stop Loss ) for $1.50 this would be$1.79 coin cost field – $1.50 coin loss field I had to remove = $0.29 Times Total of coins I can buy field 558.659217877095 should be around $162 I would lose if it sold for $1.50 at a Stop loss
But in the plugin when I put all this in I get some crazy -800 plus number that is just way off. It does not calculate the numbers right. I can do it with a calculator very easy but can not get the plugin to do it.
How can I fix this?
Also, I would like to be able to use %s so I can set a cost % for buying and selling fees I could not figure out how to do that.
Thanks
- The topic ‘Not calculate numbers right’ is closed to new replies.