public Get5List ( string strData ) : |
||
strData | string | |
return |
//分析融券卖出量 public decimal SELLQUANTITYrate(string StockCode) { decimal[] Remining = new decimal[5]; D.StockDAL dsd = new D.StockDAL(); M.Stock ms = new M.Stock(); DataSet ds = new DataSet(); ds = dsd.Get5List(StockCode); for (int i = 0; i < 5; i++) { Remining[i] = decimal.Parse(ds.Tables[0].Rows[4 - i][10].ToString()); } decimal[] ReminingCha = new decimal[4]; for (int i = 0; i < 4; i++) { ReminingCha[i] = (Remining[i + 1] - Remining[i]) / Remining[i]; } decimal dec; dec = (ReminingCha[0] + ReminingCha[1] + ReminingCha[2] + ReminingCha[3]) / 4; return(dec); }
//分析融券余量 public decimal REAMINQUANTITYrate(string StockCode) { decimal[] Remining = new decimal[5]; D.StockDAL dsd = new D.StockDAL(); M.Stock ms = new M.Stock(); DataSet ds = new DataSet(); ds = dsd.Get5List(StockCode); for (int i = 0; i < 5; i++) { Remining[i] = decimal.Parse(ds.Tables[0].Rows[4 - i][9].ToString()); } decimal[] ReminingCha = new decimal[4]; for (int i = 0; i < 4; i++) { ReminingCha[i] = (Remining[i + 1] - Remining[i]) / Remining[i]; } decimal dec; dec = (ReminingCha[0] + ReminingCha[1] + ReminingCha[2] + ReminingCha[3]) / 4; return dec; }