示例#1
0
        public override BaseRobot MakeCopy()
        {
            var bot = new Mt4Robot
            {
                HostMt4 = HostMt4,
                //AccountMt4 = AccountMt4,
                PortMt4             = PortMt4,
                PortOwn             = PortOwn,
                PercentScale        = PercentScale,
                Mt4ToTradeSharpRate = Mt4ToTradeSharpRate,
                Mode = Mode,
                ControlOrdersDisregardMagic = ControlOrdersDisregardMagic,
                FixedVolume       = FixedVolume,
                Mt4TickerSuffix   = Mt4TickerSuffix,
                TradeSharpAccount = TradeSharpAccount
            };

            CopyBaseSettings(bot);
            return(bot);
        }
示例#2
0
 public override BaseRobot MakeCopy()
 {
     var bot = new Mt4Robot
     {
         HostMt4 = HostMt4,
         //AccountMt4 = AccountMt4,
         PortMt4 = PortMt4,
         PortOwn = PortOwn,
         PercentScale = PercentScale,
         Mt4ToTradeSharpRate = Mt4ToTradeSharpRate,
         Mode = Mode,
         ControlOrdersDisregardMagic = ControlOrdersDisregardMagic,
         FixedVolume = FixedVolume,
         Mt4TickerSuffix = Mt4TickerSuffix,
         TradeSharpAccount = TradeSharpAccount
     };
     CopyBaseSettings(bot);
     return bot;
 }