public Portfolio() { result = new Result(this); position = new PositionCommon(this); performance = new Performance(this); FullName = this.GetType().Name; Performance.GraphTrades = false; }
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); } }
public Result(ModelInterface model) { position = new PositionCommon(model); }