Ejemplo n.º 1
0
        private static List <dynamic> TestMarkSwingPoints(DataTable excelSheetTable)
        {
            MarkSwingPointsInput input = new MarkSwingPointsInput();

            input.StockPriceDataTable = excelSheetTable;

            var output = new MarkSwingPointsOutput();

            output = new MarkSwingPoints().Execute(input);

            return(output.StockPriceListWithSP);
        }
Ejemplo n.º 2
0
        public MarkSwingPointsOutput Execute(MarkSwingPointsInput input)
        {
            // Assign and Validate Input
            _input = input;
            _input.ValidateInput();

            // Initialize Output
            _output = new MarkSwingPointsOutput();

            // Convert the Stock Price Data Table to a List
            var stockPriceList = _FormatDataTableAsList(_input.StockPriceDataTable);

            // Mark the Swing Point Lows in-line
            stockPriceList = _MarkSPL(stockPriceList);

            // Mark the Swing Point Highs in-line
            stockPriceList = _MarkSPH(stockPriceList);

            _output.StockPriceListWithSP = stockPriceList;
            return _output;
        }
Ejemplo n.º 3
0
        public MarkSwingPointsOutput Execute(MarkSwingPointsInput input)
        {
            // Assign and Validate Input
            _input = input;
            _input.ValidateInput();

            // Initialize Output
            _output = new MarkSwingPointsOutput();

            // Convert the Stock Price Data Table to a List
            var stockPriceList = _FormatDataTableAsList(_input.StockPriceDataTable);

            // Mark the Swing Point Lows in-line
            stockPriceList = _MarkSPL(stockPriceList);

            // Mark the Swing Point Highs in-line
            stockPriceList = _MarkSPH(stockPriceList);

            _output.StockPriceListWithSP = stockPriceList;
            return(_output);
        }
Ejemplo n.º 4
0
        private static List<dynamic> TestMarkSwingPoints(DataTable excelSheetTable)
        {
            MarkSwingPointsInput input = new MarkSwingPointsInput();
            input.StockPriceDataTable = excelSheetTable;

            var output = new MarkSwingPointsOutput();
            output = new MarkSwingPoints().Execute(input);

            return output.StockPriceListWithSP;
        }