Ejemplo n.º 1
0
 private static void CreateTradeAlert(data.baseDS.tradeAlertDataTable tradeAlertTbl,string portfolioCode,
                                      string stockCode, string strategy, AppTypes.TimeScale timeScale, TradePointInfo info, DateTime onTime, string msg)
 {
     data.baseDS.tradeAlertRow row = tradeAlertTbl.NewtradeAlertRow();
     data.AppLibs.InitData(row);
     row.onTime = onTime;
     row.portfolio = portfolioCode;
     row.stockCode = stockCode;
     row.timeScale = timeScale.Code; 
     row.strategy = strategy; 
     row.status = (byte)AppTypes.CommonStatus.New; 
     row.tradeAction = (byte)info.TradeAction;
     row.subject = info.TradeAction.ToString();
     row.msg = msg;
     tradeAlertTbl.AddtradeAlertRow(row);
 }