Exemplo n.º 1
0
 public void Update(TransaqTakeprofit tt)
 {
   if (tt.ActivationPrice != -1.0)
     this.ActivationPrice = tt.ActivationPrice;
   if (tt.GuardTime != DateTime.MinValue)
     this.GuardTime = tt.GuardTime;
   if (tt.BrokerRef != string.Empty)
     this.BrokerRef = tt.BrokerRef;
   if (tt.Quantity != -1)
     this.Quantity = tt.Quantity;
   if (tt.Extremum != string.Empty)
     this.Extremum = tt.Extremum;
   if (tt.Level != string.Empty)
     this.Level = tt.Level;
   if (tt.Correction != string.Empty)
     this.Correction = tt.Correction;
   if (!(tt.GuardSpread != string.Empty))
     return;
   this.GuardSpread = tt.GuardSpread;
 }
Exemplo n.º 2
0
 public void Update(TransaqTakeprofit tt)
 {
     if (tt.ActivationPrice != -1.0)
     {
         this.ActivationPrice = tt.ActivationPrice;
     }
     if (tt.GuardTime != DateTime.MinValue)
     {
         this.GuardTime = tt.GuardTime;
     }
     if (tt.BrokerRef != string.Empty)
     {
         this.BrokerRef = tt.BrokerRef;
     }
     if (tt.Quantity != -1)
     {
         this.Quantity = tt.Quantity;
     }
     if (tt.Extremum != string.Empty)
     {
         this.Extremum = tt.Extremum;
     }
     if (tt.Level != string.Empty)
     {
         this.Level = tt.Level;
     }
     if (tt.Correction != string.Empty)
     {
         this.Correction = tt.Correction;
     }
     if (!(tt.GuardSpread != string.Empty))
     {
         return;
     }
     this.GuardSpread = tt.GuardSpread;
 }