More work on stop loss
This commit is contained in:
@ -610,7 +610,7 @@ public class SeSimApplication extends javax.swing.JFrame {
|
||||
t.start();
|
||||
|
||||
AccountDialog.runDialog(this, ((SimpleTrader)t).account_1);
|
||||
AccountDialog.runDialog(this, ((SimpleTrader)t).account_10);
|
||||
AccountDialog.runDialog(this, ((SimpleTrader)t).account_b);
|
||||
|
||||
updateGodWorld(godworld);
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user