}
};
RuleSettingsDlg ruleSettingsDlg = new RuleSettingsDlg((JFrame) SwingUtilities.getWindowAncestor(this));
ruleSettingsDlg.setVisible(true);
if (ruleSettingsDlg.result != null) {
MarketRule rule = ruleSettingsDlg.result;
if (rule.action instanceof RuleAction.TradeAction) {
rule.action.setCallback(tradeCallback);
}
ruleList.add(rule);
refreshRulesTable();