Statistics are working with low/high etc.

This commit is contained in:
7u83
2017-04-10 20:03:51 +02:00
parent 9089e8f8b1
commit f0888a55d0
3 changed files with 98 additions and 16 deletions

View File

@ -48,6 +48,22 @@ public class Statistics extends javax.swing.JPanel {
Exchange.Statistics s = Globals.se.getStatistics();
tradesLabel.setText(String.format("%d", s.trades));
if (s.heigh == null){
labelHigh.setText("--");
}
else {
labelHigh.setText(Globals.se.getMoneyFormatter().format(s.heigh));
}
if (s.low == null){
labelLow.setText("--");
}
else {
labelLow.setText(Globals.se.getMoneyFormatter().format(s.low));
}
}
}, 1000, 1000);