Пример #1
0
        public override BaseRobot MakeCopy()
        {
            var bot = new SimpleTrendRobot
            {
                StopLossPoints   = StopLossPoints,
                TakeProfitPoints = TakeProfitPoints,
                PatternLength    = PatternLength,
                FixedVolume      = FixedVolume,
                Leverage         = Leverage,
                RoundType        = RoundType,
                NewsChannels     = NewsChannels,
                RoundMinVolume   = RoundMinVolume,
                RoundVolumeStep  = RoundVolumeStep
            };

            CopyBaseSettings(bot);
            return(bot);
        }
Пример #2
0
 public override BaseRobot MakeCopy()
 {
     var bot = new SimpleTrendRobot
     {
         StopLossPoints = StopLossPoints,
         TakeProfitPoints = TakeProfitPoints,
         PatternLength = PatternLength,
         FixedVolume = FixedVolume,
         Leverage = Leverage,
         RoundType = RoundType,
         NewsChannels = NewsChannels,
         RoundMinVolume = RoundMinVolume,
         RoundVolumeStep = RoundVolumeStep
     };
     CopyBaseSettings(bot);
     return bot;
 }