示例#1
0
        public override BaseRobot MakeCopy()
        {
            var bot = new DoubleTopRobot
            {
                CloseDeal        = CloseDeal,
                TakeRange        = TakeRange,
                FixedVolume      = FixedVolume,
                StopLossPoints   = StopLossPoints,
                TakeProfitPoints = TakeProfitPoints,
                Leverage         = Leverage,
                RoundType        = RoundType,
                NewsChannels     = NewsChannels,
                RoundMinVolume   = RoundMinVolume,
                RoundVolumeStep  = RoundVolumeStep
            };

            CopyBaseSettings(bot);
            return(bot);
        }
示例#2
0
 public override BaseRobot MakeCopy()
 {
     var bot = new DoubleTopRobot
     {
         CloseDeal = CloseDeal,
         TakeRange = TakeRange,
         FixedVolume = FixedVolume,
         StopLossPoints = StopLossPoints,
         TakeProfitPoints = TakeProfitPoints,
         Leverage = Leverage,
         RoundType = RoundType,
         NewsChannels = NewsChannels,
         RoundMinVolume = RoundMinVolume,
         RoundVolumeStep = RoundVolumeStep
     };
     CopyBaseSettings(bot);
     return bot;
 }