Beispiel #1
0
 /// <summary>
 /// 加入一个策略
 /// </summary>
 /// <param name="covered"></param>
 public void AddCovered(Covered covered)
 {
     covered.SetPanel(this);
     covered.CreateCells(this.dataTable);
     DataGridViewCellCollection cells = covered.Cells;
     cells[0].Value = covered.InstrumentID;
     cells[1].Value = covered.PositionVolume;
     cells[2].Value = covered.CoveredInterval;
     cells[3].Value = covered.AveragePrice;
     this.dataTable.Rows.Add(covered);
 }
Beispiel #2
0
 /// <summary>
 /// 添加上下限套利
 /// </summary>
 /// <param name="covered"></param>
 private void AddCovered(Covered covered)
 {
     //this.coveredPanel.AddCovered(covered);
 }