Esempio n. 1
0
 public Portfolio()
 {
     result                  = new Result(this);
     position                = new PositionCommon(this);
     performance             = new Performance(this);
     FullName                = this.GetType().Name;
     Performance.GraphTrades = false;
 }
Esempio n. 2
0
        public void Copy(PositionInterface _other)
        {
            PositionCommon other = _other as PositionCommon;

            if (other != null)
            {
                if (current != other.Current)
                {
                    Change(other.current, other.price, other.time);
                }
            }
            else
            {
                throw new ApplicationException("Expected concrete class " + typeof(PositionCommon).Name);
            }
        }
Esempio n. 3
0
		public Result(ModelInterface model) {
			position = new PositionCommon(model);
		}