Exemplo n.º 1
0
        public override BaseRobot MakeCopy()
        {
            var bot = new Bollinger
            {
                StopLossPoints            = StopLossPoints,
                TakeProfitPoints          = TakeProfitPoints,
                BollingerCoeff            = BollingerCoeff,
                CloseOpposite             = CloseOpposite,
                CandlesToDetermineAverage = CandlesToDetermineAverage,
                CandlesAfter    = CandlesAfter,
                FixedVolume     = FixedVolume,
                Leverage        = Leverage,
                RoundType       = RoundType,
                NewsChannels    = NewsChannels,
                RoundMinVolume  = RoundMinVolume,
                RoundVolumeStep = RoundVolumeStep
            };

            CopyBaseSettings(bot);
            return(bot);
        }
Exemplo n.º 2
0
 public override BaseRobot MakeCopy()
 {
     var bot = new Bollinger
     {
         StopLossPoints = StopLossPoints,
         TakeProfitPoints = TakeProfitPoints,
         BollingerCoeff = BollingerCoeff,
         CloseOpposite = CloseOpposite,
         CandlesToDetermineAverage = CandlesToDetermineAverage,
         CandlesAfter = CandlesAfter,
         FixedVolume = FixedVolume,
         Leverage = Leverage,
         RoundType = RoundType,
         NewsChannels = NewsChannels,
         RoundMinVolume = RoundMinVolume,
         RoundVolumeStep = RoundVolumeStep
     };
     CopyBaseSettings(bot);
     return bot;
 }