예제 #1
0
 public void Update(TransaqStoploss ts)
 {
     if (ts.UseCredit != string.Empty)
     {
         this.UseCredit = ts.UseCredit;
     }
     if (ts.ActivationPrice != -1.0)
     {
         this.ActivationPrice = ts.ActivationPrice;
     }
     if (ts.GuardTime != DateTime.MinValue)
     {
         this.GuardTime = ts.GuardTime;
     }
     if (ts.BrokerRef != string.Empty)
     {
         this.BrokerRef = ts.BrokerRef;
     }
     if (ts.Quantity != -1)
     {
         this.Quantity = ts.Quantity;
     }
     if (ts.ByMarket != string.Empty)
     {
         this.ByMarket = ts.ByMarket;
     }
     if (ts.OrderPrice == -1.0)
     {
         return;
     }
     this.OrderPrice = ts.OrderPrice;
 }
예제 #2
0
 public void Update(TransaqStoploss ts)
 {
   if (ts.UseCredit != string.Empty)
     this.UseCredit = ts.UseCredit;
   if (ts.ActivationPrice != -1.0)
     this.ActivationPrice = ts.ActivationPrice;
   if (ts.GuardTime != DateTime.MinValue)
     this.GuardTime = ts.GuardTime;
   if (ts.BrokerRef != string.Empty)
     this.BrokerRef = ts.BrokerRef;
   if (ts.Quantity != -1)
     this.Quantity = ts.Quantity;
   if (ts.ByMarket != string.Empty)
     this.ByMarket = ts.ByMarket;
   if (ts.OrderPrice == -1.0)
     return;
   this.OrderPrice = ts.OrderPrice;
 }