示例#1
0
        void assignAppender(string market)
        {
            var file = tempDir.file(details.siv().sviName("_") + "_" + market + ".csv");

            if (!reuseExistingFiles)
            {
                file.deleteIfExists();
            }
            appendersByMarket[market] = file.appender();
        }
示例#2
0
        public static void populateSymbolsPortfolios(SystemDetailsTable.SystemDetails details, out List <Symbol> symbols, out List <Trading.Results.Portfolio> portfolios)
        {
            var marketNames = list <string>(MsivBacktestTable.BACKTEST.markets(details.siv(), details.stoId()));

            symbols    = list(STO.symbols(marketNames));
            portfolios = list <sto.Portfolio, Trading.Results.Portfolio>(sto.Portfolio.portfolios(details.id()), j => new Trading.Results.Portfolio(j));
        }