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); }
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; }
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); }
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; }