Ejemplo n.º 1
0
 public void setTraderContainer(Trader itradercontainer)
 {
     _traderAgent  = itradercontainer;
     _reportAnnual = new AnnualReport(_traderAgent.Agents);
     for (int i = 0; i < _traderAgent.Agents.Count; i++)
     {
         _traderstats.Add(_traderAgent.Agents[i], new Statistics());
     }
 }
Ejemplo n.º 2
0
 public void Clear()
 {
     _dateCurrent   = new DateTime();
     _dateStart     = new DateTime();
     _dateEnd       = new DateTime();
     _year          = 0;
     _observers     = new ArrayList();
     _traderstats   = new Hashtable();
     _reportAnnual  = null;
     _isInitialized = false;
     _traderstats.Clear();
     _reportTransactions = null;
     total             = 0;
     totalpnl          = 0;
     totaltransactions = 0;
     totaldays         = 0;
 }