コード例 #1
0
        /// <summary>
        /// Creates a copy of this trade system with new trade conditions.
        /// </summary>
        /// <param name="buyCondition">The buy condition.</param>
        /// <param name="sellCondition">The sell condition.</param>
        /// <returns>A copy of this trade system with new trade conditions.</returns>
        public TradeSystem CloneWithNewRules(TradeCondition buyCondition, TradeCondition sellCondition)
        {
            TradeSystem clone = this.Clone();

            clone.BuyCondition = buyCondition;
            return(clone);
        }
コード例 #2
0
        /// <summary>
        /// Creates a copy of this trade system.
        /// </summary>
        /// <returns>A copy of this trade system.</returns>
        public TradeSystem Clone()
        {
            TradeSystem clone = new TradeSystem();

            clone.BuyCondition = DeepCopy.getDeepCopy(this.BuyCondition);
            return(clone);
        }