コード例 #1
0
	    public void update( Price update )
        {
            if ( this.bid > update.bid )
            {
                state = State.Decreasing;
            }
            else if ( this.bid < update.bid )
            {
                state = State.Increasing;
            }
            else
            {
                state = State.Default;
            }

            this.bid = update.bid;
            this.ask = update.ask;
            this.time = update.time;
        }
コード例 #2
0
        //public double StopLoss { get { return _model.stopLoss; } }
        //public long Expiry { get { return _model.expiry; } }
        //public double HighLimit { get { return _model.highLimit; } }
        //public double LowLimit { get { return _model.lowLimit; } }
        //public int TrailingStop { get { return _model.trailingStop; } }
        //public int OcaGroupId { get { return _model.ocaGroupId; } }
        public void Update(Price price)
        {
            _model.update(price);
			this.OnPropertyChanged("Subtitle");
			this.OnPropertyChanged("Content");
        }
コード例 #3
0
 public PriceViewModel(Price data, DataGroup group)
     : base(group)
 {
     _model = data;
     _chart = new ChartViewModel(Instrument);
 }