Esempio n. 1
0
 public Position this[Instrument instrument]
 {
     get
     {
         SmartQuant.Instruments.Position position = this.positionList[instrument.instrument];
         if (position != null)
         {
             return(new Position(position));
         }
         return(null);
     }
 }
Esempio n. 2
0
 public Position this[string symbol]
 {
     get
     {
         SmartQuant.Instruments.Position position = this.positionList[symbol];
         if (position != null)
         {
             return(new Position(position));
         }
         return(null);
     }
 }
Esempio n. 3
0
 internal Position(SmartQuant.Instruments.Position position)
 {
     this.position     = position;
     this.transactions = new TransactionList(position.Transactions);
 }
Esempio n. 4
0
		internal Position(SmartQuant.Instruments.Position position)
		{
			this.position = position;
			this.transactions = new TransactionList(position.Transactions);
		}
 public double Price(SmartQuant.Instruments.Position position)
 {
     return(this.pricer.Price(new Position(position)));
 }