private void GenReport()
        {
            //Load backtest result if it has been specified
            var backtestData = GetBacktestData();

            var selectedTags =
                Tags
                .Where(x => x.IsChecked)
                .Select(x => x.Item)
                .ToList();

            var selectedStrategies =
                Strategies
                .Where(x => x.IsChecked)
                .Select(x => x.Item)
                .ToList();

            var selectedInstruments =
                Instruments
                .Where(x => x.IsChecked)
                .Select(x => x.Item)
                .ToList();

            var trades = TradeFiltering.Filter(selectedTags, selectedStrategies, selectedInstruments, Context, TradeFilterSettings);

            Parent.GenerateReportFromTrades.Execute(trades);
        }
Пример #2
0
        private void GenReportFromTags(IList selectedItems)
        {
            if (selectedItems == null || selectedItems.Count == 0)
            {
                return;
            }
            var selectedTags   = selectedItems.Cast <Tag>().ToList();
            var selectedTrades = TradeFiltering.FilterByTags(selectedTags, Context);

            GenerateReport(selectedTrades);
        }
Пример #3
0
        private void GenReportFromStrategy(IList selectedItems)
        {
            if (selectedItems == null || selectedItems.Count == 0)
            {
                return;
            }
            var selectedStrategies = selectedItems.Cast <Strategy>().ToList();
            var tradeIDs           = TradeFiltering.FilterByStrategies(selectedStrategies, Context);

            GenerateReport(tradeIDs);
        }
        private void GenReport()
        {
            var selectedTags =
                Tags
                .Where(x => x.IsChecked)
                .Select(x => x.Item)
                .ToList();

            var selectedStrategies =
                Strategies
                .Where(x => x.IsChecked)
                .Select(x => x.Item)
                .ToList();

            var trades = TradeFiltering.Filter(selectedTags, selectedStrategies, Context, TradeFilterSettings);

            Parent.GenerateReportFromTrades.Execute(trades);
        }