public static void Main(string[] args) { var arguments = Arguments.arguments(args, jStrings("id", "addParametersOnly")); var id = arguments.integer("id"); var details = SystemDetailsTable.DETAILS.details(id); var sto = new sto.STO(details); hamsterfyParametersFile(id, sto.paramsFile()); if (arguments.get("addParametersOnly", false)) { return; } List <Symbol> symbols; List <Portfolio> portfolios; STO.populateSymbolsPortfolios(details, out symbols, out portfolios); hamsterfyMetricsFile(id, sto.metricFile("ALL")); each(symbols, s => hamsterfyMetricsFile(id, sto.metricFile(s.name))); each(portfolios, p => hamsterfyMetricsFile(id, sto.metricFile(p.name))); }
void marketSelected(string market) { var sto = new sto.STO(details); allMetrics = new STOMetricResults(STOMetricResults.hamsterMetricsFile(systemId(), sto.metricFile(market)), STOMetricResults.hamsterParametersFile(systemId(), sto.paramsFile())); datagrid.populate(allMetrics); }