Ah ok,
this happens because you specified that purchased your amount of btc at 707, so it will sell when UP (707+$up_diff value) when the market is going .
you can set the value that was FIRST BTC bought in this variable: $fake_btc_usd_buyedprice="707.00000";
Here we go, I only changed logged in, btc amount and usd amount: