예제 #1
0
        public void Copy(TradeRecord tradeRecord)
        {
            if (tradeRecord == null)
            {
                throw new ArgumentNullException("tradeRecord");
            }

            this.Closed       = tradeRecord.Closed;
            this.ClosePrice   = tradeRecord.ClosePrice;
            this.CloseTime    = tradeRecord.CloseTime;
            this.Comment      = tradeRecord.Comment;
            this.Commission   = tradeRecord.Commission;
            this.Digits       = tradeRecord.Digits;
            this.Expiration   = tradeRecord.Expiration;
            this.Login        = tradeRecord.Login;
            this.OpenPrice    = tradeRecord.OpenPrice;
            this.OpenTime     = tradeRecord.OpenTime;
            this.Order        = tradeRecord.Order;
            this.Profit       = tradeRecord.Profit;
            this.StopLoss     = tradeRecord.StopLoss;
            this.Symbol       = tradeRecord.Symbol;
            this.TakeProfit   = tradeRecord.TakeProfit;
            this.Swaps        = tradeRecord.Swaps;
            this.TradeCommand = tradeRecord.TradeCommand;
            this.Volume       = tradeRecord.Volume;
        }
예제 #2
0
        public void Copy(TradeRecord tradeRecord)
        {
            if (tradeRecord == null)
                throw new ArgumentNullException("tradeRecord");

            this.Closed = tradeRecord.Closed;
            this.ClosePrice = tradeRecord.ClosePrice;
            this.CloseTime = tradeRecord.CloseTime;
            this.Comment = tradeRecord.Comment;
            this.Commission = tradeRecord.Commission;
            this.Digits = tradeRecord.Digits;
            this.Expiration = tradeRecord.Expiration;
            this.Login = tradeRecord.Login;
            this.OpenPrice = tradeRecord.OpenPrice;
            this.OpenTime = tradeRecord.OpenTime;
            this.Order = tradeRecord.Order;
            this.Profit = tradeRecord.Profit;
            this.StopLoss = tradeRecord.StopLoss;
            this.Symbol = tradeRecord.Symbol;
            this.TakeProfit = tradeRecord.TakeProfit;
            this.Swaps = tradeRecord.Swaps;
            this.TradeCommand = tradeRecord.TradeCommand;
            this.Volume = tradeRecord.Volume;
        }
예제 #3
0
 public TradeUpdatePacket(TradeRecord trade, TradeAction action)
     : base(APINetworkPacketType.TradeUpdate)
 {        
     this.Trade = trade;
     this.Action = action;
 }
예제 #4
0
 public TradeUpdatePacket(TradeRecord trade, TradeAction action)
     : base(APINetworkPacketType.TradeUpdate)
 {
     this.Trade  = trade;
     this.Action = action;
 }