public QueryBinder TodayPicker(string _defaultDate) { //Cache5 QueryBinder binder = new QueryBinder(); RBOData objData = new RBOData(); List <RBOEntity> data = objData.RBO(_defaultDate); List <CompanyDetails> todayPickerData = new List <CompanyDetails>(); BulkData objList = new BulkData(); List <CompanyDetails> data1 = objList.GetBasicData(new List <Weightage>(), "All", _masterDatapathBasic, _defaultDate).Where(x => x.BasicSavedTimeStamp.Date == DateTime.Now.Date).ToList(); int qId = data1.Max(x => x.Id); List <CompanyDetails> newDataList = data1.Where(x => x.Id == qId).OrderByDescending(x => Convert.ToDecimal(x.CurrentPrevdayVolumePercentage)).Take(30).ToList(); foreach (var newItem in newDataList) { foreach (var item in data.Where(x => Convert.ToDecimal(x.BOPercentage) > 95).OrderByDescending(x => Convert.ToDecimal(x.BOPercentage))) { if (item.Code == newItem.Code) { todayPickerData.Add(newItem); break; } } } binder.PosativeData = todayPickerData.ToList(); return(binder); }
public QueryBinder FastMovers(string _defaultDate) { //Cache3 QueryBinder binder = new QueryBinder(); BulkData objList = new BulkData(); binder.PosativeData = objList.GetBasicData(new List <Weightage>(), "All", _masterDatapathBasic, _defaultDate); return(binder); }
public QueryBinder Discounting(string id, string _defaultDate) { //Cache2 QueryBinder binder = new QueryBinder(); BulkData objList = new BulkData(); binder.PosativeData = objList.GetBasicData(new List <Weightage>(), id, _masterDatapathBasic, _defaultDate); binder.CheckPriceStrongOIStroing = objList.GetOpenInterestData(id, _masterDatapathOI, _defaultDate); return(binder); }
public QueryBinder Index(string id, string _defaultDate) { //Cache2 QueryBinder binder = new QueryBinder(); BulkData objList = new BulkData(); binder.PosativeData = objList.GetBasicData(new List <Weightage>(), id, _masterDatapathBasic, _defaultDate); binder.CheckPriceStrongOIStroing = objList.GetOpenInterestData(id, _masterDatapathOI, _defaultDate); //binder.CheckLTPHasFirstPlace = objList.GetDMAData(id, _masterDatapathDMA); binder.UIDetailedDMA = objList.GetConvertObjectToDMAData(id, _masterDatapathDMA, _defaultDate); binder.AvgVolums = GenerateAvgVolumsData(binder.PosativeData, binder.CheckPriceStrongOIStroing); return(binder); }
public QueryBinder TopVolumes(string _defaultDate) { //Cache4 QueryBinder binder = new QueryBinder(); BulkData objList = new BulkData(); List <CompanyDetails> data = objList.GetBasicData(new List <Weightage>(), "All", _masterDatapathBasic, _defaultDate).Where(x => x.BasicSavedTimeStamp.Date == DateTime.Now.Date).ToList(); int qId = data.Max(x => x.Id); binder.PosativeData = data.Where(x => x.Id == qId).OrderByDescending(x => Convert.ToDecimal(x.CurrentPrevdayVolumePercentage)).Take(20).ToList(); // binder.NegativeData = data.Where(x => x.Id == qId).OrderBy(x => Convert.ToDecimal(x.CurrentPrevdayVolumePercentage)).Take(5).ToList(); return(binder); }
public QueryBinder BankNifty(string _defaultDate) { //Cache1 QueryBinder binder = new QueryBinder(); WeightageClass obj = new WeightageClass(); List <Weightage> weightageData = new List <Weightage>(); weightageData = obj.WeightageBNData(_bankNiftyPath); BulkData objList = new BulkData(); binder.PosativeData = objList.GetBasicData(weightageData, _bankNiftyIndexStocks, _masterDatapathBasic, _defaultDate); List <OIDetails> objx = new List <OIDetails>(); List <UIDetailedDMA> objy = new List <UIDetailedDMA>(); binder.CheckPriceStrongOIStroing = objx; binder.UIDetailedDMA = objy; return(binder); }