Ejemplo n.º 1
0
 public InventoryGroupDefault(SymbolInfo symbol, int id)
 {
     this.symbol = symbol;
     this.id     = id;
     profitLoss  = symbol.ProfitLoss as ProfitLoss2;
     if (profitLoss == null)
     {
         var message = "Requires ProfitLoss2 interface for calculating profit and loss.";
         log.Error(message);
         throw new ApplicationException(message);
     }
 }