Exemplo n.º 1
0
        internal StopOrder SetActiveTime(ActiveTime activeTime)
        {
            if (activeTime == null)
            {
                return(this);
            }

            this.IsActiveInTime = true;
            this.ActiveFromTime = activeTime.From;
            this.ActiveToTime   = activeTime.To;

            return(this);
        }
Exemplo n.º 2
0
 public StopOrderTradeParams(
     OrderTradeParams orderTradeParams,
     decimal stopPrice,
     ProfitCondition profitCondition,
     ExpiryDate expDate,
     decimal?stopPrice2,
     ActiveTime activeTime)
 {
     this.OrderTradeParams = orderTradeParams;
     this.StopPrice        = stopPrice;
     this.ExpiryDate       = expDate;
     this.ProfitCondition  = profitCondition;
     this.StopPrice2       = stopPrice2;
     this.ActiveTime       = activeTime;
 }