Esempio 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);
        }
Esempio 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;
 }