| | |
| | | private Double volume_open; |
| | | |
| | | public Double getChange_ratio() { |
| | | if (STATE_SUBMITTED.equals(state)) { |
| | | change_ratio = Arith.div(Arith.sub(Arith.add(Arith.add(amount_close, profit), deposit), deposit_open), |
| | | deposit_open); |
| | | } else { |
| | | change_ratio = Arith.div(Arith.sub(Arith.add(amount_close, deposit), deposit_open), deposit_open); |
| | | |
| | | } |
| | | |
| | | change_ratio = Arith.mul(change_ratio, 100); |
| | | DecimalFormat df = new DecimalFormat("#.##"); |
| | | return Double.valueOf(df.format(change_ratio)); |
| | | return change_ratio; |
| | | } |
| | | |
| | | public Serializable getPartyId() { |