Ejemplo n.º 1
0
        public List <HouseBreakReport> GenerateHousebreakReport(DateTime givenDate)
        {
            IStockScreener          stockScreener             = new StockScreener();
            List <string>           tickerNames               = dbAccessLayer.GetTickerNames();
            List <HouseBreakReport> AllStocksHouseBreakReport = new List <HouseBreakReport>();

            foreach (string ticker in tickerNames)
            {
                List <BhavCopy>         quotesList  = dbAccessLayer.GetQuotes(ticker);
                List <HouseBreakReport> houseBreaks = HousebreakScanner.GenerateHousebreakReport(quotesList, givenDate);
                if (houseBreaks.Count > 0)
                {
                    HouseBreakReport hb = houseBreaks[houseBreaks.Count - 1];
                    AllStocksHouseBreakReport.Add(hb);
                }
            }

            return(AllStocksHouseBreakReport);
        }
Ejemplo n.º 2
0
 public List <HousebreakInfo> GenerateHousebreakInfo(List <BhavCopy> BhavCopies)
 {
     return(HousebreakScanner.ScanForHousebreaks(BhavCopies));
 }