Exemplo n.º 1
0
        public override BaseRobot MakeCopy()
        {
            var bot = new RoundPriceRobot
            {
                CloseOpposite    = CloseOpposite,
                RoundDigits      = RoundDigits,
                StopLossPoints   = StopLossPoints,
                TakeProfitPoints = TakeProfitPoints,
                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 RoundPriceRobot
         {
             CloseOpposite = CloseOpposite,
             RoundDigits = RoundDigits,
             StopLossPoints = StopLossPoints,
             TakeProfitPoints = TakeProfitPoints,
             FixedVolume = FixedVolume,
             Leverage = Leverage,
             RoundType = RoundType,
             NewsChannels = NewsChannels,
             RoundMinVolume = RoundMinVolume,
             RoundVolumeStep = RoundVolumeStep
         };
     CopyBaseSettings(bot);
     return bot;
 }