More work on stop loss

This commit is contained in:
2019-01-03 18:59:17 +01:00
parent fcdae01a8b
commit b193d69f52
8 changed files with 60 additions and 24 deletions

View File

@ -63,8 +63,8 @@ public class AccountPanel extends javax.swing.JPanel implements EventListener {
String astr = val.toString() + "/" + avail.toString();
Double mval = account.getMargin(a);
Double mavail = account.getAvail(a);
String mastr = mval.toString(); // + "/" + mavail.toString();
Double mavail = account.getMargin(a)-account.margin_bound;
String mastr = mval.toString()+ "/" + mavail.toString();
Double sl = account.calcStopLoss(a);